|
OptaPlanner core 6.1.0.Beta2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<EnvironmentMode>
org.optaplanner.core.config.solver.EnvironmentMode
public enum EnvironmentMode
The environment mode also allows you to detect common bugs in your implementation.
Also, aSolver
has a single Random
instance.
Some optimization algorithms use the Random
instance a lot more than others.
For example simulated annealing depends highly on random numbers,
while tabu search only depends on it to deal with score ties.
This environment mode influences the seed of that Random
instance.
Enum Constant Summary | |
---|---|
FAST_ASSERT
This mode turns on several assertions (but not all of them) to fail-fast on a bug in a Move implementation, a score rule, the rule engine itself or something else
at a reasonable performance cost (in development at least). |
|
FULL_ASSERT
This mode turns on all assertions to fail-fast on a bug in a Move implementation, a score rule, the rule engine itself or something else
at a horrible performance cost. |
|
NON_INTRUSIVE_FULL_ASSERT
This mode turns on several assertions (but not all of them) to fail-fast on a bug in a Move implementation, a score rule, the rule engine itself or something else
at a horrible performance cost. |
|
PRODUCTION
The production mode is the fastest, but not reproducible. |
|
REPRODUCIBLE
The reproducible mode is the default mode because it is recommended during development. |
Method Summary | |
---|---|
boolean |
isAsserted()
|
boolean |
isIntrusiveFastAsserted()
|
boolean |
isNonIntrusiveFullAsserted()
|
static EnvironmentMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EnvironmentMode[] |
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 |
---|
public static final EnvironmentMode FULL_ASSERT
Move
implementation, a score rule, the rule engine itself or something else
at a horrible performance cost.
This mode is reproducible (see REPRODUCIBLE
mode).
This mode is intrusive because it calls the ScoreDirector.calculateScore()
more frequently
than a non assert mode.
This mode is horribly slow.
public static final EnvironmentMode NON_INTRUSIVE_FULL_ASSERT
Move
implementation, a score rule, the rule engine itself or something else
at a horrible performance cost.
This mode is reproducible (see REPRODUCIBLE
mode).
This mode is non-intrusive, unlike FULL_ASSERT
and FAST_ASSERT
.
This mode is horribly slow.
public static final EnvironmentMode FAST_ASSERT
Move
implementation, a score rule, the rule engine itself or something else
at a reasonable performance cost (in development at least).
This mode is reproducible (see REPRODUCIBLE
mode).
This mode is intrusive because it calls the ScoreDirector.calculateScore()
more frequently
than a non assert mode.
This mode is slow.
public static final EnvironmentMode REPRODUCIBLE
public static final EnvironmentMode PRODUCTION
Method Detail |
---|
public static EnvironmentMode[] values()
for (EnvironmentMode c : EnvironmentMode.values()) System.out.println(c);
public static EnvironmentMode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean isAsserted()
public boolean isNonIntrusiveFullAsserted()
public boolean isIntrusiveFastAsserted()
|
OptaPlanner core 6.1.0.Beta2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |