PC*MILER|Connect can optimize any sequence of stops to minimize the total time (when using Practical routing), the total distance (when using Shortest routing), total toll distance (when using Toll Discouraged routing), and distance of the National Network (when using State + National Network routing).
Optimizing a trip reorders the route and is only done once for a given sequence of stops. The following functions can be used for optimization:
- PCMSSetResequence sets whether optimization can change the last destination stop.
- PCMSOptimize runs routes between every stop in the trip’s stop list before resequencing the stops. After the optimization step, you must call PCMSCalculate to get the new distance for the optimized route.