Class NormalizedObjectives

java.lang.Object
org.moeaframework.core.attribute.NormalizedObjectives
All Implemented Interfaces:
Attribute

public final class NormalizedObjectives extends Object implements Attribute
The normalized objective values.
  • Field Details

  • Method Details

    • hasAttribute

      public static final boolean hasAttribute(Solution solution)
      Returns true if the solution defines this attribute; false otherwise.
      Parameters:
      solution - the solution
      Returns:
      true if the solution defines this attribute; false otherwise
    • setAttribute

      public static final void setAttribute(Solution solution, double[] value)
      Sets the value of the attribute on the solution.
      Parameters:
      solution - the solution
      value - the value to set
    • getAttribute

      public static final double[] getAttribute(Solution solution)
      Returns the value of the attribute stored in the solution.
      Parameters:
      solution - the solution
      Returns:
      the stored value