MOEA Framework 2.12
API Specification

org.moeaframework.core
Enum NondominatedPopulation.DuplicateMode

java.lang.Object
  extended by java.lang.Enum<NondominatedPopulation.DuplicateMode>
      extended by org.moeaframework.core.NondominatedPopulation.DuplicateMode
All Implemented Interfaces:
Serializable, Comparable<NondominatedPopulation.DuplicateMode>
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 .


Enum Constant Summary
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.
NO_DUPLICATE_OBJECTIVES
          Do not allow any duplicate solutions into this population.
 
Method Summary
static NondominatedPopulation.DuplicateMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NondominatedPopulation.DuplicateMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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 Detail

values

public static NondominatedPopulation.DuplicateMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NondominatedPopulation.DuplicateMode c : NondominatedPopulation.DuplicateMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NondominatedPopulation.DuplicateMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!