Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/Solution.cs @ 14151

Last change on this file since 14151 was 14151, checked in by gkronber, 8 years ago

#1966: added abstract problem and move evaluator classes and implemented 2d bin packing problem based on integer vector encoding

File size: 1.1 KB
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
4using HeuristicLab.Problems.BinPacking;
5
6namespace HeuristicLab.Problems.BinPacking3D {
7  [Item("Bin Packing Solution (3d)", "Represents a solution for a 3D bin packing problem.")]
8  [StorableClass]
9  public class Solution : PackingPlan<PackingPosition, PackingShape, PackingItem> {
10    public Solution(PackingShape binMeasures) : this(binMeasures, false, false) { }
11    public Solution(PackingShape binMeasures, bool useExtremePoints, bool stackingConstraints) : base(binMeasures, useExtremePoints, stackingConstraints) { }
12    [StorableConstructor]
13    protected Solution(bool deserializing) : base(deserializing) { }
14    protected Solution(Solution original, Cloner cloner)
15      : base(original, cloner) {
16    }
17    public override IDeepCloneable Clone(Cloner cloner) {
18      return new Solution(this, cloner);
19    }
20    public override BinPacking<PackingPosition, PackingShape, PackingItem> NewBinPacking() {
21      return new BinPacking3D(BinMeasures);
22    }
23  }
24}
Note: See TracBrowser for help on using the repository browser.