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

Detailed Description

Struct used to sort and store vehicles by their type. Two vehicles have the same "vehicle type" iff they have the same cost class and start/end nodes.

Definition at line 374 of file routing.h.

#include <routing.h>

Classes

struct  VehicleClassEntry

Public Member Functions

int NumTypes () const
int Type (int vehicle) const

Public Attributes

std::vector< int > type_index_of_vehicle
std::vector< std::set< VehicleClassEntry > > sorted_vehicle_classes_per_type
std::vector< std::deque< int > > vehicles_per_vehicle_class

Member Function Documentation

◆ NumTypes()

int operations_research::RoutingModel::VehicleTypeContainer::NumTypes ( ) const
inline

Definition at line 385 of file routing.h.

◆ Type()

int operations_research::RoutingModel::VehicleTypeContainer::Type ( int vehicle) const
inline

Definition at line 387 of file routing.h.

Member Data Documentation

◆ sorted_vehicle_classes_per_type

std::vector<std::set<VehicleClassEntry> > operations_research::RoutingModel::VehicleTypeContainer::sorted_vehicle_classes_per_type

Definition at line 394 of file routing.h.

◆ type_index_of_vehicle

std::vector<int> operations_research::RoutingModel::VehicleTypeContainer::type_index_of_vehicle

Definition at line 392 of file routing.h.

◆ vehicles_per_vehicle_class

std::vector<std::deque<int> > operations_research::RoutingModel::VehicleTypeContainer::vehicles_per_vehicle_class

Definition at line 395 of file routing.h.


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