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>
public class SatisfactionConstraint extends Constraint
A concrete constraint with the same attributes as the base classConstraint
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:
Constraint
,Constraints
,InfeasibilityConstraint
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opt4j.core.Constraint
Constraint.Direction
-
-
Constructor Summary
Constructors Constructor Description SatisfactionConstraint(String name, Constraint.Direction direction, double limit, Objective objective)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objective
getObjective()
-
Methods inherited from class org.opt4j.core.Constraint
compareTo, getDirection, getLimit, toString
-
-
-
-
Field Detail
-
objective
protected final Objective objective
-
-
Constructor Detail
-
SatisfactionConstraint
public SatisfactionConstraint(String name, Constraint.Direction direction, double limit, Objective objective)
-
-
Method Detail
-
getObjective
public Objective getObjective()
- Returns:
- the objective
-
-