Changeset 14154 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Evaluators
- Timestamp:
- 07/21/16 15:08:21 (8 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Evaluators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Evaluators/BinUtilizationEvaluator.cs
r14148 r14154 53 53 54 54 for (int i = 0; i < nrOfBins; i++) { 55 totalUsableSpace += solution.BinPackings[i].Bin Measures.Volume;56 totalUsedSpace += solution.BinPackings[i].Item Measures.Sum(kvp => kvp.Value.Volume);55 totalUsableSpace += solution.BinPackings[i].BinShape.Volume; 56 totalUsedSpace += solution.BinPackings[i].Items.Sum(kvp => kvp.Value.Volume); 57 57 } 58 58 -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Evaluators/PackingRatioEvaluator.cs
r14151 r14154 60 60 const double k = 2; 61 61 for (int i = 0; i < nrOfBins; i++) { 62 double f = solution.BinPackings[i].Item Measures.Sum(kvp => kvp.Value.Volume);63 double c = solution.BinPackings[i].Bin Measures.Volume;62 double f = solution.BinPackings[i].Items.Sum(kvp => kvp.Value.Volume); 63 double c = solution.BinPackings[i].BinShape.Volume; 64 64 result += Math.Pow(f / c, k); 65 65 }
Note: See TracChangeset
for help on using the changeset viewer.