nickolasclarke / dispatch

A discrete-event simulation (DES) model for simulating deployment of EV bus fleets, using GTFS data
2 stars 0 forks source link

optimize_bus gives low value #22

Closed nickolasclarke closed 4 years ago

nickolasclarke commented 4 years ago

optimize_bus_distribution.py currently gives a very low number (99 buses req. to service AC transit, for example)

r-barnes commented 4 years ago

When I disable opportunistic charging, I get 319 buses for Minneapolis, which is on the right order of magnitude.

I think there's an issue with opportunistic charging here:

charge_time * (self.charging_rate / 60)

charge_time should be in seconds and charging_rate is probably kWh/h or something, so it should be divided by 3600 instead of 60.

r-barnes commented 4 years ago

Since units are turning out to be an issue, we could consider using Pint.

r-barnes commented 4 years ago

Closing since we've switched bus counting systems.