Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <solution_serializer.h>
Public Types | |
enum class | Type { kStart , kEnd , kServeArc , kServeEdge , kServeNode , kTransit } |
Describes the type of events that occur along a route. More... | |
Public Member Functions | |
Event (Type type, int64_t demand_id, Arc arc) | |
Event (Type type, int64_t demand_id, Arc arc, std::string_view arc_name) | |
bool | operator== (const Event &other) const |
bool | operator!= (const Event &other) const |
Public Attributes | |
Type | type |
int64_t | demand_id |
Arc | arc |
std::string | arc_name |
Describes a state transition performed by a vehicle: starting from/ending at a given depot, serving a given customer, etc. When need be, each event can have a specific demand ID (this is mostly useful when servicing arcs and edges). An event always stores an arc: this is simply the edge when servicing the edge (it should correspond to the direction in which the edge is traversed); when the event is about a node (either a depot or a demand), both ends of the arc should be the node the event is about.
Definition at line 64 of file solution_serializer.h.
|
strong |
Describes the type of events that occur along a route.
Definition at line 66 of file solution_serializer.h.
Definition at line 87 of file solution_serializer.h.
|
inline |
Definition at line 89 of file solution_serializer.h.
|
inline |
Definition at line 96 of file solution_serializer.h.
|
inline |
Definition at line 92 of file solution_serializer.h.
Arc operations_research::RoutingSolution::Event::arc |
Definition at line 84 of file solution_serializer.h.
std::string operations_research::RoutingSolution::Event::arc_name |
Definition at line 85 of file solution_serializer.h.
int64_t operations_research::RoutingSolution::Event::demand_id |
Definition at line 83 of file solution_serializer.h.
Type operations_research::RoutingSolution::Event::type |
Definition at line 82 of file solution_serializer.h.