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
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
Modifier and TypeClassDescriptionprotected class
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.TacticOperatorsManager
generator, heuristics, writer
-
Constructor Summary
ConstructorDescriptionQMLBoundDependentTacticOperatorsManager
(org.opt4j.operator.copy.Copy<org.opt4j.core.Genotype> copy, DSEIndividualFactory individualFactory) -
Method Summary
Modifier and TypeMethodDescriptionanalyzeConstraints
(DSEIndividual individual) 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 Details
-
QMLBoundDependentTacticOperatorsManager
@Inject public QMLBoundDependentTacticOperatorsManager(org.opt4j.operator.copy.Copy<org.opt4j.core.Genotype> copy, DSEIndividualFactory individualFactory)
-
-
Method Details
-
getAllCandidates
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)
-