Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-759

ConstraintMatches in excess and missing does not recognize duplicates since Indictement feature

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.0.0.Beta8
    • None
    • optaplanner-core
    • None
    • NEW
    • NEW

      The order of getObjectsDeep() isn't stable, so [A, B, C] is being seen different then [A, C, B].

        The corrupted scoreDirector has 7 ConstraintMatch(s) which are in excess (and should not be there):
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 17, 2010-01-01/L, 2010-01-02/N, 2010-01-03/N, 2-TOTAL_ASSIGNMENTS]=0hard/-1soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 0, 2010-01-01/E, 2010-01-02/E, 2010-01-03/E, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 1, 2010-01-01/E, 2010-01-02/E, 2010-01-03/E, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 3, 2010-01-01/E, 2010-01-02/E, 2010-01-03/E, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 4, 2010-01-01/E, 2010-01-02/E, 2010-01-03/E, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 7, 2010-01-02/D, 2010-01-03/D, 2010-01-01/E, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 11, 2010-01-02/D, 2010-01-03/D, 2010-01-01/L, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
        The corrupted scoreDirector has 6 ConstraintMatch(s) which are missing:
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 0, 2010-01-01/E, 2010-01-03/E, 2010-01-02/E, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 1, 2010-01-01/E, 2010-01-03/E, 2010-01-02/E, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 3, 2010-01-01/E, 2010-01-03/E, 2010-01-02/E, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 4, 2010-01-01/E, 2010-01-03/E, 2010-01-02/E, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 7, 2010-01-03/D, 2010-01-02/D, 2010-01-01/E, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
          org.optaplanner.examples.nurserostering.solver/Minimum and maximum number of assignments/[3, 11, 2010-01-03/D, 2010-01-02/D, 2010-01-01/L, 0-TOTAL_ASSIGNMENTS]=0hard/-3soft
      

      the above only has 1 in excess really.

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: