Package org.opt4j.core
Class Constraint
java.lang.Object
org.opt4j.core.Criterion
org.opt4j.core.Constraint
- All Implemented Interfaces:
Comparable<Constraint>
- Direct Known Subclasses:
InfeasibilityConstraint,SatisfactionConstraint
The Constraint is the identifier for a single constraint in the
Constraints. It is the superclass for concrete constraints. It is specified by
the following properties:
- Name
- Direction
- Limit
Each Evaluator sets a specific amount of Constraint-
Value pairs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the possible directions a constraint can be defined. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
direction
-
limit
protected final double limit
-
-
Constructor Details
-
Constraint
-
-
Method Details
-
getDirection
- Returns:
- the direction
-
getLimit
public double getLimit()- Returns:
- the limit
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Constraint>
-