emission_zone_lp.cpp file
LP-active wiring for EmissionZone — cap row only.
The per-block production column and balance row have been substituted out: every emission contribution 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
(see emission_source_lp.cpp). This file therefore only owns the optional cap row (and its slack column for soft caps).
Per (scenario, stage), if cap is set:
row[cap]: Σ_b Σ_{s ∈ sources(z)} α_{s,b} · gen_{s,b} ≤ cap (+ slack with cap_cost penalty when cap_cost set)
The cap row is created empty here — EmissionSourceLP::add_to_lp runs afterwards and stamps the per-block α coefficients on the matching generator dispatch columns. Cap coverage when an allowance pool is configured is mediated by the pool's banked SoC instead, so the per-stage cap row is skipped on those zones.
Namespaces
- namespace gtopt