<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">Op 19-01-13 19:18, Michiel Vermandel
schreef:<br>
</div>
<blockquote
cite="mid:1358619533.60504.YahooMailNeo@web161306.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:arial,
helvetica, sans-serif;font-size:10pt">
<div><span>Hi,</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;"><br>
<span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;"><span>Is there any
deterministic way for detecting a score trap in Drools
Planner?</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;">I have read about the
hill-climbing issue and the ways to reduce the possibility of
this but I think it is still possible to encounter, right?</div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;">So it would be great to have
some red-light flashing when it happens after all :-)<br>
</div>
</div>
</blockquote>
Yes, but they are hard to detect automatically.<br>
One red-light flashing is by using
<problemStatisticType>BEST_SOLUTION_CHANGED</problemStatisticType><br>
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/drools/release/5.5.0.Final/drools-planner-docs/html_single/index.html#d0e7101">http://docs.jboss.org/drools/release/5.5.0.Final/drools-planner-docs/html_single/index.html#d0e7101</a><br>
I 'd like to automate detection of it:<br>
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/PLANNER-120">https://issues.jboss.org/browse/PLANNER-120</a><br>
<br>
If you see this, you probably have a score trap:<br>
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/secure/attachment/12359971/badBecauseScoreTrap.png">https://issues.jboss.org/secure/attachment/12359971/badBecauseScoreTrap.png</a><br>
Then run the solver again, but terminate it in the middle of that
first flat line and write the solution.<br>
Then examine that solution for score traps.<br>
<br>
Just pushed a new image and some docs explaining score traps better,
as several users might have encountered it:<br>
<a class="moz-txt-link-freetext" href="https://github.com/droolsjbpm/drools-planner/commit/e9034f4ac60e7a4bd65f7223c5a3dd47e0d7b903">https://github.com/droolsjbpm/drools-planner/commit/e9034f4ac60e7a4bd65f7223c5a3dd47e0d7b903</a><br>
<blockquote
cite="mid:1358619533.60504.YahooMailNeo@web161306.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:arial,
helvetica, sans-serif;font-size:10pt">
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;"><span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;"><span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;">Thanks,</div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;">Michiel</div>
<div style="c olor: rgb(0, 0, 0); font-size: 13.3333px;
font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;"><br>
<span></span></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="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>