Solution_ - the solution type, the class with the PlanningSolution annotationpublic interface EasyScoreCalculator<Solution_>
Score calculation. This is non-incremental calculation, which is slow.
An implementation must be stateless.
EasyScoreDirector| Modifier and Type | Method and Description |
|---|---|
Score |
calculateScore(Solution_ solution,
int initScore)
This method is only called if the
Score cannot be predicted. |
Score calculateScore(Solution_ solution, int initScore)
Score cannot be predicted.
The Score can be predicted for example after an undo Move.solution - never nullinitScore - <= 0, managed by OptaPlanner, needed as a parameter in the Score's creation
method, see Score.getInitScore()Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.