VRPvars
Previous  Top  Next

Function VRPvars(maxload1,maxload2,maxcost,maxextra: double): integer;

Use this function to enter parameters about the VRP to be solved.

Maxload1 and maxload2 can be used for defining maximum load(s) for all vehicles (same for all). Load can be weight, # of passengers or any other 2 measurements.

Maxcost and Maxextra can be used for defining a maximum length of the route as either time or distance, depending on how cost and extra has been defined.

At least one of these 4 parameters should be >0 or all customers will be assigned to a single route and then you have the normal TSP problem.

It returns 0 if no errors occured.

Possible error codes: -30 -57
Versions: Pro
ActiveX / VCL / CLX component: RWcalc