IBM ILOG Dispatcher User's Manual > Transportation Industry Solutions > Pickup and Delivery by Multiple Vehicles from Multiple Depots > Model > Define the RoutingModel::parse function

This member function allows you to specify the names of the input files using command line syntax. If you do not specify input files, the defaults in the RoutingModel constructor will be used. This member function is called from the main function.

Step 7   -  

Parse the input files

Add the following code after the comment //Parse the input files

  void RoutingModel::parse(int argc, char** argv) {
  if ( argc >= 4 ) {
    _depotPath = argv[1];
    _visitPath = argv[2];
    _nodePath  = argv[3];
  }
}