gtopt/emission_zone_lp.hpp file

LP-active wrapper for the EmissionZone bridge entity.

EmissionZoneLP owns only the LP artefacts that are actually needed. The per-block production column and the balance row have been substituted out: every emission contribution to a constraint or to the objective is wired directly on the generator dispatch column by EmissionSourceLP, using the per-block scalar

α_{s,b} = weight_z,p · (1 − capture_s,p) · (rate_s + upstream_s) · dur_b

(tonnes of CO₂-eq per MW of dispatch, for source s, pollutant p, in block b).

What the zone DOES build, gated by which fields are set:

  • cap set → a per-stage cap row Σ_b Σ_{s ∈ sources(z)} α_{s,b} · gen_{s,b} ≤ cap_z,s (coefficients injected by EmissionSourceLP).
  • cap_cost → a slack column on the cap row, penalised at cap_cost · prob · discount (cap becomes soft).
  • price set OR objective_mode = "emissions" → an objective-coefficient adder on every generator dispatch column: + price · α_{s,b} ($/MWh scaled through block_ecost, mirroring the CCS opex adder already on EmissionSourceLP).
  • allowance_pool set → each generator dispatch column is injected with coefficient + α_{s,b} (tCO₂) into the referenced AllowancePoolLP's per-block energy- balance row. The pool's banked SoC then becomes the binding multi-stage cap; the per-stage cap row is skipped on this zone.

When none of cap, price, allowance_pool, or objective_mode = "emissions" applies, the zone is pure reporting: no LP column, no LP row. The per-source emission streams (EmissionSource/emissions_sol.parquet etc.) are still produced post-solve from generator primals × α factors cached inside EmissionSourceLP, so the cost of "zone configured but no constraint set" is now zero LP variables and zero LP rows.

AllowancePoolLP is visited before EmissionZoneLP (see system_lp.hpp collections_t ordering) so its energy rows exist when sources inject their α-weighted coefficients.

Namespaces

namespace gtopt

Classes

class gtopt::EmissionZoneLP