<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 05-02-13 09:16, Michiel Vermandel
schreef:<br>
</div>
<blockquote
cite="mid:1360052193.12827.YahooMailNeo@web161305.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>I am using Drools
planner 5.5.0.Final.<br>
</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>Once again I have the
exception "The workingMemory has 1 ConstraintOccurrence(s)
in excess".</span></div>
<div>I have added all relevant planning variables as parameters
of the ConstraintOccurrence.<br>
<br>
Could the following theory be an explanation for this issue? <br>
<br>
My dataset is not that big (not small either).<br>
Could it be that a certain move is taken twice within the same
step (as part of score trap?) which results in the same
constraint occurrence?<br>
</div>
</div>
</blockquote>
No, the same move twice in the same step should not cause any
trouble.<br>
If you can prove this causes the score corruption, it's a bug in
Drools Expert.<br>
There have been a bunch of bugfixes in drools, so try drools (-core,
-compiler, knowledge-api, mvel, ...) 5.5.0-SNAPSHOT:<br>
<a class="moz-txt-link-freetext" href="https://repository.jboss.org/nexus/content/groups/public/org/drools/drools-core/5.5.1-SNAPSHOT/drools-core-5.5.1-20130205.051201-93.pom">https://repository.jboss.org/nexus/content/groups/public/org/drools/drools-core/5.5.1-SNAPSHOT/drools-core-5.5.1-20130205.051201-93.pom</a><br>
If that doesn't help, paste the rule.<br>
<blockquote
cite="mid:1360052193.12827.YahooMailNeo@web161305.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:arial,
helvetica, sans-serif;font-size:10pt">
<div><br>
I have one other question - maybe related:<br>
In my configuration I have this:<br>
<br>
<acceptor><br>
<planningEntityTabuSize>7</planningEntityTabuSize>
<!-- I tested with lower values (5, 3) too --><br>
</acceptor><br>
<forager><br>
<pickEarlyType>FIRST_BEST_SCORE_IMPROVING</pickEarlyType><br>
<minimalAcceptedSelection>1000</minimalAcceptedSelection><br>
</forager><br>
<br>
Because of the forager configuration a step is sometimes taken
after as little as 40 moves, but sometimes the number of moves
grows to enormous amounts.<br>
I think if that happens that the score is no longer improving.<br>
Is it "normal" that a certain step can make +50k moves and
counting?<br>
</div>
</div>
</blockquote>
you're set at 1k minimalAcceptedSelection, so 50k is a lot indeed.<br>
This is probably because the planningEntityTabuSize is to high
compared to the number of entity's in your dataset.<br>
There's a jira for making planningEntityTabuSize automatically
adjust itself based on the entity size (which would solve this).<br>
Or it could also be because the number of possible moves (entity
size * value size) is near 1k.<br>
<br>
<blockquote
cite="mid:1360052193.12827.YahooMailNeo@web161305.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:arial,
helvetica, sans-serif;font-size:10pt">
<div>Or does indicate once more to a score trap?<br>
</div>
</div>
</blockquote>
No. It indicates that planner's config should scale down
automatically.<br>
How many entity's and values do you have?<br>
<blockquote
cite="mid:1360052193.12827.YahooMailNeo@web161305.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:arial,
helvetica, sans-serif;font-size:10pt">
<div><br>
Thanks<br>
<br>
Michiel<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></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>