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

ProblemFactChange: allow refreshing/nuking all shadow variables

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 8.35.0.Final
    • 6.3.0.Final
    • optaplanner-core
    • None
    • 2023 Week 06-08 (from Feb 6)
    • 5
    • NEW
    • NEW

      Suppose we have a shadow variable C which is the sum of A and B.
      A is problem property (on a problem fact for example)
      B is a genuine variable.
      When a ProblemFactChange changes A, it also needs to update C somehow.

      It should be possible to just "refresh all shadow variable" by triggering all shadow variable listeners for all shadow variables (aka "nuke them").

      Besides in ProblemFactChange, this is also useful when unmarshalling an initialized solution when the shadow variables aren't persisted to safe room.

              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: