IBM ILOG Dispatcher User's Manual > The Basics > Minimizing the Number of Vehicles > Model > Define the loadGraphInformation function |
Define the loadGraphInformation function |
INDEX
![]() |
First, you build the road network graph using the function loadGraphInformation
. This function takes the arc file and turn file as parameters. The member function IloDispatcherGraph::createArcsFromFile
loads the network topology from a csv file and creates all necessary arcs and nodes. The member function IloDispatcheGraph::loadArcDimensionDataFromFile
loads the arc cost information relating to the dimension _time
from the arc file. The member function IloDispatcherGraph::loadTurnDimensionDataFromFile
loads turn penalty information from the turn file. By default, all turns are allowed with no penalty. The loadGraphInformation
function calls the lastMinuteGraphChanges
function to allow for direct manipulation of the road network graph.
Step 3 - | Load the graph information |
Add the following code after the comment //Load the graph information
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |