IBM ILOG Dispatcher User's Manual > Transportation Industry Solutions > Pickup and Delivery by Multiple Vehicles from Multiple Depots > Model > Define the Depot::createOneVehicle function |
Define the Depot::createOneVehicle function |
INDEX
![]() |
You add a function to create a vehicle associated to the depot. The vehicles have first and last visits at their associated depot. You add side constraints that the vehicles must leave the depot after it opens and return to the depot before it closes. You set the capacity of the vehicle. The cost of each vehicle is set to be directly proportional to the dimension length
.
Step 6 - | Create one vehicle associated to the depot |
Ad the following code after the comment //Create one vehicle associated to the depot
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |