Hi Geoffrey,
I couldn't find the example code you mentioned but based on your description
I added the following lines after the planner was called:
ruleEnginePlanner.solve();
CustomSolution bestSolution = (CustomSolution)
ruleEnginePlanner.getBestSolution();
ruleEnginePlanner.getLocalSearchSolverScope().setWorkingSolution(bestSolution);
ruleEnginePlanner.getLocalSearchSolverScope().calculateScoreFromWorkingMemory();
This recreates the ConstraintOccurrence instances matching the best
solution.
Thank You,
Andreas
--
View this message in context:
http://n3.nabble.com/Drools-Planner-Constraint-Occurrences-in-working-mem...
Sent from the Drools - User mailing list archive at
Nabble.com.