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

Indictment.getScoreTotal() corrupts when calculated incrementally

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.6.0.Final
    • 7.4.1.Final
    • optaplanner-core
    • None
    • Hide

      Start the NurseRostering example. Import Sprint01 for example. Start the solve, and then stop it anytime after construction. Hover over an assignment and observe the IndictmentTotal, and the individual (soft) indictments. Select the assignment and change it to another employee (preferably one that does not create a hard constraint). Hover over the assignment, and observe that the IndictmentTotal is now the sum of the original position's indictments and the new positions indictments. When you change the assignment back to its original position, the indictment total continues to accumulate.

      Show
      Start the NurseRostering example. Import Sprint01 for example. Start the solve, and then stop it anytime after construction. Hover over an assignment and observe the IndictmentTotal, and the individual (soft) indictments. Select the assignment and change it to another employee (preferably one that does not create a hard constraint). Hover over the assignment, and observe that the IndictmentTotal is now the sum of the original position's indictments and the new positions indictments. When you change the assignment back to its original position, the indictment total continues to accumulate.
    • NEW
    • NEW

      The Indictment class' retrievable ScoreTotal is corrupted when assignments are moved among entities (if the Indictment is not destroyed and rebuilt; specifically when manually moved). If a constraint match is added and then removed, the removeConstraintMatch method does not subtract from score total. This effect is reproducible and observable in the NurseRostering user interface.

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

              Created:
              Updated:
              Resolved: