IBM ILOG Dispatcher User's Manual > The Basics > Multiple Tours per Vehicle > Solve > Define the RoutingSolver constructor |
Define the RoutingSolver constructor |
INDEX
![]() |
The RoutingSolver
constructor is defined as in Chapter 3, Solving a Vehicle Routing Problem, except that you do not create a goal for finding the first solution. The RoutingSolver
constructor takes an instance of RoutingModel
as a parameter. The environment, model, solver, dispatcher, and solution are initialized. The goal to instantiate cost is created using the function IloDichotomize
. The goal to restore the solution is created using IloRestoreSolution
. This constructor will be called from the main
function. This code is provided for you:
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |