IBM ILOG Dispatcher User's Manual > Transportation Industry Solutions > Pickup and Delivery by Multiple Vehicles from Multiple Depots > Model > Define the RoutingModel::createDepots function |
Define the RoutingModel::createDepots function |
INDEX
![]() |
You use csv reader functionality to input depot data from csv files. For each of the depots, you get the number of trucks per depot (nbOfTrucks
), its coordinates (x
and y
), and its opening and closing times (openTime
and closeTime
). An array of pointers to class type Depot
are created. This array is then populated by a loop that creates the depots. For each depot, the function Depot::createVehicles
is called to create the vehicles associated with each depot and the model containing all dimensions _dimModel
is added to the depot model. Finally, each depot model is added to the model of the whole problem _mdl
.
Step 10 - | Create the depot |
Add the following code after the comment //Create the depot
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |