- Timestamp:
- 07/13/17 15:25:11 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.BinPacking
- Files:
-
- 3 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.BinPacking
-
Property
svn:mergeinfo
set to
/branches/BinPackingExtension/HeuristicLab.Problems.BinPacking merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/sources/HeuristicLab.Problems.BinPacking/3.3/3D/PermutationEncoding/BottomLeftPermutationDecoder.cs
r14167 r15230 46 46 while (remainingIDs.Count > 0) { 47 47 var bp = new BinPacking3D(binShape); 48 bp.SlidingBasedPacking(ref remainingIDs, items );48 bp.SlidingBasedPacking(ref remainingIDs, items, useStackingConstraints); 49 49 result.Bins.Add(bp); 50 50 } -
trunk/sources/HeuristicLab.Problems.BinPacking/3.3/3D/PermutationEncoding/ExtremePointPermutationDecoder.cs
r14167 r15230 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 25 26 using System.Collections.Generic; 26 27 using HeuristicLab.Encodings.PermutationEncoding; 28 using System.Linq; 29 27 30 28 31 namespace HeuristicLab.Problems.BinPacking3D { 29 32 [Item("Extreme-point Permutation Decoder (3d)", "Decodes the permutation and creates a packing solution candidate")] 30 33 [StorableClass] 31 public class ExtremePointPermutationDecoder : Item, IDecoder<Permutation>{34 public class ExtremePointPermutationDecoder : ExtremePointPermutationDecoderBase { 32 35 33 36 [StorableConstructor] … … 41 44 } 42 45 43 public Solution Decode(Permutation permutation, PackingShape binShape, IList<PackingItem> items, bool useStackingConstraints) { 46 public override Solution Decode(Permutation permutation, PackingShape binShape, IList<PackingItem> items, bool useStackingConstraints) { 47 return Apply(permutation, binShape, items, useStackingConstraints); 48 } 49 50 public static Solution Apply(Permutation permutation, PackingShape binShape, IList<PackingItem> items, bool useStackingConstraints) { 44 51 Solution result = new Solution(binShape, useExtremePoints: true, stackingConstraints: useStackingConstraints); 45 52 IList<int> remainingIDs = new List<int>(permutation);
Note: See TracChangeset
for help on using the changeset viewer.