C++ Reference
C++ Reference: Routing
routing_index_manager.h
Go to the documentation of this file.
Manager for any NodeIndex <-> variable index conversion.
Definition: routing_index_manager.h:48
static const int64 kUnassigned
Definition: routing_index_manager.h:51
~RoutingIndexManager()
Definition: routing_index_manager.h:64
int64 GetEndIndex(int vehicle) const
Definition: routing_index_manager.h:74
RoutingIndexManager(int num_nodes, int num_vehicles, const std::vector< std::pair< NodeIndex, NodeIndex > > &starts_ends)
int num_nodes() const
Definition: routing_index_manager.h:67
int64 NodeToIndex(NodeIndex node) const
Definition: routing_index_manager.h:79
RoutingIndexManager(int num_nodes, int num_vehicles, NodeIndex depot)
Creates a NodeIndex to variable index mapping for a problem containing 'num_nodes',...
absl::StrongVector< NodeIndex, int64 > GetNodeToIndexMap() const
Definition: routing_index_manager.h:101
std::vector< NodeIndex > IndicesToNodes(const std::vector< int64 > &indices) const
std::vector< NodeIndex > GetIndexToNodeMap() const
Definition: routing_index_manager.h:100
RoutingIndexManager(int num_nodes, int num_vehicles, const std::vector< NodeIndex > &starts, const std::vector< NodeIndex > &ends)
int num_vehicles() const
Definition: routing_index_manager.h:69
NodeIndex IndexToNode(int64 index) const
Definition: routing_index_manager.h:88
std::vector< int64 > NodesToIndices(const std::vector< NodeIndex > &nodes) const
int num_indices() const
Definition: routing_index_manager.h:71
RoutingNodeIndex NodeIndex
Definition: routing_index_manager.h:50
int64 GetStartIndex(int vehicle) const
Definition: routing_index_manager.h:73
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
Definition: constraint_solver.h:106