<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
1) yes<br>
Take a look if this section in the manual solves your questions:<br>
5.5. Reusing the score calculation outside the Solver<br>
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/drools/release/latest/optaplanner-docs/html_single/index.html#d0e4529">http://docs.jboss.org/drools/release/latest/optaplanner-docs/html_single/index.html#d0e4529</a><br>
<br>
2) For Beta4 (which will be released soon), that section is improved
to show the use of ScoreDirector.getConstaintMatch() which will
answer question 2).<br>
<br>
<div class="moz-cite-prefix">On 26-06-13 17:13, Sandeep Bandela
wrote:<br>
</div>
<blockquote
cite="mid:CADXCGbmcrpP-KgduCc=Ey_4Virt5kpC1tqPG2DTHtryh_AXT_Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>Hi,<br>
</div>
I have some experience with drools 5 and now experimenting
on planner & drools 6.<br>
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)<br>
<br>
</div>
I need to know few things about this unsolved solution.<br>
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.<br>
</div>
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?<br>
<div>
<div><br clear="all">
<div>
<div><br>
-- <br>
Regards,<br>
Sandeep Bandela.<br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
</blockquote>
<br>
</body>
</html>