AbstractClasses
Enum ProblemDomain.HeuristicType

java.lang.Object
  extended by java.lang.Enum<ProblemDomain.HeuristicType>
      extended by AbstractClasses.ProblemDomain.HeuristicType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ProblemDomain.HeuristicType>
Enclosing class:
ProblemDomain

public static enum ProblemDomain.HeuristicType
extends java.lang.Enum<ProblemDomain.HeuristicType>

An enumeration of the different types of low-level heuristics implemented in the software. The set of all heuristics of a certain type can be obtained through methods in the ProblemDomain class.


Enum Constant Summary
CROSSOVER
          A heuristic which combines two solutions to produce a one solution.
LOCAL_SEARCH
          A local search heuristic.
MUTATION
          A heuristic which randomly mutates a solution.
OTHER
          A heuristic which does not fall into any of the other categories.
RUIN_RECREATE
          A perturbation type heuristic which ruins part of a solution and then attempts to recreate/repair it.
 
Method Summary
static ProblemDomain.HeuristicType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ProblemDomain.HeuristicType[] 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

MUTATION

public static final ProblemDomain.HeuristicType MUTATION
A heuristic which randomly mutates a solution.


CROSSOVER

public static final ProblemDomain.HeuristicType CROSSOVER
A heuristic which combines two solutions to produce a one solution.


RUIN_RECREATE

public static final ProblemDomain.HeuristicType RUIN_RECREATE
A perturbation type heuristic which ruins part of a solution and then attempts to recreate/repair it.


LOCAL_SEARCH

public static final ProblemDomain.HeuristicType LOCAL_SEARCH
A local search heuristic. The resulting solution after applying a heuristic of this type will have an objective function value the same as or better than the value of the initial solution (that is, it will not be worse).


OTHER

public static final ProblemDomain.HeuristicType OTHER
A heuristic which does not fall into any of the other categories.

Method Detail

values

public static ProblemDomain.HeuristicType[] 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 (ProblemDomain.HeuristicType c : ProblemDomain.HeuristicType.values())
    System.out.println(c);

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

valueOf

public static ProblemDomain.HeuristicType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null