IBM ILOG Dispatcher User's Manual > Transportation Industry Solutions > Pickup and Delivery by Multiple Vehicles from Multiple Depots > Model > Define the Depot::improve function |
Define the Depot::improve function |
INDEX
![]() |
You define a method improve
that is used for improving the solution rs
passed as an argument. A solver solver
and a goal g
to be executed at each move are also passed as parameters. The number of moves made is returned. First, the neighborhood and greedy metaheuristic are reset. Then, the improvement goal is created using IloSingleMove
. An improvement loop is then entered, which stops when no move can improve the cost of the current solution. Finally, the number of moves made is returned. The following code is provided for you:
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |