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

Covid demo constraint: covidRiskType (all domain changes)

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • NEW
    • NEW

      On the covid-19 branch, add the following info:

      class Spot:

      • property covidWard type boolean (checkbox)

      class Employee:

      • property covidRiskType type enum CovidRiskType (combobox)

      new enum CovidRiskType:

      • Inoculated
      • Low
      • Moderate
      • High
      • Extreme

      4 new constraints:

      • if Shift assigns an employee with riskType low to covidWard, 1 soft score penalty
      • if Shift assigns an employee with riskType Moderate to covidWard, 5 soft score penalty
      • if Shift assigns an employee with riskType High to covidWard, 10 soft score penalty
      • if Shift assigns an employee with riskType Extreme to covidWard, 1 hard score penalty

      Ideally, those are configurable through ConstraintWeights (nice to have, not vital for first demo).

        1. screenshot-1.png
          78 kB
          Geoffrey De Smet

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

              Created:
              Updated:
              Resolved: