Package org.opt4j.core
Class Constraints
- All Implemented Interfaces:
Iterable<Map.Entry<Constraint,
Value<?>>>
The
Constraints
contains the Constraint
-Values
pairs of
an Individual
. It is contained in Objectives
.- See Also:
-
Field Summary
Fields inherited from class org.opt4j.core.CriterionSet
array, map
-
Constructor Summary
-
Method Summary
Methods inherited from class org.opt4j.core.CriterionSet
add, add, add, add, distance, get, get, getKeys, getValues, isEqual, iterator, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Constraints
public Constraints()
-
-
Method Details
-
array
public double[] array()Returns an array of all constraint values. Do not call this method before all constraints were added!- Specified by:
array
in classCriterionSet<Constraint>
- Returns:
- an array containing constraint values
- See Also:
-
submit
protected void submit()Calculates the array. -
toString
-