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

Semi-pinned: Planning variable immovability (not just per entity): A planning variable can be pinned for Planner with a @PlanningPin while another variable in the same entity is not pinned

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • None
    • optaplanner-core
    • None

    Description

      Old title: Planning variable immovability (not just per entity): A planning variable can be immovable for Planner based on a SelectionFilter while another variable in the same entity is movable

      Not simple, because:

      • entities would need to be selected, but only in move selectors that actually change one of the pinned planning variables.
      • moves selectors that change multiple variables must not change pinned planning variables

      strawman napkin design:

      @PlanningEntity
      class Lesson {
      
         @PlanningPin(variable= {"room"})
         private boolean roomLocked;
      
          @PlanningVariable
          private Timeslot timeslot;
          @PlanningVariable
          private Room room;
      
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: