Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::vrp::OrderPair Struct Reference

Defines a pickup-delivery pair of order IDs used to enforce sequential visitation constraints. More...

Public Member Functions

bool operator== (const OrderPair &other) const
 Equality comparison operator.

Public Attributes

LargeInteger pickupOrderId
 The ID of the pickup order (the order to be visited first).
LargeInteger deliveryOrderId
 The ID of the delivery order (the order to be visited after the pickup).

Detailed Description

Defines a pickup-delivery pair of order IDs used to enforce sequential visitation constraints.

Used in conjunction with EOrdersSequenceOption::OSO_InPairs to enforce that the optimizer plans routes where each pickup order is visited before its corresponding delivery order. The pair is identified by two order IDs: one for the pickup and one for the delivery.

See also
EOrdersSequenceOption, OrdersSequenceMap, ConfigurationParameters::setOrderSequenceOptions()

Member Function Documentation

◆ operator==()

bool gem::vrp::OrderPair::operator== ( const OrderPair & other) const
inline

Equality comparison operator.

Checks if two OrderPair objects are equal.

Parameters
otherThe OrderPair to compare against.
Returns
True if both pickupOrderId and deliveryOrderId are equal, false otherwise.