![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
#include <pdtsp_parser.h>
Public Member Functions | |
PdTspParser () | |
~PdTspParser ()=default | |
bool | LoadFile (absl::string_view file_name) |
Loads and parse a PDTSP from a given file. | |
int | depot () const |
Returns the index of the depot. | |
int | Size () const |
Returns the number of nodes in the PDTSP. | |
bool | IsPickup (int index) const |
Returns true if the index corresponding to a node is a pickup. | |
int | DeliveryFromPickup (int index) const |
Returns the delivery corresponding to a pickup. | |
std::function< int64_t(int, int)> | Distances () const |
Returns a function returning distances between nodes. | |
Definition at line 30 of file pdtsp_parser.h.
operations_research::routing::PdTspParser::PdTspParser | ( | ) |
Definition at line 44 of file pdtsp_parser.cc.
|
default |
|
inline |
Returns the delivery corresponding to a pickup.
Definition at line 43 of file pdtsp_parser.h.
|
inline |
Returns the index of the depot.
Definition at line 37 of file pdtsp_parser.h.
std::function< int64_t(int, int)> operations_research::routing::PdTspParser::Distances | ( | ) | const |
Returns a function returning distances between nodes.
Definition at line 54 of file pdtsp_parser.cc.
|
inline |
Returns true if the index corresponding to a node is a pickup.
Definition at line 41 of file pdtsp_parser.h.
bool operations_research::routing::PdTspParser::LoadFile | ( | absl::string_view | file_name | ) |
Loads and parse a PDTSP from a given file.
Definition at line 46 of file pdtsp_parser.cc.
|
inline |
Returns the number of nodes in the PDTSP.
Definition at line 39 of file pdtsp_parser.h.