Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/20/17 16:15:38 (6 years ago)
Author:
rhanghof
Message:

#2817:

  • Unittests
  • Bugfixes on the line projection based extreme point creation method
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Packer/BinPacker.cs

    r15520 r15554  
    3333
    3434namespace HeuristicLab.Problems.BinPacking3D.Packer {
    35   public abstract class BinPacker : Item {
    36 
    37     /*
    38     [Storable]
    39     IPositionFinder PositionFinder
     35  internal abstract class BinPacker : Item, IBinPacker {
    4036   
    41     */
    42 
    4337    #region Constructors for HEAL
    4438
     
    4943    protected BinPacker(BinPacker original, Cloner cloner)
    5044      : base(original, cloner) {
    51       //this.PositionFinder = original.PositionFinder;
    5245    }
    5346
     
    9992
    10093      // The extremepoints are sortet by Y / Z / X
    101       return packingBin.ExtremePoints.Where(x => packingBin.IsPositionFeasible(newItem, x, useStackingConstraints)).FirstOrDefault();
     94      var newPosition = packingBin.ExtremePoints.Where(x => packingBin.IsPositionFeasible(newItem, x.Key, useStackingConstraints)).FirstOrDefault();
     95     
     96      return newPosition.Key;
    10297    }
    10398
Note: See TracChangeset for help on using the changeset viewer.