Changeset 15822 for branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/ExtremePointPruning
- Timestamp:
- 02/28/18 15:33:30 (7 years ago)
- Location:
- branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/ExtremePointPruning
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/ExtremePointPruning/ExtremePointPruning.cs
r15820 r15822 47 47 } 48 48 49 public void PruneExtremePoints(BinPacking3D binPacking, int layer) {49 public void PruneExtremePoints(BinPacking3D binPacking, int sequenceNumber) { 50 50 var pruningPositions = new List<KeyValuePair<int, PackingPosition>>(); 51 51 var pruning = new Dictionary<BinPacking3D, List<KeyValuePair<int, PackingPosition>>>(); 52 52 pruning.Add(binPacking, pruningPositions); 53 foreach (var item in binPacking.Items.Where(x => x.Value. Layer <= layer)) {53 foreach (var item in binPacking.Items.Where(x => x.Value.SequenceGroup <= sequenceNumber)) { 54 54 pruningPositions.Add(new KeyValuePair<int, PackingPosition>(item.Key, binPacking.Positions[item.Key])); 55 55 } -
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/ExtremePointPruning/IExtremePointPruning.cs
r15820 r15822 50 50 /// <param name="binPacking"></param> 51 51 /// <param name="layer" 52 void PruneExtremePoints(BinPacking3D binPacking, int layer);52 void PruneExtremePoints(BinPacking3D binPacking, int sequenceNumber); 53 53 } 54 54 }
Note: See TracChangeset
for help on using the changeset viewer.