| IBM ILOG Dispatcher User's Manual > The Basics > Adding Visit Disjunctions > Model > Define the createAdditionalVisits function |
Define the createAdditionalVisits function |
INDEX
PREVIOUS
NEXT
|
To create a new visit in the model, you create an instance of IloNode corresponding to the customer location. You use the member function IloDispatcherGraph::associateByCoordsInFile to look up the coordinates of this IloNode in a csv file and automatically associate it to the graph node with matching coordinates. You then create an instance of IloVisit located at the customer node. This visit has a delay time of 10 units, a quantity of 12 units, and a time window. You use the member function IloModel::add(IloVisit) to add the visit from the model.
Step 7 - | Create an additional visit |
Add the following code after the comment //Create an additional visit
| © Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |