Skip to main content

PCMSSetResequence

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

Last updated July 8, 2025.