spice_ev.generate.generate_from_csv.assign_vehicle_id

spice_ev.generate.generate_from_csv.assign_vehicle_id(input, vehicle_types, export=None)

Assign all rotations to specific vehicles with distinct vehicle_id.

The assignment follows the principle “first in, first out”. The assignment of a minimum standing time in hours is optional.

Parameters:
  • input (dict) – schedule of rotations

  • vehicle_types (dict) – dict with vehicle types

  • export (str or None) – path to output file of input with vehicle_id

Returns:

schedule of rotations

Return type:

dict