Changeset 7791 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDRearrange/PotvinPDRearrangeMoveTabuMaker.cs
- Timestamp:
- 05/10/12 15:31:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDRearrange/PotvinPDRearrangeMoveTabuMaker.cs
r6773 r7791 55 55 get { return (ILookupParameter<DoubleValue>)Parameters["Tardiness"]; } 56 56 } 57 public ILookupParameter<IntValue> PickupViolationsParameter { 58 get { return (ILookupParameter<IntValue>)Parameters["PickupViolations"]; } 59 } 57 60 58 61 [StorableConstructor] … … 68 71 Parameters.Add(new LookupParameter<DoubleValue>("Overload", "The overload of the individual")); 69 72 Parameters.Add(new LookupParameter<DoubleValue>("Tardiness", "The tardiness of the individual")); 73 Parameters.Add(new LookupParameter<IntValue>("PickupViolations", "The number of pickup violations.")); 70 74 } 71 75 … … 91 95 tardiness = TardinessParameter.ActualValue.Value; 92 96 93 return new PotvinPDRelocateMoveAttribute(baseQuality, move.Tour, move.City, distance, overload, tardiness); 97 int pickupViolations = 0; 98 if (PickupViolationsParameter.ActualValue != null) 99 pickupViolations = PickupViolationsParameter.ActualValue.Value; 100 101 return new PotvinPDRelocateMoveAttribute(baseQuality, move.Tour, move.City, distance, overload, tardiness, pickupViolations); 94 102 } 95 103 }
Note: See TracChangeset
for help on using the changeset viewer.