Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/21/16 12:06:43 (8 years ago)
Author:
gkronber
Message:

#1966: refactoring 2d problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/PermutationEncoding/ExtremePointPermutationDecoder.cs

    r14148 r14149  
    2929  [Item("Extreme-point Permutation Decoder (2d)", "Decodes the permutation and creates a packing solution candidate")]
    3030  [StorableClass]
    31   public class ExtremePointPermutationDecoder : Item, IPermutationDecoder {
     31  public class ExtremePointPermutationDecoder : Item, IDecoder<Permutation> {
    3232
    3333    [StorableConstructor]
     
    4242
    4343    public Solution Decode(Permutation permutation, PackingShape binShape, IList<PackingItem> items) {
    44       Solution result = new Solution(binShape, true, false);
     44      Solution result = new Solution(binShape, useExtremePoints: true, stackingConstraints: false);
    4545      IList<int> remainingIDs = new List<int>(permutation);
    4646      while (remainingIDs.Count > 0) {
Note: See TracChangeset for help on using the changeset viewer.