C++ Reference
C++ Reference: Routing
routing_index_manager.h
RoutingNodeIndex NodeIndex
Definition: routing_index_manager.h:44
Manager for any NodeIndex <-> variable index conversion.
Definition: routing_index_manager.h:42
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
Definition: constraint_solveri.h:78
int num_indices() const
Definition: routing_index_manager.h:62
RoutingIndexManager(int num_nodes, int num_vehicles, NodeIndex depot)
Creates a NodeIndex to variable index mapping for a problem containing 'num_nodes',...
int64 NodeToIndex(NodeIndex node) const
Definition: routing_index_manager.h:65
~RoutingIndexManager()
Definition: routing_index_manager.h:58
int64 GetEndIndex(int vehicle) const
Definition: routing_index_manager.h:64
gtl::ITIVector< NodeIndex, int64 > GetNodeToIndexMap() const
Definition: routing_index_manager.h:80
static const int64 kUnassigned
Definition: routing_index_manager.h:45
RoutingIndexManager(int num_nodes, int num_vehicles, const std::vector< NodeIndex > &starts, const std::vector< NodeIndex > &ends)
std::vector< int64 > NodesToIndices(const std::vector< NodeIndex > &nodes) const
int num_unique_depots() const
Definition: routing_index_manager.h:78
std::vector< NodeIndex > GetIndexToNodeMap() const
Definition: routing_index_manager.h:79
int num_vehicles() const
Definition: routing_index_manager.h:61
RoutingIndexManager(int num_nodes, int num_vehicles, const std::vector< std::pair< NodeIndex, NodeIndex > > &starts_ends)
int64 GetStartIndex(int vehicle) const
Definition: routing_index_manager.h:63
int num_nodes() const
Definition: routing_index_manager.h:60
NodeIndex IndexToNode(int64 index) const
Definition: routing_index_manager.h:71