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

ConstraintVerifier: penalizesBy / rewardsWith do not work with impact()

    XMLWordPrintable

Details

    Description

      Currently, ConstraintVerifier penalizesBy / rewardsWith do not work with Constraint Streams that are terminated with `impact(...)`. This is probably caused by https://github.com/kiegroup/optaplanner/blob/e06abbce57ab64620c50eda9e25a3f50804f9017/optaplanner-test/src/main/java/org/optaplanner/test/impl/score/stream/DefaultSingleConstraintAssertion.java#L126-L128 , which handles ScoreimpactType.MIXED the same as ScoreImpactType.REWARD/ScoreImpactType.PENALTY.

      Attachments

        Issue Links

          Activity

            People

              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              cchianel Christopher Chianelli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: