IBM ILOG Dispatcher User's Manual > The Basics > Minimizing the Number of Vehicles > Solve > Define the RoutingSolver constructor |
Define the RoutingSolver constructor |
INDEX
![]() |
The RoutingSolver
constructor is defined as in Chapter 3, Solving a Vehicle Routing Problem. It 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
. You use the predefined first solution generation heuristic IloSavingsGenerate
to create the first solution. 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 |