Definition at line 55 of file solution_serializer.h.
#include <solution_serializer.h>
|
| static std::vector< std::vector< int64_t > > | SplitRoutes (absl::Span< const int64_t > solution, int64_t separator) |
| static RoutingSolution | FromSplitRoutes (absl::Span< const std::vector< int64_t > > routes, std::optional< int64_t > depot=std::nullopt) |
◆ Route
◆ RoutingSolution()
| operations_research::routing::RoutingSolution::RoutingSolution |
( |
std::vector< Route > | routes, |
|
|
std::vector< int64_t > | total_demands, |
|
|
std::vector< int64_t > | total_distances, |
|
|
int64_t | total_cost = -1, |
|
|
int64_t | total_distance = -1, |
|
|
double | total_time = -1.0, |
|
|
std::string_view | name = "" ) |
|
inline |
◆ FromSplitRoutes()
| RoutingSolution operations_research::routing::RoutingSolution::FromSplitRoutes |
( |
absl::Span< const std::vector< int64_t > > | routes, |
|
|
std::optional< int64_t > | depot = std::nullopt ) |
|
static |
◆ operator!=()
| bool operations_research::routing::RoutingSolution::operator!= |
( |
const RoutingSolution & | other | ) |
const |
|
inline |
◆ operator==()
| bool operations_research::routing::RoutingSolution::operator== |
( |
const RoutingSolution & | other | ) |
const |
|
inline |
◆ SerializeToSolutionFile()
| std::string operations_research::routing::RoutingSolution::SerializeToSolutionFile |
( |
RoutingOutputFormat | format | ) |
const |
|
inline |
◆ SerializeToString()
| std::string operations_research::routing::RoutingSolution::SerializeToString |
( |
RoutingOutputFormat | format | ) |
const |
|
inline |
◆ SetAuthors()
| void operations_research::routing::RoutingSolution::SetAuthors |
( |
std::string_view | authors | ) |
|
|
inline |
◆ SetName()
| void operations_research::routing::RoutingSolution::SetName |
( |
std::string_view | name | ) |
|
|
inline |
◆ SetTotalCost()
| void operations_research::routing::RoutingSolution::SetTotalCost |
( |
int64_t | total_cost | ) |
|
|
inline |
◆ SetTotalDistance()
| void operations_research::routing::RoutingSolution::SetTotalDistance |
( |
int64_t | total_distance | ) |
|
|
inline |
◆ SetTotalTime()
| void operations_research::routing::RoutingSolution::SetTotalTime |
( |
double | total_time | ) |
|
|
inline |
◆ SplitRoutes()
| std::vector< std::vector< int64_t > > operations_research::routing::RoutingSolution::SplitRoutes |
( |
absl::Span< const int64_t > | solution, |
|
|
int64_t | separator ) |
|
static |
◆ WriteToSolutionFile()
| void operations_research::routing::RoutingSolution::WriteToSolutionFile |
( |
RoutingOutputFormat | format, |
|
|
const std::string & | file_name ) const |
The documentation for this class was generated from the following files: