Package org.opt4j.core
Class Constraints
- java.lang.Object
-
- org.opt4j.core.CriterionSet<Constraint>
-
- org.opt4j.core.Constraints
-
- All Implemented Interfaces:
Iterable<Map.Entry<Constraint,Value<?>>>
public class Constraints extends CriterionSet<Constraint>
TheConstraintscontains theConstraint-Valuespairs of anIndividual. It is contained inObjectives.- See Also:
Value,Constraint,Objectives
-
-
Field Summary
-
Fields inherited from class org.opt4j.core.CriterionSet
array, map
-
-
Constructor Summary
Constructors Constructor Description Constraints()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]array()Returns an array of all constraint values.protected voidsubmit()Calculates the array.StringtoString()-
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
-
-
-
-
Method Detail
-
array
public double[] array()
Returns an array of all constraint values. Do not call this method before all constraints were added!- Specified by:
arrayin classCriterionSet<Constraint>- Returns:
- an array containing constraint values
- See Also:
Value.getDouble()
-
submit
protected void submit()
Calculates the array.
-
-