Class Constraints

All Implemented Interfaces:
Iterable<Map.Entry<Constraint,Value<?>>>

public class Constraints extends CriterionSet<Constraint>
The Constraints contains the Constraint-Values pairs of an Individual. It is contained in Objectives.
See Also:
  • 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 class CriterionSet<Constraint>
      Returns:
      an array containing constraint values
      See Also:
    • submit

      protected void submit()
      Calculates the array.
    • toString

      public String toString()
      Overrides:
      toString in class Object