energy_methods.hybrid_dispatch#

Deterministic hourly hybrid renewable and battery dispatch (MW, MWh).

This is an illustrative energy-balance model, not a market or network optimizer.

class energy_methods.hybrid_dispatch.DispatchResult(renewable_mwh: 'float', served_mwh: 'float', demand_mwh: 'float', curtailed_mwh: 'float', discharged_mwh: 'float', unserved_mwh: 'float', coverage: 'float')[source]#

Bases: object

Parameters:
  • renewable_mwh (float)

  • served_mwh (float)

  • demand_mwh (float)

  • curtailed_mwh (float)

  • discharged_mwh (float)

  • unserved_mwh (float)

  • coverage (float)

renewable_mwh: float#
served_mwh: float#
demand_mwh: float#
curtailed_mwh: float#
discharged_mwh: float#
unserved_mwh: float#
coverage: float#
energy_methods.hybrid_dispatch.simulate_hybrid(wind_mw, solar_mw, demand_mw, *, battery_mwh, battery_mw, efficiency=0.9, initial_soc_mwh=0.0, timestep_hours=1.0)[source]#

Serve demand from wind/solar, then charge/discharge a constrained battery.

Round-trip efficiency is split symmetrically across charge and discharge. The battery is charged only from renewable surplus. No grid imports.

Parameters:
  • wind_mw (Sequence[float])

  • solar_mw (Sequence[float])

  • demand_mw (Sequence[float])

  • battery_mwh (float)

  • battery_mw (float)

  • efficiency (float)

  • initial_soc_mwh (float)

  • timestep_hours (float)

Return type:

DispatchResult