[rules-users] Drools Planner - Constraint Occurrences in working memory

awuttke andreas.wuttke at hp.com
Wed Apr 21 09:26:53 EDT 2010


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.



More information about the rules-users mailing list