Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/20/16 14:02:36 (8 years ago)
Author:
gkronber
Message:

#1966: refactoring of bin packing implementation

Location:
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP/ExtremePointMultiComponentVectorDecoder2D.cs

    r14049 r14128  
    2424using HeuristicLab.Core;
    2525using HeuristicLab.Common;
    26 using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector;
    2726using HeuristicLab.Problems.BinPacking;
    2827using HeuristicLab.Encodings.PackingEncoding;
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP/ExtremePointPackingSequenceDecoder2D.cs

    r14049 r14128  
    2525using HeuristicLab.Core;
    2626using HeuristicLab.Common;
    27 using HeuristicLab.Encodings.PackingEncoding.PackingSequence;
    2827using HeuristicLab.Problems.BinPacking;
    2928using HeuristicLab.Encodings.PackingEncoding;
     29using HeuristicLab.Encodings.PermutationEncoding;
    3030
    3131namespace HeuristicLab.Problems.BinPacking2D {
     
    4545
    4646    public override PackingPlan<PackingPosition, PackingShape, PackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, PackingShape binMeasures, ItemList<PackingItem> itemMeasures) {
    47       var solution = encodedSolution as PackingSequenceEncoding;
    48       if (solution == null) throw new InvalidOperationException("Encoding is not of type PackingSequence");
     47      var solution = encodedSolution as Permutation;
     48      if (solution == null) throw new InvalidOperationException("Encoding is not of type Permutation");
    4949      Solution result = new Solution(binMeasures, true, false);
    5050      result.Pack(solution, itemMeasures);
Note: See TracChangeset for help on using the changeset viewer.