Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::TypeRegulationsChecker::TypePolicyOccurrence Struct Reference

Detailed Description

Definition at line 2889 of file routing.h.

#include <routing.h>

Public Attributes

int num_type_added_to_vehicle = 0
int num_type_removed_from_vehicle = 0
int position_of_last_type_on_vehicle_up_to_visit = -1

Member Data Documentation

◆ num_type_added_to_vehicle

int operations_research::TypeRegulationsChecker::TypePolicyOccurrence::num_type_added_to_vehicle = 0

Number of TYPE_ADDED_TO_VEHICLE and TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED node type policies seen on the route.

Definition at line 2893 of file routing.h.

◆ num_type_removed_from_vehicle

int operations_research::TypeRegulationsChecker::TypePolicyOccurrence::num_type_removed_from_vehicle = 0

Number of ADDED_TYPE_REMOVED_FROM_VEHICLE (effectively removing a type from the route) and TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED node type policies seen on the route. This number is always <= num_type_added_to_vehicle, as a type is only actually removed if it was on the route before.

Definition at line 2899 of file routing.h.

◆ position_of_last_type_on_vehicle_up_to_visit

int operations_research::TypeRegulationsChecker::TypePolicyOccurrence::position_of_last_type_on_vehicle_up_to_visit = -1

Position of the last node of policy TYPE_ON_VEHICLE_UP_TO_VISIT visited on the route. If positive, the type is considered on the vehicle from the start of the route until this position.

Definition at line 2904 of file routing.h.


The documentation for this struct was generated from the following file: