IBM ILOG Dispatcher User's Manual > The Basics > Multiple Tours per Vehicle > Solve > Declare the RoutingSolver class |
Declare the RoutingSolver class |
INDEX
![]() |
The code for the declaration of the class RoutingSolver
is provided for you:
There are several important differences between the RoutingSolver
class used in a standard VRP and the RoutingSolver
class used in this problem. There is an additional data member, _orderedVisitArray
, an instance of IloVisitArray
that will be used in the submodel. In the submodel, the visits in the _unorderedVisitArray
created in the RoutingModel
class will be ordered and added to the _orderedVisitArray
created in the RoutingSolver
class.
You do not use a single function to find the first solution, as you have in the previous lessons in this part. Instead, the first solution is generated using three functions: insertAllReturnVisits
, orderVisits
, and insertCustomerVisits
. These functions are explained in the following sections.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |