IBM ILOG Dispatcher User's Manual > The Basics > Adding Visit Disjunctions > Suggested Answers > Exercise 2 |
Exercise 2 |
INDEX
![]() |
How do you add a visit without recomputing the routing plan from scratch?
You use IloRoutingSolution::add
to directly add the new visit to the solution. When it is added, its saved state is unperformed. To make the visit performed, you create a goal using IloInsertVisit
, which eliminates the need to recompute the routing plan from scratch. If the visit cannot be inserted in the solution, the goal fails. If the visit is inserted, the new solution is stored.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |