Op 10-01-13 10:54, Michiel Vermandel schreef:
Hi,

While running a planning I get after about 5 minutes a score corruption:

Exception in thread "main" java.lang.IllegalStateException: Score corruption: the workingScore (-33hard/0soft) is not the uncorruptedScore (-23hard/0soft):
  The workingMemory has 1 ConstraintOccurrence(s) in excess:
    noConsecutiveIV/NEGATIVE_HARD:[Inspection of B747-AX145.I#1 -233344192, Inspection of B737-AC126.I#1 -24157252, Andy]=10
  Check the score rules who created those ConstraintOccurrences. Verify that each ConstraintOccurrence's causes and weight is correct.

This occurs in the localSearch phase (when only running the construction heuristic phase, I do not get this exception).

How do I start in tackling this issue?
Start by looking at the "causes" vararg parameter you're giving to new IntConstraintOccurrence,
including the equals/hashCode() of each of those elements.
Read up about insertLogical in the Drools Expert manual.

PS: for 6.0 we're working on unmatchListeners which would allow us to avoid the insertLogical and the "causes" parameter.

Thanks a lot!

Michiel
 
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users