IBM ILOG Dispatcher User's Manual > Transportation Industry Solutions > Modeling Complex Costs > Review Exercises

For answers, see "Suggested Answers".

  1. What member function is used to associate a visit-dependent proportional cost with a vehicle?
  2. What Dispatcher class is used to associate IloNum values with vehicle visits?
  3. The following section of code is from the createVehicles function of cost1.cpp. If the code .getPrevVar() were removed, all the other code in cost1.cpp remained the same, and the depot were located at (0,0), what would be the resulting cost coefficient?
        IloVisitToNumFunction coefFunction(_env, LastVisitCostCoef);
        vehicle.setCost(distance,
                        coefFunction,
                        vehicle.getLastVisit().getPrevVar());