Changeset 14895 for branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.LocationRouting/3.3/LrpUtils.cs
- Timestamp:
- 04/27/17 17:42:27 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.LocationRouting/3.3/LrpUtils.cs
r14649 r14895 167 167 168 168 public static double Evaluate(FacilityLocationSolution flpSolution, VRPSolution[] vrpSolutions) { 169 return flpSolution.TotalOpeningCostsParameter.Value.Value + vrpSolutions.Sum(x => x.Quality.Value); 169 if (flpSolution.TotalOverbookedCapacityParameter.Value.Value > 0.0) 170 return flpSolution.FitnessValueParameter.Value.Value + vrpSolutions.Sum(x => x.Quality.Value); 171 else 172 return flpSolution.TotalOpeningCostsParameter.Value.Value + vrpSolutions.Sum(x => x.Quality.Value); 170 173 } 171 174 }
Note: See TracChangeset
for help on using the changeset viewer.