V2GSchedule#

class popo.scenarios.V2GSchedule(discharge_start_hour=17.0, discharge_end_hour=21.0, discharge_kw=7.4, recharge_start_hour=0.0, recharge_end_hour=6.0)#

Bases: object

A fixed daily vehicle-to-grid exchange: discharge in the evening, recharge after midnight.

The vehicle is assumed to be home and plugged in through both windows, which is the usual assumption for residential vehicle-to-grid. Discharge only happens at steps where the vehicle is not already charging, and recharge only uses the charger capacity its recorded charging leaves free.

Variables:
  • discharge_start_hour – Start of the discharge window, local time.

  • discharge_end_hour – End of the discharge window.

  • discharge_kw – Discharge power, capped at the charger rating.

  • recharge_start_hour – Start of the recharge window; may be after midnight.

  • recharge_end_hour – End of the recharge window, before the vehicle leaves.