co2

This module contains the constraints and expressions related to carbon emissions. The model computes the carbon emissions for each year, based on the sum of carbon emissions from each zone, and from each technology as follows:

\[{\rm{carbon}}_y=\sum_{e\in\mathcal{E}}\sum_{z\in\mathcal{Z}} \sum_{m\in\mathcal{M}}\sum_{h\in\mathcal{H}} \left({{\rm{CARBON}}}_{y,z,e}\times {\rm{gen}}_{h,m,y,z,e}\right)\quad\forall y\]

The calculated carbon emission for each year lower than its upper bound, as follows:

\[{\rm{carbon}}_y\le{\overline{{\rm{CARBON}}}}_y\quad\forall y\]
class prepshot._model.co2.AddCo2EmissionConstraints(model)[源代码]

基类:object

Class for carbon emission constraints and calculations.

参数

model (object) --

__init__(model)[源代码]

Initialize the class.

参数

model (object) -- Model object depending on the solver.

返回类型

None

carbon_breakdown(y, z, te)[源代码]

Carbon emission cost breakdown.

参数
  • y (int) -- Year.

  • z (str) -- Zone.

  • te (str) -- Technology.

返回

The expression of the model.

返回类型

poi.ExprBuilder

carbon_offset_limit_rule(y, z)[源代码]

Limit purchased carbon offsets to a fraction of raw zonal emissions.

carbon_offset[y,z] <= rate * raw_emissions[y,z]

where raw_emissions = carbon_capacity + carbon_offset (i.e. the emissions before offsets are deducted).

参数
  • y (int) -- Planned year.

  • z (str) -- Zone.

返回

A constraint of the model.

返回类型

poi.ConstraintIndex

emission_calc_by_zone_rule(y, z)[源代码]

Calculation of annual net carbon emissions by zone, after subtracting purchased carbon offsets.

参数
  • y (int) -- Planned year.

  • z (str) -- Zone.

返回

An expression for net zonal emissions.

返回类型

poi.ExprBuilder

emission_calc_rule(y)[源代码]

Calculation of annual carbon emission across all zones and technologies.

参数

y (int) -- Planned year.

返回

A constraint of the model.

返回类型

poi.ConstraintIndex