gtopt::MipStartPeakInjection struct

STAGE 2 add-on: peak-injection domain rule (battery + hydro seeding).

Seeds storage / hydro injection units to be committed ON during the relevant window in the rounded integer start (the PeakInjectionRule). Two unit classes, distinguished by topology:

  • reservoir-fed HYDRO (any turbine-linked generator): commit ON across the evening peak_window so it injects when the system is most stressed.
  • BATTERY discharge (any converter's discharge generator): seed the unit ACTIVE across BOTH the solar_window (charge) and the evening peak_window (discharge), approximating a single daily charge→discharge cycle. An expand_batteries battery exposes a SINGLE shared activity binary, so the binary marks "active" in both windows while the continuous charge/discharge columns (which the MIP optimizes) pick the direction. Conservative — only ever flips a status binary toward ON inside a window (never OFF, never outside), so the MIP still validates and re-optimizes. enabled default TRUE.

Public functions

void merge(MipStartPeakInjection&& opts)

Public variables

OptBool enabled
Master on/off for the peak-injection rule (default true).
MipStartWindow peak_window
Evening peak / discharge window (default 18→23).
MipStartWindow solar_window
Battery solar-charge window (default 9→17).