Enum Class NondominatedPopulation.DuplicateMode

java.lang.Object
java.lang.Enum<NondominatedPopulation.DuplicateMode>
org.moeaframework.core.NondominatedPopulation.DuplicateMode
All Implemented Interfaces:
Serializable, Comparable<NondominatedPopulation.DuplicateMode>, Constable
Enclosing class:
NondominatedPopulation

public static enum NondominatedPopulation.DuplicateMode extends Enum<NondominatedPopulation.DuplicateMode>
Specifies how duplicate solutions are handled. Duplicate solutions are those whose Euclidean distance in objective space are less than 1.0E-10.
  • Enum Constant Details

    • NO_DUPLICATE_OBJECTIVES

      public static final NondominatedPopulation.DuplicateMode NO_DUPLICATE_OBJECTIVES
      Do not allow any duplicate solutions into this population.
    • ALLOW_DUPLICATE_OBJECTIVES

      public static final NondominatedPopulation.DuplicateMode ALLOW_DUPLICATE_OBJECTIVES
      Allow duplicate solutions only if they have different decision variables.
    • ALLOW_DUPLICATES

      public static final NondominatedPopulation.DuplicateMode ALLOW_DUPLICATES
      Allow all duplicate solutions, even if they have identical decision variables and objectives.
  • Method Details

    • values

      public static NondominatedPopulation.DuplicateMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NondominatedPopulation.DuplicateMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null