![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
#include <nearp_parser.h>
Public Member Functions | |
NearpParser () | |
NearpParser (const NearpParser &)=delete | |
const NearpParser & | operator= (const NearpParser &)=delete |
bool | LoadFile (absl::string_view file_name) |
Loads instance from a file into this parser object. | |
const std::string & | name () const |
Returns the name of the instance being solved. | |
const std::string & | comment () const |
Returns the comment of the instance being solved, typically an upper bound. | |
int64_t | depot () const |
Returns the index of the depot. | |
int | NumberOfVehicles () const |
Returns the maximum number of vehicles to use. | |
int64_t | capacity () const |
Returns the capacity of the vehicles. | |
int | NumberOfNodes () const |
Returns the number of nodes in the current routing problem. | |
int | NumberOfArcs () const |
int | NumberOfEdges () const |
int | NumberOfArcsWithServicing () const |
int | NumberOfEdgesWithServicing () const |
int | NumberOfNodesWithServicing () const |
int | NumberOfArcsWithoutServicing () const |
int | NumberOfEdgesWithoutServicing () const |
int64_t | NumberOfNodesWithoutServicing () const |
const gtl::linked_hash_map< Arc, int64_t > & | arc_servicing_demands () const |
Returns the servicing demands of the arcs in the current routing problem. | |
const gtl::linked_hash_map< Edge, int64_t > & | edge_servicing_demands () const |
Returns the servicing demands of the edges in the current routing problem. | |
const gtl::linked_hash_map< int64_t, int64_t > & | node_servicing_demands () const |
Returns the servicing demands of the nodes in the current routing problem. | |
const gtl::linked_hash_map< Arc, int64_t > & | arc_servicing_costs () const |
Returns the servicing costs of the arcs in the current routing problem. | |
const gtl::linked_hash_map< Edge, int64_t > & | edge_servicing_costs () const |
Returns the servicing costs of the edges in the current routing problem. | |
const gtl::linked_hash_map< int64_t, int64_t > & | node_servicing_costs () const |
Returns the servicing costs of the nodes in the current routing problem. | |
const gtl::linked_hash_map< Arc, int64_t > & | arc_traversing_costs () const |
Returns the traversing costs of the arcs in the current routing problem. | |
const gtl::linked_hash_map< Edge, int64_t > & | edge_traversing_costs () const |
Returns the traversing costs of the edges in the current routing problem. | |
std::string | GetArcName (Arc arc) const |
std::string | GetArcName (int64_t tail, int64_t head) const |
std::string | GetEdgeName (Edge edge) const |
std::string | GetEdgeName (int64_t tail, int64_t head) const |
std::string | GetNodeName (int64_t node) const |
Definition at line 89 of file nearp_parser.h.
operations_research::routing::NearpParser::NearpParser | ( | ) |
Definition at line 31 of file nearp_parser.cc.
|
delete |
|
inline |
Returns the servicing costs of the arcs in the current routing problem.
Definition at line 162 of file nearp_parser.h.
|
inline |
Returns the servicing demands of the arcs in the current routing problem.
Definition at line 149 of file nearp_parser.h.
|
inline |
Returns the traversing costs of the arcs in the current routing problem.
Definition at line 175 of file nearp_parser.h.
|
inline |
Returns the capacity of the vehicles.
Definition at line 111 of file nearp_parser.h.
|
inline |
Returns the comment of the instance being solved, typically an upper bound.
Definition at line 104 of file nearp_parser.h.
|
inline |
Returns the index of the depot.
Definition at line 106 of file nearp_parser.h.
|
inline |
Returns the servicing costs of the edges in the current routing problem.
Definition at line 166 of file nearp_parser.h.
|
inline |
Returns the servicing demands of the edges in the current routing problem.
Definition at line 153 of file nearp_parser.h.
|
inline |
Returns the traversing costs of the edges in the current routing problem.
Definition at line 179 of file nearp_parser.h.
std::string operations_research::routing::NearpParser::GetArcName | ( | Arc | arc | ) | const |
Returns the name of graph objects. The implementations should fit all instances of NEARP files,
Definition at line 423 of file nearp_parser.cc.
|
inline |
Definition at line 186 of file nearp_parser.h.
std::string operations_research::routing::NearpParser::GetEdgeName | ( | Edge | edge | ) | const |
Definition at line 437 of file nearp_parser.cc.
|
inline |
Definition at line 190 of file nearp_parser.h.
|
inline |
Definition at line 193 of file nearp_parser.h.
bool operations_research::routing::NearpParser::LoadFile | ( | absl::string_view | file_name | ) |
Loads instance from a file into this parser object.
Definition at line 53 of file nearp_parser.cc.
|
inline |
Returns the name of the instance being solved.
Definition at line 102 of file nearp_parser.h.
|
inline |
Returns the servicing costs of the nodes in the current routing problem.
Definition at line 170 of file nearp_parser.h.
|
inline |
Returns the servicing demands of the nodes in the current routing problem.
Definition at line 157 of file nearp_parser.h.
|
inline |
Returns the number of arc in the current routing problem, with or without servicing required.
Definition at line 117 of file nearp_parser.h.
|
inline |
Returns the number of arcs in the current routing problem that do not require servicing.
Definition at line 134 of file nearp_parser.h.
|
inline |
Returns the number of arcs in the current routing problem that require servicing.
Definition at line 124 of file nearp_parser.h.
|
inline |
Returns the number of edges in the current routing problem, with or without servicing required.
Definition at line 120 of file nearp_parser.h.
|
inline |
Returns the number of edges in the current routing problem that do not require servicing.
Definition at line 139 of file nearp_parser.h.
|
inline |
Returns the number of edges in the current routing problem that require servicing.
Definition at line 127 of file nearp_parser.h.
|
inline |
Returns the number of nodes in the current routing problem.
Definition at line 114 of file nearp_parser.h.
|
inline |
Returns the number of nodes in the current routing problem that do not require servicing.
Definition at line 144 of file nearp_parser.h.
|
inline |
Returns the number of nodes in the current routing problem that require servicing.
Definition at line 130 of file nearp_parser.h.
|
inline |
Returns the maximum number of vehicles to use.
Definition at line 109 of file nearp_parser.h.
|
delete |