Changeset 12505 for branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/PickupAndDelivery
- Timestamp:
- 06/25/15 11:26:25 (9 years ago)
- Location:
- branches/HeuristicLab.DatasetRefactor/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DatasetRefactor/sources
- Property svn:mergeinfo changed
/trunk/sources merged: 12442-12443,12445,12455-12458,12461,12463-12465,12470-12476,12478-12482,12485,12488,12490-12494,12496-12497,12504 -
Property
svn:global-ignores
set to
*.nuget
packages
- Property svn:mergeinfo changed
-
branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting merged: 12488,12504
- Property svn:mergeinfo changed
-
branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/ConstraintRelaxation/PickupAndDelivery/PickupViolationsRelaxationVRPAnalyzer.cs
r12031 r12505 136 136 double max = pdp.PickupViolationPenalty.Value * (1 + phi); 137 137 138 pdp. PickupViolationPenalty = new DoubleValue(min + (max - min) * factor);139 if (pdp. PickupViolationPenalty.Value < minPenalty)140 pdp. PickupViolationPenalty.Value = minPenalty;141 if (pdp. PickupViolationPenalty.Value > maxPenalty)142 pdp. PickupViolationPenalty.Value = maxPenalty;138 pdp.CurrentPickupViolationPenalty = new DoubleValue(min + (max - min) * factor); 139 if (pdp.CurrentPickupViolationPenalty.Value < minPenalty) 140 pdp.CurrentPickupViolationPenalty.Value = minPenalty; 141 if (pdp.CurrentPickupViolationPenalty.Value > maxPenalty) 142 pdp.CurrentPickupViolationPenalty.Value = maxPenalty; 143 143 144 144 for (int j = 0; j < qualities.Length; j++) { 145 qualities[j].Value += pickupViolations[j].Value * pdp. PickupViolationPenalty.Value;145 qualities[j].Value += pickupViolations[j].Value * pdp.CurrentPickupViolationPenalty.Value; 146 146 } 147 147 148 148 if (!results.ContainsKey("Current Pickup Violation Penalty")) { 149 results.Add(new Result("Current Pickup Violation Penalty", new DoubleValue(pdp. PickupViolationPenalty.Value)));149 results.Add(new Result("Current Pickup Violation Penalty", new DoubleValue(pdp.CurrentPickupViolationPenalty.Value))); 150 150 } else { 151 (results["Current Pickup Violation Penalty"].Value as DoubleValue).Value = pdp. PickupViolationPenalty.Value;151 (results["Current Pickup Violation Penalty"].Value as DoubleValue).Value = pdp.CurrentPickupViolationPenalty.Value; 152 152 } 153 153
Note: See TracChangeset
for help on using the changeset viewer.