Changeset 12495 for branches/GBT/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/Capacitated
- Timestamp:
- 06/23/15 12:50:05 (9 years ago)
- Location:
- branches/GBT
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GBT
- Property svn:mergeinfo changed
/trunk/sources merged: 12392-12393,12397-12401,12422,12424,12428-12435,12442-12443,12445,12455-12458,12461,12463-12465,12470-12476,12478-12482,12485,12488,12490-12494 -
Property
svn:global-ignores
set to
*.nuget
packages
- Property svn:mergeinfo changed
-
branches/GBT/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting (added) merged: 12488
- Property svn:mergeinfo changed
-
branches/GBT/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/Capacitated/CapacityRelaxationVRPAnalyzer.cs
r12012 r12495 136 136 double max = cvrp.OverloadPenalty.Value * (1 + phi); 137 137 138 cvrp. OverloadPenalty = new DoubleValue(min + (max - min) * factor);139 if (cvrp. OverloadPenalty.Value < minPenalty)140 cvrp. OverloadPenalty.Value = minPenalty;141 if (cvrp. OverloadPenalty.Value > maxPenalty)142 cvrp. OverloadPenalty.Value = maxPenalty;138 cvrp.CurrentOverloadPenalty = new DoubleValue(min + (max - min) * factor); 139 if (cvrp.CurrentOverloadPenalty.Value < minPenalty) 140 cvrp.CurrentOverloadPenalty.Value = minPenalty; 141 if (cvrp.CurrentOverloadPenalty.Value > maxPenalty) 142 cvrp.CurrentOverloadPenalty.Value = maxPenalty; 143 143 144 144 for (int j = 0; j < qualities.Length; j++) { 145 qualities[j].Value += overloads[j].Value * cvrp. OverloadPenalty.Value;145 qualities[j].Value += overloads[j].Value * cvrp.CurrentOverloadPenalty.Value; 146 146 } 147 147 148 148 if (!results.ContainsKey("Current Overload Penalty")) { 149 results.Add(new Result("Current Overload Penalty", new DoubleValue(cvrp. OverloadPenalty.Value)));149 results.Add(new Result("Current Overload Penalty", new DoubleValue(cvrp.CurrentOverloadPenalty.Value))); 150 150 } else { 151 (results["Current Overload Penalty"].Value as DoubleValue).Value = cvrp. OverloadPenalty.Value;151 (results["Current Overload Penalty"].Value as DoubleValue).Value = cvrp.CurrentOverloadPenalty.Value; 152 152 } 153 153
Note: See TracChangeset
for help on using the changeset viewer.