Package org.opt4j.core
Class SatisfactionConstraint
java.lang.Object
org.opt4j.core.Criterion
org.opt4j.core.Constraint
org.opt4j.core.SatisfactionConstraint
- All Implemented Interfaces:
Comparable<Constraint>
A concrete constraint with the same attributes as the base class
Constraint
and an additional attribute specifying the objective it refers to.
Semantically, a individual violating this constraint is considered unsatisfactory.
The constraint can be seen as a goal for an objective that is wanted to be reached.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opt4j.core.Constraint
Constraint.Direction
-
Field Summary
Fields inherited from class org.opt4j.core.Constraint
direction, limit
-
Constructor Summary
ConstructorDescriptionSatisfactionConstraint
(String name, Constraint.Direction direction, double limit, Objective objective) -
Method Summary
Methods inherited from class org.opt4j.core.Constraint
compareTo, getDirection, getLimit, toString
-
Field Details
-
objective
-
-
Constructor Details
-
SatisfactionConstraint
public SatisfactionConstraint(String name, Constraint.Direction direction, double limit, Objective objective)
-
-
Method Details
-
getObjective
- Returns:
- the objective
-