Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/13/17 09:47:49 (7 years ago)
Author:
rhanghof
Message:

#2817:

  • Changed the calculation algorithm for creating extreme points by using line based projection
  • Changed the calculation of the residual spaces for line based projection
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/2D/BinPacking2D.cs

    r15473 r15520  
    3131  [StorableClass]
    3232  public class BinPacking2D : BinPacking.BinPacking<PackingPosition, PackingShape, PackingItem> {
     33    [Storable]
     34    public SortedSet<PackingPosition> ExtremePoints { get; protected set; }
    3335
    3436    public BinPacking2D(PackingShape binShape)
    3537      : base(binShape) {
     38      ExtremePoints = new SortedSet<PackingPosition>();
    3639      OccupationLayers = new Dictionary<int, List<int>>();
    3740      ExtremePoints.Add(binShape.Origin);
     
    4649        OccupationLayers.Add(kvp.Key, new List<int>(kvp.Value));
    4750      }
     51
     52      this.ExtremePoints = new SortedSet<PackingPosition>(original.ExtremePoints.Select(p => cloner.Clone(p)));
    4853    }
    4954    public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset for help on using the changeset viewer.