Changeset 8777 for branches/DynamicVehicleRouting/HeuristicLab.PDPSimulation/3.3/Optimizers/LocalUpdate/PriorityDispatching.cs
- Timestamp:
- 10/10/12 12:02:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DynamicVehicleRouting/HeuristicLab.PDPSimulation/3.3/Optimizers/LocalUpdate/PriorityDispatching.cs
r8760 r8777 76 76 waitingOrders.Remove(order); 77 77 78 Debug.Assert(!GetOrders().Where(o => o.AssignedVehicle == bestVehicle.Id && o.OrderState == OrderState.Waiting).Any(), "An order has already been assigned to the vehicle"); 78 foreach (var assignedOrder in GetOrders().Where(o => o.AssignedVehicle == bestVehicle.Id && o.OrderState == OrderState.Waiting)) 79 assignedOrder.AssignedVehicle = Guid.Empty; 79 80 80 81 order.AssignedVehicle = bestVehicle.Id; … … 85 86 86 87 private void GetHighestPriorityOrder(DynPDPProblemInstance instance, Vehicle vehicle, IEnumerable<Order> orders, out Order order, out double priority) { 87 var weights = WeightsParameter. ActualValue;88 var weights = WeightsParameter.Value; 88 89 Order best = null; 89 90 double bestPriority = double.MinValue;
Note: See TracChangeset
for help on using the changeset viewer.