- Timestamp:
- 07/21/16 21:07:27 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.BinPacking/3.3/2D/IntegerVectorEncoding
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.BinPacking/3.3/2D/IntegerVectorEncoding/BottomLeftIntegerVectorDecoder.cs
r14162 r14167 53 53 Solution partialSolution, 54 54 ref IList<int> remainingIDs, IList<PackingItem> items) { 55 var bp = new BinPacking2D(partialSolution.Bin Measures);55 var bp = new BinPacking2D(partialSolution.BinShape); 56 56 bp.SlidingBasedPacking(ref remainingIDs, items); 57 57 return bp; -
trunk/sources/HeuristicLab.Problems.BinPacking/3.3/2D/IntegerVectorEncoding/ExtremePointIntegerVectorDecoder.cs
r14162 r14167 53 53 Solution partialSolution, 54 54 ref IList<int> remainingIDs, IList<PackingItem> items) { 55 var bp = new BinPacking2D(partialSolution.Bin Measures);55 var bp = new BinPacking2D(partialSolution.BinShape); 56 56 bp.ExtremePointBasedPacking(ref remainingIDs, items, stackingConstraints: false); 57 57 return bp; -
trunk/sources/HeuristicLab.Problems.BinPacking/3.3/2D/IntegerVectorEncoding/IntegerVectorDecoderBase.cs
r14162 r14167 47 47 foreach (var sequence in sequenceMatrix) { 48 48 remainingIDs = remainingIDs.Concat(sequence).ToList(); 49 result.Bin Packings.Add(CreatePacking(result, ref remainingIDs, items));49 result.Bins.Add(CreatePacking(result, ref remainingIDs, items)); 50 50 } 51 51 result.UpdateBinPackings(); … … 54 54 var temp = new List<int>(remainingIDs); 55 55 foreach (int id in temp) { 56 foreach (BinPacking2D bp in result.Bin Packings) {56 foreach (BinPacking2D bp in result.Bins) { 57 57 var position = FindPositionForItem(bp, items[id]); 58 58 if (position != null) { … … 66 66 //Put still remaining items in new bins 67 67 while (remainingIDs.Count > 0) { 68 result.Bin Packings.Add(CreatePacking(result, ref remainingIDs, items));68 result.Bins.Add(CreatePacking(result, ref remainingIDs, items)); 69 69 } 70 70 result.UpdateBinPackings();
Note: See TracChangeset
for help on using the changeset viewer.