Changeset 12515 for branches/HiveStatistics/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/TimeWindowed
- Timestamp:
- 06/25/15 18:21:19 (9 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Problems.VehicleRouting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting (added) merged: 12488,12504
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/TimeWindowed/TimeWindowRelaxationVRPAnalyzer.cs
r12012 r12515 136 136 double max = vrptw.TardinessPenalty.Value * (1 + phi); 137 137 138 vrptw. TardinessPenalty = new DoubleValue(min + (max - min) * factor);139 if (vrptw. TardinessPenalty.Value < minPenalty)140 vrptw. TardinessPenalty.Value = minPenalty;141 if (vrptw. TardinessPenalty.Value > maxPenalty)142 vrptw. TardinessPenalty.Value = maxPenalty;138 vrptw.CurrentTardinessPenalty = new DoubleValue(min + (max - min) * factor); 139 if (vrptw.CurrentTardinessPenalty.Value < minPenalty) 140 vrptw.CurrentTardinessPenalty.Value = minPenalty; 141 if (vrptw.CurrentTardinessPenalty.Value > maxPenalty) 142 vrptw.CurrentTardinessPenalty.Value = maxPenalty; 143 143 144 144 for (int j = 0; j < qualities.Length; j++) { 145 qualities[j].Value += tardiness[j].Value * vrptw. TardinessPenalty.Value;145 qualities[j].Value += tardiness[j].Value * vrptw.CurrentTardinessPenalty.Value; 146 146 } 147 147 148 148 if (!results.ContainsKey("Current Tardiness Penalty")) { 149 results.Add(new Result("Current Tardiness Penalty", new DoubleValue(vrptw. TardinessPenalty.Value)));149 results.Add(new Result("Current Tardiness Penalty", new DoubleValue(vrptw.CurrentTardinessPenalty.Value))); 150 150 } else { 151 (results["Current Tardiness Penalty"].Value as DoubleValue).Value = vrptw. TardinessPenalty.Value;151 (results["Current Tardiness Penalty"].Value as DoubleValue).Value = vrptw.CurrentTardinessPenalty.Value; 152 152 } 153 153
Note: See TracChangeset
for help on using the changeset viewer.