|
OptaPlanner distribution 6.0.1.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScoreDefinition<S extends Score>
A ScoreDefinition knows how to compare Scores and what the perfect maximum/minimum Score is.
AbstractScoreDefinition,
HardSoftScoreDefinition| Method Summary | |
|---|---|
ScoreHolder |
buildScoreHolder(boolean constraintMatchEnabled)
|
double |
calculateTimeGradient(S startScore,
S endScore,
S score)
See explanation in Termination.calculateSolverTimeGradient(DefaultSolverScope). |
String |
formatScore(Score score)
Returns a String representation of the Score. |
S |
getPerfectMaximumScore()
The perfect maximum Score is the Score of which there is no better in any problem instance. |
S |
getPerfectMinimumScore()
The perfect minimum Score is the Score of which there is no worse in any problem instance. |
Class<S> |
getScoreClass()
Returns the Class of the actual Score implementation |
Score |
parseScore(String scoreString)
Parses the String and returns a Score. |
| Method Detail |
|---|
S getPerfectMaximumScore()
Score is the Score of which there is no better in any problem instance.
This doesn't mean that the current problem instance, or any problem instance for that matter,
could ever attain that Score.
For example, most cases have a perfect maximum Score of zero, as most use cases only have negative
constraints.
S getPerfectMinimumScore()
Score is the Score of which there is no worse in any problem instance.
This doesn't mean that the current problem instance, or any problem instance for that matter,
could ever attain such a bad Score.
For example, most cases have a perfect minimum Score of negative infinity.
Class<S> getScoreClass()
Class of the actual Score implementation
String formatScore(Score score)
String representation of the Score.
score - never null
parseScore(String)Score parseScore(String scoreString)
String and returns a Score.
scoreString - never null
formatScore(Score)
double calculateTimeGradient(S startScore,
S endScore,
S score)
Termination.calculateSolverTimeGradient(DefaultSolverScope).
startScore - never nullendScore - never nullscore - never null
ScoreHolder buildScoreHolder(boolean constraintMatchEnabled)
constraintMatchEnabled - true if ScoreHolder.isConstraintMatchEnabled() should be true
|
OptaPlanner distribution 6.0.1.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||