[jboss-jira] [JBoss JIRA] (DROOLS-1179) Provide an isolated reproducer for DROOLS-1174

Jiri Locker (JIRA) issues at jboss.org
Tue May 17 06:11:00 EDT 2016


     [ https://issues.jboss.org/browse/DROOLS-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiri Locker resolved DROOLS-1179.
---------------------------------
    Resolution: Done


Isolated reproducer available at https://github.com/yurloc/optaplanner/commits/drools-1179.

Solver work reduced to 2 moves in the first step of LS. The first move is successful and the second one fails with corrupted score:

{noformat}
2016-05-17 11:36:23,934 [main] INFO  Solving started: time spent (79), best score (-1600), environment mode (NON_INTRUSIVE_FULL_ASSERT), random (JDK with seed 0).
2016-05-17 11:36:23,938 [main] TRACE     Created cachedMoveList: size (25), moveSelector (Shuffling(Filtering(SwapMoveSelector(FromSolutionEntitySelector(SeatDesignation), FromSolutionEntitySelector(SeatDesignation))))).
2016-05-17 11:36:23,938 [main] TRACE     Shuffled cachedMoveList with size (25) in moveSelector(Shuffling(Filtering(SwapMoveSelector(FromSolutionEntitySelector(SeatDesignation), FromSolutionEntitySelector(SeatDesignation))))).
2016-05-17 11:36:23,952 [main] TRACE         Move index (18), score (-1600), accepted (true), move (Aaliyah {2.7} <-> Aubrey {2.5}).
Exception in thread "main" java.lang.IllegalStateException: Score corruption: the workingScore (-1700) is not the uncorruptedScore (-1600) after completedAction (Kaylee {1.7} <-> Avery {0.7}):
  The corrupted scoreDirector has 1 ConstraintMatch(s) which are in excess (and should not be there):
    org.optaplanner.examples.dinnerparty.solver/twoSameJobTypePerTable/level0/[1, DOCTOR]=-100
  The corrupted scoreDirector has no ConstraintMatch(s) which are missing.
  Check your score constraints.
{noformat}

There is only a single rule in dinnerPartyScoreRules.drl and the initialized solution has been reduced to 5 entities and 8 facts.

> Provide an isolated reproducer for DROOLS-1174
> ----------------------------------------------
>
>                 Key: DROOLS-1179
>                 URL: https://issues.jboss.org/browse/DROOLS-1179
>             Project: Drools
>          Issue Type: Sub-task
>          Components: core engine
>            Reporter: Jiri Locker
>            Assignee: Jiri Locker
>




--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list