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

Remove redundant incremental methods from ProblemChangeDirector

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • optaplanner-core
    • None
    • 2022 Week 11-13 (from Mar 14)
    • 5
    • NEW
    • NEW

      It turned out that https://issues.redhat.com/browse/PLANNER-2599 is not doable. In other words, problem changes cannot be fully incremental.
      Thus, it makes no sense to require users to call methods that were meant to support incremental changes: addEntity, removeEntity, addProblemFact, etc.

      Instead, the ProblemChange implementation is supposed to directly change the best solution passed to it.

      Every ProblemChange should also decide whether or not it expects shadow variables to be already updated on the best solution it receives:

      default boolean usesShadowVariables()

      { return true; }

              rsynek@redhat.com Radovan Synek (Inactive)
              rsynek@redhat.com Radovan Synek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: