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
capacity

The requested capacity of the trip.

destination
property destination_duration
Return type

float

destination_earliest
destination_latest
property destination_position

The position for the delivery service.

Return type

Position

distance
duration(now)[source]
property empty
Return type

bool

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
property origin_duration

The requested duration to perform the origin service.

Return type

float

property origin_earliest

The earliest time to start the pickup service.

Return type

float

property origin_latest
Return type

float

property origin_position

The position for the pickup service.

Return type

Position

timeout

The max trip duration, from the pickup latest time to the delivery earliest time.