IBM ILOG Dispatcher User's Manual > The Basics > Minimizing the Number of Vehicles > Suggested Answers > Exercise 2

How is the visit penalty cost used in this problem?

Suggested Answer

You use the member function IloVisit::setPenaltyCost to set the cost of not performing a visit to 1000 cost units. This allows the visit to not be performed. During the solution improvement phase of problem solving, you will want to be able to allow some visits to be temporarily unperformed. The penalty cost allows you to do this.