gtopt::EmissionSource struct

Public static variables

static LPClassName class_name
Canonical class-name constant used in LP row labels.

Public variables

OptActive active
Activation status.
SingleId emission
OptTRealFieldSched fuel_rate
OptSingleId generator
Name name
OptTRealFieldSched rate
Uid uid
Unique identifier.
OptTRealFieldSched upstream_fuel_rate
Upstream (WTT) counterpart of fuel_rate [t per fuel-unit].
OptTRealFieldSched upstream_rate
SingleId zone
FK to the EmissionZone the source contributes to.

Variable documentation

SingleId gtopt::EmissionSource::emission

FK to the Emission pollutant kind. Required when the zone is multi-pollutant (so the LP knows which GWP weight to pull from the zone's emissions[] table). For single-pollutant zones, must still be set to the zone's pollutant FK — the LP-side weight lookup rejects sources whose emission isn't listed in the zone's emissions[].

OptTRealFieldSched gtopt::EmissionSource::fuel_rate

Combustion emission factor on a FUEL basis [t per fuel-unit], stage-schedulable. Applied to the generator's fuel burn instead of its generation: weight · fuel_rate · dur · burn where burn is heat_rate_b · gen for a (per-block) heat rate, or the piecewise h₁·gen + Σₖ Δhₖ · s_k (heat-rate slack columns) for heat_rate_segments. Exact for any heat-rate shape — no single t/MWh rate can represent a piecewise or per-block heat rate. Additive with rate. System::expand_fuel_emission_sources() sets it to Fuel.heat_content × emission_factor.combustion for generators whose heat rate is not a single scalar.

OptSingleId gtopt::EmissionSource::generator

FK to the Generator that emits. Optional in JSON because the inline form on Generator.emissions[] omits it; set automatically by System::expand_emission_sources() to the parent generator's SingleId.

Name gtopt::EmissionSource::name

Human-readable name (often auto-generated: {generator}_to_{zone}_{emission}).

OptTRealFieldSched gtopt::EmissionSource::rate

Combustion / tank-to-stack (TTW) emission rate [t/MWh], stage-schedulable. The CO₂ released at the burner per MWh of gross generation. Contributes weight · rate · dur · gen tonnes to the zone (cap row / allowance pool / price adder).

OptTRealFieldSched gtopt::EmissionSource::upstream_rate

Upstream / well-to-tank (WTT) emission rate [t/MWh], stage-schedulable. Emissions from extracting, processing and transporting the fuel per MWh of generation. Adds weight · upstream_rate · dur · gen tonnes to the zone in addition to rate. Set this when you want a full lifecycle (well-to-burner-tip) cap or tax; leave unset for stack-only (Scope 1) accounting.