Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/13/18 16:45:01 (6 years ago)
Author:
rhanghof
Message:

#2817:

  • Added a graph to the BinPacking3D for calculating the weight distribution.
  • Added some materials.
File:
1 edited

Legend:

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

    r15731 r15770  
    6060    }
    6161
    62     #region Material
    63     public IFixedValueParameter<EnumValue<MaterialType>> MaterialBottomParameter {
    64       get { return (IFixedValueParameter<EnumValue<MaterialType>>)Parameters["MaterialBottom"]; }
    65     }
    66     public MaterialType MaterialBottom {
    67       get { return MaterialBottomParameter.Value.Value; }
    68       set { MaterialBottomParameter.Value.Value = value; }
    69     }
     62    #region Material   
    7063
    7164    public IFixedValueParameter<EnumValue<MaterialType>> MaterialTopParameter {
     
    8477      get { return SupportedWeightParameter.Value.Value; }
    8578      set { SupportedWeightParameter.Value.Value = value; }
     79    }
     80
     81    public double SupportedWeightPerSquareMeter {
     82      get {
     83        return SupportedWeight / (Width * Depth);
     84      }
    8685    }
    8786
     
    297296      return other.Layer <= this.Layer && SupportedWeight > 0;
    298297    }
     298       
     299    public bool SupportWeight(double weigth) {
     300      return SupportedWeight >= weigth;
     301    }
    299302    #endregion
    300303
     
    314317
    315318      Parameters.Add(new FixedValueParameter<EnumValue<MaterialType>>("MaterialTop"));
    316       Parameters.Add(new FixedValueParameter<EnumValue<MaterialType>>("MaterialBottom"));
    317319
    318320      Parameters.Add(new FixedValueParameter<DoubleValue>("SupportedWeight"));
Note: See TracChangeset for help on using the changeset viewer.