<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 10-01-13 10:54, Michiel Vermandel
      schreef:<br>
    </div>
    <blockquote
      cite="mid:1357811666.94991.YahooMailNeo@web161301.mail.bf1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:tahoma,
        new york, times, serif;font-size:10pt">
        <div><span>Hi,</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><br>
          <span></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><span>While running a
            planning I get after about 5 minutes a score corruption:</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><br>
          <span></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><span>Exception in thread
            "main" java.lang.IllegalStateException: Score corruption:
            the workingScore (-33hard/0soft) is not the uncorruptedScore
            (-23hard/0soft):<br>
            &nbsp; The workingMemory has 1 ConstraintOccurrence(s) in excess:<br>
            &nbsp;&nbsp;&nbsp; noConsecutiveIV/NEGATIVE_HARD:[Inspection of
            B747-AX145.I#1 -233344192, Inspection of B737-AC126.I#1
            -24157252, Andy]=10<br>
            &nbsp; Check the score rules who created those
            ConstraintOccurrences. Verify that each
            ConstraintOccurrence's causes and weight is correct.</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><br>
          <span></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><span>This occurs in the
            localSearch phase (when only running the construction
            heuristic phase, I do not get this exception).</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><br>
          <span></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><span>How do I start in
            tackling this issue?</span></div>
      </div>
    </blockquote>
    Start by looking at the "causes" vararg parameter you're giving to
    new IntConstraintOccurrence,<br>
    including the equals/hashCode() of each of those elements.<br>
    Read up about insertLogical in the Drools Expert manual.<br>
    <br>
    PS: for 6.0 we're working on unmatchListeners which would allow us
    to avoid the insertLogical and the "causes" parameter.<br>
    <blockquote
      cite="mid:1357811666.94991.YahooMailNeo@web161301.mail.bf1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:tahoma,
        new york, times, serif;font-size:10pt">
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><br>
          <span></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><span>Thanks a lot!</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><br>
          <span></span></div>
        <div style="color: rgb(0, 0, 0); font-size: 13.3333px;
          font-family: tahoma,new york,times,serif; background-color:
          transparent; font-style: normal;"><span>Michiel</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>