java.io.Serializable
, java.lang.Comparable<VarHeuristic>
public enum VarHeuristic extends java.lang.Enum<VarHeuristic>
IntLVar
s.Enum Constant | Description |
---|---|
FIRST_FAIL |
Selects the leftmost variable with the smallest domain.
|
LEFT_MOST |
Selects the leftmost variable x_1.
|
MAX |
Selects the leftmost variable with the greatest least upper bound.
|
MID_MOST |
Selects the midmost variable x_k, where k = n/2.
|
MIN |
Selects the leftmost variable with the smallest greatest lower bound.
|
RANDOM |
Selects a variable x_k, where k is a pseudorandom equidistributed value in {1,...
|
RIGHT_MOST |
Selects the rightmost variable x_n.
|
Modifier and Type | Method | Description |
---|---|---|
static VarHeuristic |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static VarHeuristic[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VarHeuristic RIGHT_MOST
public static final VarHeuristic LEFT_MOST
public static final VarHeuristic MID_MOST
public static final VarHeuristic MIN
public static final VarHeuristic MAX
public static final VarHeuristic FIRST_FAIL
public static final VarHeuristic RANDOM
public static VarHeuristic[] values()
for (VarHeuristic c : VarHeuristic.values()) System.out.println(c);
public static VarHeuristic 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