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:49
int64_t GetEndIndex(int vehicle) const
Definition: routing_index_manager.h:77
std::vector< NodeIndex > IndicesToNodes(const std::vector< int64_t > &indices) const
~RoutingIndexManager()
Definition: routing_index_manager.h:65
int64_t GetStartIndex(int vehicle) const
Definition: routing_index_manager.h:74
absl::StrongVector< NodeIndex, int64_t > GetNodeToIndexMap() const
Definition: routing_index_manager.h:105
static const int64_t kUnassigned
Definition: routing_index_manager.h:52
RoutingIndexManager(int num_nodes, int num_vehicles, const std::vector< std::pair< NodeIndex, NodeIndex > > &starts_ends)
std::vector< int64_t > NodesToIndices(const std::vector< NodeIndex > &nodes) const
int num_nodes() const
Definition: routing_index_manager.h:68
RoutingIndexManager(int num_nodes, int num_vehicles, NodeIndex depot)
Creates a NodeIndex to variable index mapping for a problem containing 'num_nodes',...
NodeIndex IndexToNode(int64_t index) const
Definition: routing_index_manager.h:92
std::vector< NodeIndex > GetIndexToNodeMap() const
Definition: routing_index_manager.h:104
RoutingIndexManager(int num_nodes, int num_vehicles, const std::vector< NodeIndex > &starts, const std::vector< NodeIndex > &ends)
int64_t NodeToIndex(NodeIndex node) const
Definition: routing_index_manager.h:82
int num_vehicles() const
Definition: routing_index_manager.h:70
int num_indices() const
Definition: routing_index_manager.h:72
RoutingNodeIndex NodeIndex
Definition: routing_index_manager.h:51
Collection of objects used to extend the Constraint Solver library.
Definition: constraint_solver.h:109