<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 19-01-13 21:08, Michiel Vermandel
      schreef:<br>
    </div>
    <blockquote
      cite="mid:1358626139.4166.YahooMailNeo@web161303.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 still struggling
            to find why my simple unit test cannot be solved to a zero
            score solution.</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>It is easily to see
            the solution on sight and if I feed it with the prepared
            solution (in a custom solver phase) it "finds" the optimal
            solution right away.</span></div>
      </div>
    </blockquote>
    If you can easily see the solution on sight, you should also be able
    to easily see which move it should do to reach that optimal
    solution.<br>
    What does logging with level TRACE print? Can you find the move it
    should do in that log? What score does the log say that move has?<br>
    <blockquote
      cite="mid:1358626139.4166.YahooMailNeo@web161303.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>I'm trying everything
            and try to review everything I have written.</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>It is during that
            review that I noticed that the equals and hashcode methods
            of my solution implementation class are never called.</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>Obviously the
            solutionEquals and solutionHashCode methods of my planning
            entity are never called either.</span></div>
      </div>
    </blockquote>
    solutionEquals/HashCode is only called with
    &lt;solutionTabuSize&gt;, which is worthless when scaling out
    (unlike entityTabuSize).<br>
    A solution's equals/hashCode is never called.<br>
    <br>
    &lt;entityTabuSize&gt; should be calling the planning entity's
    equals/hashcode, at least in Planner 5.5-.<br>
    For Planner 6.0 I am looking into stop relying on the entity's
    equals/hashcode, in case users have overwritten the default
    java.lang.Object behavior in a way that's incompatible for Planner.<br>
    <blockquote
      cite="mid:1358626139.4166.YahooMailNeo@web161303.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;"><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>What should I conclude
            out of that?</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 this a crucial
            issue? If so, what should I check/change?<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;"><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 running Drools
            Planner 5.5.0.Final on java 1.7.0 on a Windows 7 64bit
            machine.</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>Thanks,</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>Michiel Vermandel</span></div>
        <div>&nbsp;</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>