<html><body><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><br>I have one other question - maybe related:<br>In my configuration I have this:<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;acceptor&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;planningEntityTabuSize&gt;7&lt;/planningEntityTabuSize&gt; &lt;!-- I tested with lower values (5, 3) too --&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/acceptor&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;forager&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pickEarlyType&gt;FIRST_BEST_SCORE_IMPROVING&lt;/pickEarlyType&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;minimalAcceptedSelection&gt;1000&lt;/minimalAcceptedSelection&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/forager&gt;<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>Or does indicate once more to a score trap?<br><br>Thanks<br><br>Michiel<br>&nbsp;<br></div><div>-----------------<br>http://www.codessentials.com - Your essential software, for free!<br>Follow us at http://twitter.com/#!/Codessentials</div></div></body></html>