Changeset 14151 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Evaluators
- Timestamp:
- 07/21/16 13:03:42 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Evaluators/PackingRatioEvaluator.cs
r14148 r14151 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 26 using HeuristicLab.Common; 27 using HeuristicLab.Data;28 using HeuristicLab.Encodings.PackingEncoding;29 using HeuristicLab.Problems.BinPacking;30 using System.Collections.Generic;31 27 32 28 namespace HeuristicLab.Problems.BinPacking2D { … … 64 60 const double k = 2; 65 61 for (int i = 0; i < nrOfBins; i++) { 66 varf = solution.BinPackings[i].ItemMeasures.Sum(kvp => kvp.Value.Volume);67 varc = solution.BinPackings[i].BinMeasures.Volume;62 double f = solution.BinPackings[i].ItemMeasures.Sum(kvp => kvp.Value.Volume); 63 double c = solution.BinPackings[i].BinMeasures.Volume; 68 64 result += Math.Pow(f / c, k); 69 65 }
Note: See TracChangeset
for help on using the changeset viewer.