Interesting challenge. I presume you're talking about getting the
starting score such as -40init/0hard/0soft.
The solvingStarted event, which creates the initial best score a
few milliseconds after the solve() method is called,
does indeed NOT send out a best solution event.
But solver.getBestScore() could indeed extract that starting
score, such as -40init/0hard/0soft.
Or did you also get CH score improvement, such as -38init/0hard/-5soft
and -36init/0hard/-25soft?
If we do start sending out a best score event for that, and users
don't do the isFeasible() or isInitialized() checks, then it could
surpsise them after upgrading.
Something to think about.
Workaround:
Use ScoreManager to calculate the starting score and use that
until the first new best solution even comes in - typically with
an initialized score.
With kind regards,
Geoffrey De Smet
--
You received this message because you are subscribed to the Google Groups "OptaPlanner development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to optaplanner-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/optaplanner-dev/2bdcadb3-34d5-4fa6-862b-f54a51950822n%40googlegroups.com.