Jack Kass
Jack Kass

Reputation: 55

Optaplanner : Which score value should I trust?

Which score value is the actual solution score : is it the score value returned by the method ScoreDirector.calculateScore() or the value returned by Solution.getScore()?

I'm asking this because I noticed they return different values for every new best solution found.

Upvotes: 0

Views: 183

Answers (1)

Geoffrey De Smet
Geoffrey De Smet

Reputation: 27312

They shouldn't. That implies you have score corruption, which is bad. Turn on:

<solver>
   <environmentMode>FAST_ASSERT</environmentMode>

and

<solver>
   <environmentMode>FULL_ASSERT</environmentMode>

to find out where.

Upvotes: 1

Related Questions