<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">Op 14-01-13 14:16, Michiel Vermandel
schreef:<br>
</div>
<blockquote
cite="mid:1358169406.1882.YahooMailNeo@web161305.mail.bf1.yahoo.com"
type="cite">
<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?:
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/issues/?jql=project%20%3D%20DROOLS">https://issues.jboss.org/issues/?jql=project%20%3D%20DROOLS</a><br>
</div>
</div>
</blockquote>
Do it in <a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/JBRULES">https://issues.jboss.org/browse/JBRULES</a> in component
drools-planner for now.<br>
<blockquote
cite="mid:1358169406.1882.YahooMailNeo@web161305.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:tahoma,
new york, times, serif;font-size:10pt">
<div> <br>
Thanks<br>
<br>
</div>
<div>-----------------<br>
<a class="moz-txt-link-freetext" href="http://www.codessentials.com">http://www.codessentials.com</a> - Your essential software, for
free!<br>
Follow us at <a class="moz-txt-link-freetext" href="http://twitter.com/#!/Codessentials">http://twitter.com/#!/Codessentials</a><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 <a class="moz-txt-link-rfc2396E" href="mailto:ge0ffrey.spam@gmail.com"><ge0ffrey.spam@gmail.com></a><br>
<b><span style="font-weight: bold;">To:</span></b>
Michiel Vermandel <a class="moz-txt-link-rfc2396E" href="mailto:mvermand@yahoo.com"><mvermand@yahoo.com></a>; Rules
Users List <a class="moz-txt-link-rfc2396E" href="mailto:rules-users@lists.jboss.org"><rules-users@lists.jboss.org></a> <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>
<a class="moz-txt-link-freetext" href="http://www.codessentials.com">http://www.codessentials.com</a> - Your essential
software, for free!<br>
Follow us at <a class="moz-txt-link-freetext" href="http://twitter.com/#!/Codessentials">http://twitter.com/#!/Codessentials</a></div>
</div>
<br>
<fieldset class="yiv1123909303mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" 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 moz-do-not-send="true" 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>
<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>