EmissionZone struct
#include <gtopt/emission_zone.hpp>
A pollutant cap / price constraint scope, possibly covering multiple pollutants (GHG basket).
Public static variables
- static LPClassName class_name
Public variables
- OptActive active
- Activation status.
- OptSingleId allowance_pool
- Array<SingleId> buses
- OptTRealFieldSched cap
- OptTRealFieldSched cap_cost
- Array<EmissionZoneFactor> emissions
- Name name
- Human-readable name (e.g. "global_co2", "ghg_basket").
- OptTRealFieldSched price
- Uid uid
- Unique identifier.
Variable documentation
static LPClassName gtopt:: EmissionZone:: class_name
Canonical class-name constant used in LP row labels and the per-element output directory Output/EmissionZone/*.parquet.
OptSingleId gtopt:: EmissionZone:: allowance_pool
Optional FK to an AllowancePool that banks this zone's allowances (cap-and-trade with banking, EU-ETS style). When set:
- each per-block
productioncolumn is injected as a drawdown (coefficient+1, in tCO₂) into the pool's energy-balance rows, so the pool's banked SoC — not a fixed per-stage figure — becomes the binding multi-stage cap; and - the zone's own standalone per-stage
caprow is SKIPPED (the pool'semin/efin/efin_costmediate compliance). When unset, the standalonecaprow (if any) applies as before.
Array<SingleId> gtopt:: EmissionZone:: buses
Optional bus scope for the fuel-derived sources synthesised by System::expand_fuel_emission_sources: when non-empty, only generators connected to one of these buses get a source in this zone. Empty (default) = every bus. Lets a converter keep, e.g., interconnector import proxies out of a market's own total while tracking them in a separate zone. Explicit EmissionSource rows are not filtered.
OptTRealFieldSched gtopt:: EmissionZone:: cap
Optional cap on total emissions across all sources in this zone, per stage [CO₂-eq tons / stage]. When set, a per-stage cap row is built that aggregates the per-block production over all blocks. Hard by default; soft if cap_cost is also set.
OptTRealFieldSched gtopt:: EmissionZone:: cap_cost
Optional penalty [$/CO₂-eq ton] on slack above cap — converts the cap from hard to soft. Stage-schedulable.
Array<EmissionZoneFactor> gtopt:: EmissionZone:: emissions
List of pollutants covered by this zone, each with a GWP weight. One pollutant per EmissionZoneFactor row; the cap / price act on the weighted (CO₂-eq) sum Σ_p weight_p · tonnes_p. Legacy JSON "emission": "<name>" (singular) is auto-folded into a single-element list with weight 1.0 by the JSON constructor.
OptTRealFieldSched gtopt:: EmissionZone:: price
Optional per-ton tax / permit price [$/CO₂-eq ton], stage-schedulable. Adds price · production_b to the objective for every block.