|
OptaPlanner core 6.2.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<InitializingScoreTrendLevel>
org.optaplanner.core.config.score.trend.InitializingScoreTrendLevel
public enum InitializingScoreTrendLevel
Bounds 1 score level of the possible Score
s for a Solution
as more and more variables are initialized
(while the already initialized variables don't change).
InitializingScoreTrend
Enum Constant Summary | |
---|---|
ANY
No predictions can be made. |
|
ONLY_DOWN
During initialization, the Score is monotonically decreasing. |
|
ONLY_UP
During initialization, the Score is monotonically increasing. |
Method Summary | |
---|---|
double |
getOptimisticBoundDouble()
|
int |
getOptimisticBoundInt()
|
long |
getOptimisticBoundLong()
|
double |
getPessimisticBoundDouble()
|
int |
getPessimisticBoundInt()
|
long |
getPessimisticBoundLong()
|
static InitializingScoreTrendLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static InitializingScoreTrendLevel[] |
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 InitializingScoreTrendLevel ANY
public static final InitializingScoreTrendLevel ONLY_UP
Score
is monotonically increasing.
This means: given a non-fully initialized Solution
with a Score
A,
initializing 1 or more variables (without altering the already initialized variables)
will give a Solution
for which the Score
is better or equal to A.
In practice, this means that the score constraints of this score level are all positive,
and initializing a variable cannot unmatch a already matched positive constraint.
Also implies the perfect minimum score is 0.
public static final InitializingScoreTrendLevel ONLY_DOWN
Score
is monotonically decreasing.
This means: given a non-fully initialized Solution
with a Score
A,
initializing 1 or more variables (without altering the already initialized variables)
will give a Solution
for which the Score
is worse or equal to A.
In practice, this means that the score constraints of this score level are all negative,
and initializing a variable cannot unmatch a already matched negative constraint.
Also implies the perfect maximum score is 0.
Method Detail |
---|
public static InitializingScoreTrendLevel[] values()
for (InitializingScoreTrendLevel c : InitializingScoreTrendLevel.values()) System.out.println(c);
public static InitializingScoreTrendLevel 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 int getOptimisticBoundInt()
public int getPessimisticBoundInt()
public long getOptimisticBoundLong()
public long getPessimisticBoundLong()
public double getOptimisticBoundDouble()
public double getPessimisticBoundDouble()
|
OptaPlanner core 6.2.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |