IBM ILOG Dispatcher User's Manual > The Basics > Adding Visit Disjunctions > Model > Define the function removeVisit

You use the member function IloModel::remove(IloVisit) to remove a visit from the model.

Step 8   -  

Remove the visit from the model

Add the following code after the comment //Remove the visit from the model

void RoutingModel::removeVisit (IloVisit visit) {
  _mdl.remove(visit);
}