Output module¶
Reference to the schema.output.py module.
output
¶
Defines the output class.
Version
¶
StopOutput
¶
PlannedStopOutput
¶
Bases: BaseModel
Output of a stop planned in the solution.
arrival_time
class-attribute
instance-attribute
¶
arrival_time: datetime | None = None
Actual arrival time at this stop.
cumulative_travel_distance
class-attribute
instance-attribute
¶
cumulative_travel_distance: float | None = None
Cumulative distance to travel from the first stop to this one, in meters.
cumulative_travel_duration
class-attribute
instance-attribute
¶
cumulative_travel_duration: float | None = None
Cumulative duration to travel from the first stop to this one, in seconds.
custom_data
class-attribute
instance-attribute
¶
custom_data: Any | None = None
Custom data of the stop.
duration
class-attribute
instance-attribute
¶
duration: float | None = None
Duration of the service at the stop, in seconds.
early_arrival_duration
class-attribute
instance-attribute
¶
early_arrival_duration: float | None = None
Duration of early arrival at the stop, in seconds.
end_time
class-attribute
instance-attribute
¶
end_time: datetime | None = None
End time of the service at the stop.
late_arrival_duration
class-attribute
instance-attribute
¶
late_arrival_duration: float | None = None
Duration of late arrival at the stop, in seconds.
start_time
class-attribute
instance-attribute
¶
start_time: datetime | None = None
Start time of the service at the stop.
target_arrival_time
class-attribute
instance-attribute
¶
target_arrival_time: datetime | None = None
Target arrival time at this stop.
travel_distance
class-attribute
instance-attribute
¶
travel_distance: float | None = None
Distance to travel from the previous stop to this one, in meters.
VehicleOutput
¶
Bases: BaseModel
Output of a vehicle in the solution.
alternate_stops
class-attribute
instance-attribute
¶
List of alternate stops that were planned on the vehicle.
custom_data
class-attribute
instance-attribute
¶
custom_data: Any | None = None
Custom data of the vehicle.
route
class-attribute
instance-attribute
¶
route: list[PlannedStopOutput] | None = None
Route of the vehicle, which is a list of stops that were planned on it.
route_duration
class-attribute
instance-attribute
¶
route_duration: float | None = None
Total duration of the vehicle's route, in seconds.
route_stops_duration
class-attribute
instance-attribute
¶
route_stops_duration: float | None = None
Total duration of the stops of the vehicle, in seconds.
route_travel_distance
class-attribute
instance-attribute
¶
route_travel_distance: float | None = None
Total travel distance of the vehicle, in meters.
ObjectiveOutput
¶
Bases: BaseModel
Information of the objective (value function).
Solution
¶
Bases: BaseModel
Solution to a Vehicle Routing Problem (VRP).
unplanned
class-attribute
instance-attribute
¶
unplanned: list[StopOutput] | None = None
List of stops that were not planned in the solution.
vehicles
class-attribute
instance-attribute
¶
vehicles: list[VehicleOutput] | None = None
List of vehicles in the solution.
objective
class-attribute
instance-attribute
¶
objective: ObjectiveOutput | None = None
Information of the objective (value function).
check
class-attribute
instance-attribute
¶
Check of the solution, if enabled.