- Timestamp:
- 05/12/17 14:10:55 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BinPackingExtension/HeuristicLab.Problems.BinPacking/3.3/BinPacking.cs
r14876 r14976 51 51 protected Dictionary<int, List<int>> OccupationLayers { get; set; } 52 52 53 [Storable] 54 public Dictionary<TPos, Tuple<int,int,int>> ResidualSpace { get; protected set; } 55 53 56 #endregion Properties 54 57 … … 64 67 OccupationLayers = new Dictionary<int, List<int>>(); 65 68 } 66 67 69 68 70 [StorableConstructor] … … 93 95 public abstract void SlidingBasedPacking(ref IList<int> sequence, IList<TItem> items, Dictionary<int, bool> rotationArray); 94 96 public abstract void ExtremePointBasedPacking(ref IList<int> sequence, IList<TItem> items, bool stackingConstraints); 97 public abstract bool ExtremePointBasedPacking(int ID, IList<TItem> items, bool stackingConstraints); 95 98 public abstract void ExtremePointBasedPacking(ref IList<int> sequence, IList<TItem> items, bool stackingConstraints, Dictionary<int, bool> rotationArray); 96 99 … … 99 102 Positions[itemID] = position; 100 103 ExtremePoints.Remove(position); 104 if (ResidualSpace != null) ResidualSpace.Remove(position); 101 105 foreach (int id in Items.Select(x => x.Key)) 102 106 GenerateNewExtremePointsForNewItem(Items[id], Positions[id]); 103 107 104 108 AddNewItemToOccupationLayers(itemID, item, position); 105 109 } … … 146 150 public abstract bool IsStaticStable(TItem measures, TPos position); 147 151 148 149 152 protected abstract void InitializeOccupationLayers(); 150 153 protected abstract void AddNewItemToOccupationLayers(int itemID, TItem item, TPos position);
Note: See TracChangeset
for help on using the changeset viewer.