Class QMLBoundDependentTacticOperatorsManager
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.TacticOperatorsManager
-
- de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.QMLBoundDependentTacticOperatorsManager
-
public class QMLBoundDependentTacticOperatorsManager extends TacticOperatorsManager
Applies activated heuristics based on the constraint violation of an individual in the following order: 1) Try to get individual feasible if it is infeasible. 2) Try to reach all defined goals if not reached yet. 3) Apply any heuristic applicable if no previous case applies.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
QMLBoundDependentTacticOperatorsManager.ConstraintViolationInformation
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.TacticOperatorsManager
generator, heuristics, writer
-
-
Constructor Summary
Constructors Constructor Description QMLBoundDependentTacticOperatorsManager(org.opt4j.operator.copy.Copy<org.opt4j.core.Genotype> copy, DSEIndividualFactory individualFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QMLBoundDependentTacticOperatorsManager.ConstraintViolationInformation
analyzeConstraints(DSEIndividual individual)
List<TacticsResultCandidate>
getAllCandidates(DSEIndividual individual)
Applies heuristics based on all constraint violations of an individual: Try to make individual feasible.protected boolean
isFulfilled(Map.Entry<org.opt4j.core.Constraint,org.opt4j.core.Value<?>> constraintAndValue)
protected boolean
isViolated(Map.Entry<org.opt4j.core.Constraint,org.opt4j.core.Value<?>> constraintAndValue)
-
Methods inherited from class de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.TacticOperatorsManager
getCandidate, getHeuristics
-
-
-
-
Constructor Detail
-
QMLBoundDependentTacticOperatorsManager
@Inject public QMLBoundDependentTacticOperatorsManager(org.opt4j.operator.copy.Copy<org.opt4j.core.Genotype> copy, DSEIndividualFactory individualFactory)
-
-
Method Detail
-
getAllCandidates
public List<TacticsResultCandidate> getAllCandidates(DSEIndividual individual)
Applies heuristics based on all constraint violations of an individual: Try to make individual feasible. If feasible, try to reach all goals. If all goals reached, apply any heuristic.- Overrides:
getAllCandidates
in classTacticOperatorsManager
- Returns:
-
isViolated
protected boolean isViolated(Map.Entry<org.opt4j.core.Constraint,org.opt4j.core.Value<?>> constraintAndValue)
-
isFulfilled
protected boolean isFulfilled(Map.Entry<org.opt4j.core.Constraint,org.opt4j.core.Value<?>> constraintAndValue)
-
analyzeConstraints
protected QMLBoundDependentTacticOperatorsManager.ConstraintViolationInformation analyzeConstraints(DSEIndividual individual)
-
-