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-memory-tp731804p739929.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to