java.io.Serializable
, java.lang.Comparable<ValHeuristic>
public enum ValHeuristic extends java.lang.Enum<ValHeuristic>
IntLVar
x.
The IntLVar
has the multi-interval D_x = I_1 ∪ ... ∪ I_n as its domain.Enum Constant | Description |
---|---|
EQUI_RANDOM |
Selects a pseudorandom equidistributed value in D_x.
|
GLB |
Selects the GLB (greatest lower bound) of D_x.
|
LUB |
Selects the LUB (least upper bound) of D_x.
|
MEDIAN |
Selects the median value of D_x.
|
MID_MOST |
Selects the middle point of the 'central' interval I_k with k = n/2.
|
MID_RANDOM |
Selects the midpoint of an interval I_k, where k is a pseudorandom equidistributed value in {1,...
|
RANGE_RANDOM |
Selects a pseudorandom equidistributed value in I_k, where k is a pseudorandom equidistributed value in {1,...
|
Modifier and Type | Method | Description |
---|---|---|
static ValHeuristic |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ValHeuristic[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValHeuristic GLB
public static final ValHeuristic LUB
public static final ValHeuristic MID_MOST
public static final ValHeuristic MEDIAN
public static final ValHeuristic EQUI_RANDOM
public static final ValHeuristic RANGE_RANDOM
public static final ValHeuristic MID_RANDOM
public static ValHeuristic[] values()
for (ValHeuristic c : ValHeuristic.values()) System.out.println(c);
public static ValHeuristic valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null