IBM ILOG Dispatcher User's Manual > Transportation Industry Solutions > Pickup and Delivery by Multiple Vehicles from Multiple Depots > Model > Define the Depot constructor |
Define the Depot constructor |
INDEX
![]() |
A depot is built from an instance of IloEnv
and is given a name name
. The following code is provided for you:
In order to improve solutions for this depot, a neighborhood _nhood
and greedy metaheuristic _mh
are created. As the subproblem of improving the solution to a single depot is likely to be relatively small, five move operators are used in the neighborhood.
Step 3 - | Create the depot neighborhood |
Add the following code after the comment //Create the depot neighborhood
_nhood = IloTwoOpt(env) + IloOrOpt(env) + IloRelocate(env) + IloCross(env) + IloExchange(env) //+ IloRelocateTours(env) ; |
Step 4 - | Create the depot search heuristic |
Add the following code after the comment //Create the depot search heuristic
_mh = IloImprove(env); } |
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |