Changeset 14128 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Evaluators/BinUtilizationEvaluator.cs
- Timestamp:
- 07/20/16 14:02:36 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Evaluators/BinUtilizationEvaluator.cs
r14051 r14128 42 42 public BinUtilizationEvaluator() : base() { } 43 43 44 protected override DoubleValue Evaluate() {44 protected override double Evaluate() { 45 45 DoubleValue quality = new DoubleValue(0); 46 46 … … 67 67 } 68 68 69 public static DoubleValue CalculateBinUtilization(PackingPlan<D, B, I> plan) {69 public static double CalculateBinUtilization(PackingPlan<D, B, I> plan) { 70 70 int nrOfBins = plan.NrOfBins; 71 71 double result = 0; … … 97 97 98 98 result = totalUsedSpace / totalUsableSpace; 99 return new DoubleValue(result);99 return result; 100 100 } 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.