<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div><span>Hi Geoffrey,</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: tahoma,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: tahoma,new york,times,serif; background-color: transparent; font-style: normal;"><span>Putting the </span>entityTabuSizeto 3 did fix the issue, indeed.</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: tahoma,new york,times,serif; background-color: transparent; font-style: normal;">Many thanks for the tip.</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: tahoma,new york,times,serif; background-color: transparent; font-style: normal;">With "Feel free to make an issue about this.", do you mean I should register an Issue
here?: https://issues.jboss.org/issues/?jql=project%20%3D%20DROOLS<br></div><div> <br>Thanks<br><br></div><div>-----------------<br>http://www.codessentials.com - Your essential software, for free!<br>Follow us at http://twitter.com/#!/Codessentials<br></div> <div style="font-family: tahoma, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Geoffrey De Smet <ge0ffrey.spam@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Michiel Vermandel <mvermand@yahoo.com>; Rules Users List <rules-users@lists.jboss.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, January 14, 2013 1:48 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Stuck on simple testcase<br> </font> </div> <br>
<div id="yiv1123909303">
<div>
<br>
<div class="yiv1123909303moz-cite-prefix">Op 14-01-13 13:08, Michiel Vermandel
schreef:<br>
</div>
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:tahoma, new york, times, serif;font-size:10pt;">
<div><span>Hi,</span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
<span></span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><span>I wrote a quite simple
unit test which I expected to succeed.</span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><span>But it does not, it
ends with a negative score.</span></div>
</div>
</blockquote>
Enable logging trace (logging != environmentMode) and check if you
can see the moves that it should take and why it doesn't take them.<br>
A very small problem can't work with entityTabuSize 7 for example.<br>
There are some idea's to auto-tweak the entityTabuSize or at least
automatically lower it if there are too little entities.<br>
Feel free to make an issue about this.<br>
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:tahoma, new york, times, serif;font-size:10pt;">
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><span>Though, it is easy to
see on sight that there is a zero-score solution possible.</span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><span>So... something must
be wrong in some of my rules.</span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
<span></span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><span>I was wondering if it
is possible to manually set all planning variables to what I
expected them to be and then see which rule(s) break(s)?</span></div>
</div>
</blockquote>
Yes, see Solver.getScoreDirectorFactory (see docs).<br>
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:tahoma, new york, times, serif;font-size:10pt;">
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><span>So planning variables
should not be changed anymore while solving.</span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
<span></span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><span>I'm using drools
planner 5.5.0.Final.</span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
<span></span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><span>Thanks,</span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
<span></span></div>
<div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;
background-color:transparent;font-style:normal;"><span>Michiel</span></div>
<div> </div>
<div>-----------------<br>
http://www.codessentials.com - Your essential software, for
free!<br>
Follow us at http://twitter.com/#!/Codessentials</div>
</div>
<br>
<fieldset class="yiv1123909303mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
rules-users mailing list
<a rel="nofollow" class="yiv1123909303moz-txt-link-abbreviated" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a rel="nofollow" class="yiv1123909303moz-txt-link-freetext" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</div>
</div><br><br> </div> </div> </div></body></html>