Definition at line 52 of file solution_serializer.h.
|
| static std::vector< std::vector< int64_t > > | SplitRoutes (const std::vector< int64_t > &solution, int64_t separator) |
| |
| static RoutingSolution | FromSplitRoutes (const std::vector< std::vector< int64_t >> &routes, std::optional< int64_t > depot=std::nullopt) |
| |
◆ Route
◆ 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 FromSplitRoutes |
( |
const std::vector< std::vector< int64_t >> & |
routes, |
|
|
std::optional< int64_t > |
depot = std::nullopt |
|
) |
| |
|
static |
◆ operator!=()
◆ operator==()
◆ SerializeToSolutionFile()
◆ SerializeToString()
◆ SetAuthors()
| void SetAuthors |
( |
std::string_view |
authors | ) |
|
|
inline |
◆ SetName()
| void SetName |
( |
std::string_view |
name | ) |
|
|
inline |
◆ SetTotalCost()
| void SetTotalCost |
( |
int64_t |
total_cost | ) |
|
|
inline |
◆ SetTotalDistance()
| void SetTotalDistance |
( |
int64_t |
total_distance | ) |
|
|
inline |
◆ SetTotalTime()
| void SetTotalTime |
( |
double |
total_time | ) |
|
|
inline |
◆ SplitRoutes()
| std::vector< std::vector< int64_t > > SplitRoutes |
( |
const std::vector< int64_t > & |
solution, |
|
|
int64_t |
separator |
|
) |
| |
|
static |
◆ WriteToSolutionFile()
The documentation for this class was generated from the following files: