OR-Tools  9.6
RoutingModel::VehicleClass

Detailed Description

Definition at line 363 of file routing.h.

Static Public Member Functions

static bool LessThan (const VehicleClass &a, const VehicleClass &b)
 Comparator for STL containers and algorithms. More...
 

Public Attributes

CostClassIndex cost_class_index
 The cost class of the vehicle. More...
 
int64_t fixed_cost
 Contrarily to CostClass, here we need strict equivalence. More...
 
bool used_when_empty
 Whether or not the vehicle is used when empty. More...
 
int start_equivalence_class
 Vehicle start and end equivalence classes. More...
 
int end_equivalence_class
 
absl::StrongVector< DimensionIndex, int64_t > dimension_start_cumuls_min
 Bounds of cumul variables at start and end vehicle nodes. More...
 
absl::StrongVector< DimensionIndex, int64_t > dimension_start_cumuls_max
 
absl::StrongVector< DimensionIndex, int64_t > dimension_end_cumuls_min
 
absl::StrongVector< DimensionIndex, int64_t > dimension_end_cumuls_max
 
absl::StrongVector< DimensionIndex, int64_t > dimension_capacities
 
absl::StrongVector< DimensionIndex, int64_t > dimension_evaluator_classes
 dimension_evaluators[d]->Run(from, to) is the transit value of arc from->to for a dimension d. More...
 
uint64_t unvisitable_nodes_fprint
 Fingerprint of unvisitable non-start/end nodes. More...
 
std::vector< int > required_resource_group_indices
 Sorted set of resource groups for which the vehicle requires a resource. More...
 

Member Function Documentation

◆ LessThan()

bool LessThan ( const VehicleClass a,
const VehicleClass b 
)
static

Comparator for STL containers and algorithms.

Definition at line 1917 of file routing.cc.

Member Data Documentation

◆ cost_class_index

CostClassIndex cost_class_index

The cost class of the vehicle.

Definition at line 365 of file routing.h.

◆ dimension_capacities

absl::StrongVector<DimensionIndex, int64_t> dimension_capacities

Definition at line 384 of file routing.h.

◆ dimension_end_cumuls_max

absl::StrongVector<DimensionIndex, int64_t> dimension_end_cumuls_max

Definition at line 383 of file routing.h.

◆ dimension_end_cumuls_min

absl::StrongVector<DimensionIndex, int64_t> dimension_end_cumuls_min

Definition at line 382 of file routing.h.

◆ dimension_evaluator_classes

absl::StrongVector<DimensionIndex, int64_t> dimension_evaluator_classes

dimension_evaluators[d]->Run(from, to) is the transit value of arc from->to for a dimension d.

Definition at line 387 of file routing.h.

◆ dimension_start_cumuls_max

absl::StrongVector<DimensionIndex, int64_t> dimension_start_cumuls_max

Definition at line 381 of file routing.h.

◆ dimension_start_cumuls_min

absl::StrongVector<DimensionIndex, int64_t> dimension_start_cumuls_min

Bounds of cumul variables at start and end vehicle nodes.

dimension_{start,end}_cumuls_{min,max}[d] is the bound for dimension d.

Definition at line 380 of file routing.h.

◆ end_equivalence_class

int end_equivalence_class

Definition at line 377 of file routing.h.

◆ fixed_cost

int64_t fixed_cost

Contrarily to CostClass, here we need strict equivalence.

Definition at line 367 of file routing.h.

◆ required_resource_group_indices

std::vector<int> required_resource_group_indices

Sorted set of resource groups for which the vehicle requires a resource.

Definition at line 391 of file routing.h.

◆ start_equivalence_class

int start_equivalence_class

Vehicle start and end equivalence classes.

Currently if two vehicles have different start/end nodes which are "physically" located at the same place, these two vehicles will be considered as non-equivalent unless the two indices are in the same class.

Definition at line 376 of file routing.h.

◆ unvisitable_nodes_fprint

uint64_t unvisitable_nodes_fprint

Fingerprint of unvisitable non-start/end nodes.

Definition at line 389 of file routing.h.

◆ used_when_empty

bool used_when_empty

Whether or not the vehicle is used when empty.

Definition at line 369 of file routing.h.


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