Changeset 6851 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDExchange
- Timestamp:
- 09/29/11 15:51:56 (13 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDExchange
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDExchange/PotvinPDExchangeExhaustiveMoveGenerator.cs
r6773 r6851 62 62 if (k != i) { 63 63 int city1 = individual.Tours[i].Stops[j]; 64 if (pdp == null || pdp. Demand[city1]>= 0) {64 if (pdp == null || pdp.GetDemand(city1) >= 0) { 65 65 for (int l = 0; l < individual.Tours[k].Stops.Count; l++) { 66 66 int city2 = individual.Tours[k].Stops[l]; 67 if (pdp == null || pdp. Demand[city2]>= 0) {67 if (pdp == null || pdp.GetDemand(city2) >= 0) { 68 68 bool valid = pdp == null || 69 69 (pdp.PickupDeliveryLocation[city2] != pdp.PickupDeliveryLocation[city1] && -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDExchange/PotvinPDExchangeSingleMoveGenerator.cs
r6773 r6851 62 62 IPickupAndDeliveryProblemInstance pdp = problemInstance as IPickupAndDeliveryProblemInstance; 63 63 for (int i = 1; i <= individual.Cities; i++) { 64 if (pdp == null || pdp. Demand[i]>= 0)64 if (pdp == null || pdp.GetDemand(i) >= 0) 65 65 cities.Add(i); 66 66 } … … 84 84 foreach (int stop in newTour.Stops) { 85 85 if (pdp == null || 86 (pdp. Demand[stop]>= 0 &&86 (pdp.GetDemand(stop) >= 0 && 87 87 pdp.PickupDeliveryLocation[stop] != pdp.PickupDeliveryLocation[city] && 88 88 pdp.PickupDeliveryLocation[stop] != city &&
Note: See TracChangeset
for help on using the changeset viewer.