IBM ILOG Dispatcher User's Manual > The Basics > Minimizing the Number of Vehicles > Model > Define the lastMinuteGraphChanges function |
Define the lastMinuteGraphChanges function |
INDEX
![]() |
A road network graph may need to be modified directly at the last minute due to traffic, accidents, or construction work. IloDispatcherGraph
includes functionality to allow you to modify the network topology and costs by direct manipulation. The member function IloDispatcherGraph::forbidArcUse
sets the cost of the arc to infinity. The member function IloDispatcherGraph::setTurnPenalty
sets the penalty cost of turning from one arc to another along the dimension. In this example, the penalty for turning from arc 1323 to arc 1544 is 12 time units.
Step 4 - | Make last minute graph modifications |
Add the following code after the comment //Make last minute graph modifications
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |