- Timestamp:
- 12/13/17 09:47:49 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/2D/BinPacking2D.cs
r15473 r15520 31 31 [StorableClass] 32 32 public class BinPacking2D : BinPacking.BinPacking<PackingPosition, PackingShape, PackingItem> { 33 [Storable] 34 public SortedSet<PackingPosition> ExtremePoints { get; protected set; } 33 35 34 36 public BinPacking2D(PackingShape binShape) 35 37 : base(binShape) { 38 ExtremePoints = new SortedSet<PackingPosition>(); 36 39 OccupationLayers = new Dictionary<int, List<int>>(); 37 40 ExtremePoints.Add(binShape.Origin); … … 46 49 OccupationLayers.Add(kvp.Key, new List<int>(kvp.Value)); 47 50 } 51 52 this.ExtremePoints = new SortedSet<PackingPosition>(original.ExtremePoints.Select(p => cloner.Clone(p))); 48 53 } 49 54 public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset
for help on using the changeset viewer.