Thanks Geoffrey, I missed that section 5.5 in the manual.
I will be eagerly waiting for updates on 2nd point :)


On Wed, Jun 26, 2013 at 9:00 PM, Geoffrey De Smet <ge0ffrey.spam@gmail.com> wrote:
1) yes
Take a look if this section in the manual solves your questions:
  5.5. Reusing the score calculation outside the Solver
  http://docs.jboss.org/drools/release/latest/optaplanner-docs/html_single/index.html#d0e4529

2) For Beta4 (which will be released soon), that section is improved to show the use of ScoreDirector.getConstaintMatch() which will answer question 2).


On 26-06-13 17:13, Sandeep Bandela wrote:
Hi,
I have some experience with drools 5 and now experimenting on planner & drools 6.
I have 'unsolved' PlanningSolution that could be given to a solver and it successfully solves it. (its just the curriculum example with few more variables like teachingAssistant, equipment etc)

I need to know few things about this unsolved solution.
1) I want to know the score of this unsolved before starting to solve it. can I do this without instantiating my own drools session with my score holder and execute the rules for score? i.e only using optaplanner-api and not depend on underlying rules engine used by planner.
2) I also want to have some information on what all rules got fired in calculation of score (the negative ones). to print the conflicting planning entities & their variables. I could put a message from each rule to some object in workingMem. but how can I get those objects back after the solver is done but didnt have a feasible solution/ or even for any given solution. or is there any better way?


--
Regards,
Sandeep Bandela.


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
Regards,
Sandeep Bandela.