Exemple #1
0
 public PackingItem(int width, int height, int depth, PackingShape targetBin, double weight, int material)
   : this() {
   this.Width = width;
   this.Height = height;
   this.Depth = depth;
   this.Weight = weight;
   this.Material = material;
   this.TargetBin = (PackingShape)targetBin.Clone();
 }
 protected override Solution CreateSolution(PackingShape binShape) {
   return new Solution(binShape, useExtremePoints: true, stackingConstraints: false);
 }
Exemple #3
0
 public PackingItem(int width, int height, int depth, PackingShape targetBin)
   : this() {
   this.Width = width;
   this.Height = height;
   this.Depth = depth;
   this.TargetBin = (PackingShape)targetBin.Clone();
 }
 public override Solution Decode(IntegerVector intVec, PackingShape binShape, IList<PackingItem> items, bool useStackingConstraints) {
   // TODO
   if (useStackingConstraints) throw new NotSupportedException("Stacking constraints are not supported by the Bottom-Left IntegerVector Decoder");
   return base.Decode(intVec, binShape, items, useStackingConstraints: false);
 }