IBM ILOG Dispatcher User's Manual > Transportation Industry Solutions > Pickup and Delivery by Multiple Vehicles from Multiple Depots > Solve > Define the RoutingSolver::improveDepots function |
Define the RoutingSolver::improveDepots function |
INDEX
![]() |
If a first solution is found, the solution is improved using local search. You iterate over all depots, using Depot::fillModel
to populate each model. You then update the cost of the global solution according to the model of this depot. You use Depot::improve
to attempt to reduce the cost of the routing for this depot. Finally, the solution is synchronized with the global model.
Step 16 - | Improve the depots |
Add the following code after the comment //Improve the depots
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |