gtopt/allowance_pool_lp.hpp file

LP wrapper for AllowancePool (Phase 2 — banking only).

Peer of LngTerminalLP on the StorageLP<> framework, with a single difference: the inflow is free allowance allocation (the regulator's grandfathering / benchmarking entitlement) and there is no per-generator coupling — emissions consumption is wired in Phase 3 by injecting EmissionZone.production cols into the pool's energy-balance row.

Phase 2 (this file) builds only:

  • one free_allocation column per (scenario, stage, block) fixed at delivery / stage_duration (m³ → tCO₂/hour rate),
  • the StorageLP SoC carry rows (banked allowances across stages), with emin / emax / efin / efin_cost handled by the base.

Phase 3 (done): EmissionZone.production outflow stamping into the per-block energy rows, replacing the standalone EmissionZone.cap row with a pool-mediated cap. Wired from the zone side (EmissionZoneLP::add_to_lp) into this pool's energy_rows_at.

Phase 4 (this file): optional auction-purchase column. When auction_price is set, each (scenario, stage, block) gets an auction column (absolute tCO₂, [0, auction_cap]) injected as a -1 inflow into the energy-balance row, priced at auction_price [$/tCO₂] (probability × discount weighted; NO duration — the column is a tonnage, not a rate). This lets the bank buy allowances on the market instead of forcing emission abatement when the marginal allowance value exceeds the auction price.

Namespaces

namespace gtopt

Classes

class gtopt::AllowancePoolLP