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

Fail fast on negative constraint weights

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 7.34.0.Final
    • None
    • optaplanner-core
    • None
    • 2020 Week 07-09 (from Feb 10)
    • 2
    • Low
    • NEW
    • NEW

    Description

      In constraint streams, `penalize()` and `reward()` calls expect positive numbers both as a match weight, and from the weigher function. Negative values should be considered programming error and should fail fast.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: