Changeset 14128 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders/EP
- Timestamp:
- 07/20/16 14:02:36 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Decoders/EP/ExtremePointPackingSequenceDecoder3D.cs
r14049 r14128 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Common; 27 using HeuristicLab.Encodings.PackingEncoding.PackingSequence;28 27 using HeuristicLab.Problems.BinPacking; 29 28 using HeuristicLab.Encodings.PackingEncoding; 29 using HeuristicLab.Encodings.PermutationEncoding; 30 30 31 31 namespace HeuristicLab.Problems.BinPacking3D { … … 45 45 46 46 public override PackingPlan<PackingPosition, PackingShape, PackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, PackingShape binMeasures, ItemList<PackingItem> itemMeasures) { 47 var solution = encodedSolution as P ackingSequenceEncoding;48 if (solution == null) throw new InvalidOperationException("Encoding is not of type P ackingSequence");47 var solution = encodedSolution as Permutation; 48 if (solution == null) throw new InvalidOperationException("Encoding is not of type Permutation"); 49 49 Solution result = new Solution(binMeasures, true, StackingConstraintsParameter.Value.Value); 50 50 result.Pack(solution, itemMeasures);
Note: See TracChangeset
for help on using the changeset viewer.