![]() |
OR-Tools
9.6
|
Definition at line 39 of file tsplib_parser.h.
Public Types | |
| enum | Types { TSP , ATSP , SOP , HCP , CVRP , TOUR , UNDEFINED_TYPE } |
Public Member Functions | |
| TspLibParser () | |
| bool | LoadFile (const std::string &file_name) |
| int | SizeFromFile (const std::string &file_name) const |
| EdgeWeights | GetEdgeWeights () const |
| int | depot () const |
| int | size () const |
| Types | type () const |
| const std::vector< Coordinates3< double > > & | coordinates () const |
| int64_t | capacity () const |
| int64_t | max_distance () const |
| const std::vector< int64_t > & | demands () const |
| const std::set< std::pair< int, int > > | fixed_edges () const |
| const std::vector< std::vector< int > > & | edges () const |
| const std::string & | name () const |
| const std::string & | comments () const |
| std::string | BuildTourFromRoutes (const std::vector< std::vector< int >> &routes) const |
| enum Types |
| Enumerator | |
|---|---|
| TSP | |
| ATSP | |
| SOP | |
| HCP | |
| CVRP | |
| TOUR | |
| UNDEFINED_TYPE | |
Definition at line 42 of file tsplib_parser.h.
| TspLibParser | ( | ) |
Definition at line 157 of file tsplib_parser.cc.
| std::string BuildTourFromRoutes | ( | const std::vector< std::vector< int >> & | routes | ) | const |
Definition at line 661 of file tsplib_parser.cc.
|
inline |
Definition at line 63 of file tsplib_parser.h.
|
inline |
Definition at line 79 of file tsplib_parser.h.
|
inline |
Definition at line 59 of file tsplib_parser.h.
|
inline |
Definition at line 67 of file tsplib_parser.h.
|
inline |
Definition at line 52 of file tsplib_parser.h.
|
inline |
Definition at line 75 of file tsplib_parser.h.
|
inline |
Definition at line 70 of file tsplib_parser.h.
|
inline |
Definition at line 50 of file tsplib_parser.h.
| bool LoadFile | ( | const std::string & | file_name | ) |
Definition at line 172 of file tsplib_parser.cc.
|
inline |
Definition at line 65 of file tsplib_parser.h.
|
inline |
Definition at line 77 of file tsplib_parser.h.
|
inline |
Definition at line 54 of file tsplib_parser.h.
| int SizeFromFile | ( | const std::string & | file_name | ) | const |
Definition at line 183 of file tsplib_parser.cc.
|
inline |
Definition at line 56 of file tsplib_parser.h.