Dionysis.B
Dionysis.B

Reputation: 109

OptaPlanner: how to compute the score on the given entities without constructing any solution

On my project I have to find a way to initialize some entities and return their score without changing their values. Is it possible?

Upvotes: 0

Views: 71

Answers (1)

Geoffrey De Smet
Geoffrey De Smet

Reputation: 27327

Take a look at docs section "Explaining the score" in the chapter "score calculation".

Basically, call Solver.getScoreDirectoFactory() and call ScoreDirector.setWorkingSolution() and ScoreDirector.calculateScore().

Upvotes: 1

Related Questions