simba package¶
Submodules¶
simba.consumption module¶
simba.costs module¶
simba.optimization module¶
Collection of procedures optimizing arbitrary parameters of a bus schedule or infrastructure.
- simba.optimization.service_optimization(schedule, scenario, args)¶
- Optimize rotations based on feasability.
Try to find sets of rotations that produce no negative SoC
- Parameters:
schedule (simba.Schedule) – Schedule to be optimized
scenario (spice_ev.Scenario) – Simulated schedule
args (argparse.Namespace) – Command line arguments
- Returns:
original and most optimized scenario (highest electrification rate)
- Return type:
dict of tuple of schedule and spice_ev.Scenario
simba.optimizer_util module¶
simba.report module¶
simba.rotation module¶
- class simba.rotation.Rotation(id, vehicle_type, schedule)¶
Bases:
object- add_trip(trip)¶
Create a trip object and append to rotations trip set
- Parameters:
trip (dict) – Information on trip to be added to rotation
- Raises:
Exception – if charging type of trip and rotation differ
- calculate_consumption()¶
Calculate consumption of this rotation and all its trips.
- Returns:
Consumption of rotation [kWh]
- Return type:
float
- set_charging_type(ct)¶
- Change charging type of either all or specified rotations. Adjust minimum standing time
at depot after completion of rotation.
- Parameters:
ct (str) – Choose this charging type wheneever possible. Either ‘depb’ or ‘oppb’.
simba.schedule module¶
simba.simulate module¶
simba.station_optimization module¶
simba.station_optimizer module¶
simba.trip module¶
- class simba.trip.Trip(rotation, departure_time, departure_name, arrival_time, arrival_name, distance, **kwargs)¶
Bases:
object- calculate_consumption()¶
Compute consumption for this trip.
- Returns:
Consumption of trip [kWh]
- Return type:
float
- Raises:
with_traceback – if consumption cannot be constructed