Syntax 

void PCMSSetResequence(Trip trip, bool changeDest)


Parameters 

Trip trip – Handle to a trip.

bool changeDest – Set to True to allow trip optimization to change the last destination stop; False to keep it the same.


Description

Sets whether optimization can change the last destination stop. If you use PCMSSetResequence to set a fixed destination (changeDest=False), the trip must have at least 4 stops to be optimized.


Return Values 

None


Sample Code

PCMSSetResequence(trip, false);
ret = PCMSOptimize(trip);
TestErr(ret > 0, "PCMSOptimize(trip)");

if (ret > 0)
{
  char szDurationTimeStr[BUFLEN];
FormatTimeMinutesToHoursMinutes(PCMSGetDuration(trip), szDurationTimeStr, BUFLEN);
Log_Pcmstest("  %.1f miles, %s (no change dest)", PCMSCalculate(trip) / 10.0f, szDurationTimeStr);
    DumpStops(trip);
  }


Supported Since: PC*MILER Connect 12

Category: Trip Options