<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 22-01-13 16:37, Michiel Vermandel
      schreef:<br>
    </div>
    <blockquote
      cite="mid:1358869033.53715.YahooMailNeo@web161303.mail.bf1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:arial,
        helvetica, sans-serif;font-size:10pt">Hi,<br>
        <br>
        I'm trying to find an issue that I expect to be a score trap.<br>
        As Geoffrey pointed out I enabled TRACE logging, which produces
        a rather big file.<br>
        <br>
        Is there documentation on how to interpret the content? <br>
      </div>
    </blockquote>
    See logging chapter in manual and this image<br>
<a class="moz-txt-link-freetext" href="https://github.com/droolsjbpm/drools-planner/blob/master/drools-planner-docs/src/main/docbook/en-US/images/Chapter-Optimization_algorithms/scopeOverview.png">https://github.com/droolsjbpm/drools-planner/blob/master/drools-planner-docs/src/main/docbook/en-US/images/Chapter-Optimization_algorithms/scopeOverview.png</a><br>
    <blockquote
      cite="mid:1358869033.53715.YahooMailNeo@web161303.mail.bf1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:arial,
        helvetica, sans-serif;font-size:10pt"><br>
        There are some things that I do not understand:<br>
        <br>
        1) I see sometimes this type of logging:&nbsp; <br>
        &nbsp;&nbsp; TRACE main
        org.drools.planner.core.localsearch.decider.DefaultDecider
        -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Move index (249), score (-484hard/0soft), accepted
        (true) for move ({T= Inspect B747-AX.I#0 [P1] Kristof IV}
        &lt;=&gt; {T= Inspect A311-DX.I#1 [P1] Gerald IV}).<br>
        <div><span>&nbsp;&nbsp; What does the &lt;=&gt; mean in this logging? What
            does the move actually do in this case?<br>
          </span></div>
      </div>
    </blockquote>
    &lt;=&gt; means it's a swap move<br>
    =&gt; means it's a change move<br>
    Looks like it swaps all variable values of B747-AX and A311-DX
    <blockquote
      cite="mid:1358869033.53715.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>2) TRACE main
            org.drools.planner.core.localsearch.decider.DefaultDecider
            -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Move index (273), score (-5562hard/0soft),
            accepted (true) for move ({T= Inspect </span><span>B747-AX.I#0
            [P3] Kristof IV} =&gt; (P9) ).</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>&nbsp;&nbsp; This line indicates
            that the move is accepted. Is a move accepted before
            validating the rules or after?</span></div>
      </div>
    </blockquote>
    Unrelated: accepted means it's not tabu.<br>
    Of all the accepted moves, the move with the highest score wins and
    becomes the step.<br>
    <blockquote
      cite="mid:1358869033.53715.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> And in the same way
            does the</span> <span>score (-5562hard/0soft) indicate the
            score before or after the validation of the rules?<br>
          </span></div>
      </div>
    </blockquote>
    The score is the validation of the rules, after the move has been
    applied.<br>
    <blockquote
      cite="mid:1358869033.53715.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>&nbsp;<br>
          Can someone give me some directions, please?<br>
          <br>
          Thanks,<br>
          <br>
          Michiel<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>