- Timestamp:
- 07/21/16 21:07:27 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.BinPacking/3.3/3D/Evaluators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.BinPacking/3.3/3D/Evaluators/BinUtilizationEvaluator.cs
r14162 r14167 54 54 55 55 for (int i = 0; i < nrOfBins; i++) { 56 totalUsableSpace += solution.Bin Packings[i].BinShape.Volume;57 totalUsedSpace += solution.Bin Packings[i].Items.Sum(kvp => kvp.Value.Volume);56 totalUsableSpace += solution.Bins[i].BinShape.Volume; 57 totalUsedSpace += solution.Bins[i].Items.Sum(kvp => kvp.Value.Volume); 58 58 } 59 59 -
trunk/sources/HeuristicLab.Problems.BinPacking/3.3/3D/Evaluators/PackingRatioEvaluator.cs
r14162 r14167 61 61 const double k = 2; 62 62 for (int i = 0; i < nrOfBins; i++) { 63 double f = solution.Bin Packings[i].Items.Sum(kvp => kvp.Value.Volume);64 double c = solution.Bin Packings[i].BinShape.Volume;63 double f = solution.Bins[i].Items.Sum(kvp => kvp.Value.Volume); 64 double c = solution.Bins[i].BinShape.Volume; 65 65 result += Math.Pow(f / c, k); 66 66 }
Note: See TracChangeset
for help on using the changeset viewer.