trips module¶
Contains entities to represent trips in the data model.
-
class
jinete.models.trips.Trip(identifier, origin, destination, capacity=1, on_time_bonus=0.0, timeout=inf)[source]¶ Bases:
jinete.models.abc.Model-
__init__(identifier, origin, destination, capacity=1, on_time_bonus=0.0, timeout=inf)[source]¶ - Parameters
identifier (
str) –origin (
jinete.models.services.Service) –destination (
jinete.models.services.Service) –capacity (
float) –on_time_bonus (
float) –timeout (
float) –
-
capacity¶ The requested capacity of the trip.
-
destination¶
-
destination_earliest¶
-
destination_latest¶
-
distance¶
-
identifier¶ The unique identifier of the trip.
-
on_time_bonus¶ The applied bonus if the trip starts at its earliest time (need to be set up through the cost function).
-
origin¶
-
timeout¶ The max trip duration, from the pickup latest time to the delivery earliest time.
-