IBM ILOG Dispatcher User's Manual > Transportation Industry Solutions > Pickup and Delivery by Multiple Vehicles from Multiple Depots > Model > Define the RoutingModel::createModel function |
Define the RoutingModel::createModel function |
INDEX
![]() |
You define a member function to create the model _mdl
for the whole problem. It calls the functions that create the dimensions, nodes, depots, and visits. This function will be called from the main
function.
Step 8 - | Create the model |
Add the following code after the comment //Create the model
void RoutingModel::createModel() {
_mdl = IloModel(_env);
createDimensions();
createNodes(_nodePath);
createDepots(_depotPath);
createVisits(_visitPath);
}
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |