Package org.moeaframework.core
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAllow duplicate solutions only if they have different decision variables.Allow all duplicate solutions, even if they have identical decision variables and objectives.Do not allow any duplicate solutions into this population. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static NondominatedPopulation.DuplicateMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_DUPLICATE_OBJECTIVES
Do not allow any duplicate solutions into this population. -
ALLOW_DUPLICATE_OBJECTIVES
Allow duplicate solutions only if they have different decision variables. -
ALLOW_DUPLICATES
Allow all duplicate solutions, even if they have identical decision variables and objectives.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-