Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/20/16 14:02:36 (8 years ago)
Author:
gkronber
Message:

#1966: refactoring of bin packing implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Evaluators/BinUtilizationEvaluator.cs

    r14051 r14128  
    4242    public BinUtilizationEvaluator() : base() { }
    4343
    44     protected override DoubleValue Evaluate() {
     44    protected override double Evaluate() {
    4545      DoubleValue quality = new DoubleValue(0);
    4646
     
    6767    }
    6868
    69     public static DoubleValue CalculateBinUtilization(PackingPlan<D, B, I> plan) {
     69    public static double CalculateBinUtilization(PackingPlan<D, B, I> plan) {
    7070      int nrOfBins = plan.NrOfBins;
    7171      double result = 0;
     
    9797
    9898      result = totalUsedSpace / totalUsableSpace;
    99       return new DoubleValue(result);
     99      return result;
    100100    }
    101101  }
Note: See TracChangeset for help on using the changeset viewer.