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

Planner should support a null planning value

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 6.0.0.Final
    • None
    • optaplanner-core
    • None

    Description

      Several users on the user mailing list have run into this, especially for task assignment use cases.

      Example use case:
      @PlanningEntity TaskAssignment assigns a Task to a @PlanningVariable Employee
      There are so many Tasks, that's better to not assign some Tasks for now.

      Current workaround:
      Make a Employee representing NONE,
      which is the only Employee instance that returns true on employee.isNone()
      and the score rules are written to deal with that.

      Technical difficulty to fix:
      The @PlanningVariable(s) of a @PlanningEntity with planning value null are considered to be "uninitialized".
      Partial uninitialized solution detection is fundamental for repeated planning (including real-time planning),
      because the construction heuristics need to detect which parts of the solution to intialize, but not everything because that takes too long.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: