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

Index in chain shadow variable (generic) that for VRP etc gives which nth visit it is

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • optaplanner-core
    • NEW
    • NEW

      @PlanningEntity
      class Visit {
        ...
      
        @IndexInChainShadowVariable
        int indexInChain;
      
        ...
      }
      

      Given these chains:
      Anchor1 - A - B - C - D - E
      Anchor2 - X - Y

      then
      A.indexInChain = 0
      B.indexInChain = 1
      C.indexInChain = 2
      D.indexInChain = 3
      E.indexInChain = 4
      X.indexInChain = 0
      Y.indexInChain = 1

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

                Created:
                Updated: