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
¶
Actual arrival time at this stop.
cumulative_travel_distance
class-attribute
instance-attribute
¶
Cumulative distance to travel from the first stop to this one, in meters.
cumulative_travel_duration
class-attribute
instance-attribute
¶
Cumulative duration to travel from the first stop to this one, in seconds.
custom_data
class-attribute
instance-attribute
¶
Custom data of the stop.
duration
class-attribute
instance-attribute
¶
Duration of the service at the stop, in seconds.
early_arrival_duration
class-attribute
instance-attribute
¶
Duration of early arrival at the stop, in seconds.
end_time
class-attribute
instance-attribute
¶
End time of the service at the stop.
late_arrival_duration
class-attribute
instance-attribute
¶
Duration of late arrival at the stop, in seconds.
start_time
class-attribute
instance-attribute
¶
Start time of the service at the stop.
target_arrival_time
class-attribute
instance-attribute
¶
Target arrival time at this stop.
travel_distance
class-attribute
instance-attribute
¶
Distance to travel from the previous stop to this one, in meters.
travel_duration
class-attribute
instance-attribute
¶
Duration to travel from the previous stop to this one, in seconds.
waiting_duration
class-attribute
instance-attribute
¶
Waiting duratino at the stop, in seconds.
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 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
¶
Total duration of the vehicle's route, in seconds.
route_stops_duration
class-attribute
instance-attribute
¶
Total duration of the stops of the vehicle, in seconds.
route_travel_distance
class-attribute
instance-attribute
¶
Total travel distance of the vehicle, in meters.
route_travel_duration
class-attribute
instance-attribute
¶
Total travel duration of the vehicle, in seconds.
route_waiting_duration
class-attribute
instance-attribute
¶
Total waiting duration of the vehicle, in seconds.
ObjectiveOutput
¶
Bases: BaseModel
Information of the objective (value function).
custom_data
class-attribute
instance-attribute
¶
Custom data of the objective.
objectives
class-attribute
instance-attribute
¶
List of objectives. Each list is actually of the same class
ObjectiveOutput, but we avoid a recursive definition here.
value
class-attribute
instance-attribute
¶
Value of the objective, which is equivalent to self.base *
self.factor.
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.