--- jupytext: text_representation: extension: .md format_name: myst format_version: 0.13 jupytext_version: 1.10.3 kernelspec: display_name: Python 3 language: python name: python3 ---
CO2 supply-demand balance (t) ====== *indexed by asset, data type (Demand or Production), energy, node, technology and test case* ### Description This KPI returns the volumes of energy consumed and produced over the entire simulation for every CO2 energy, node, asset, and technology of a given context. The results indicated in this KPI are directly those of the optimization problem. If an asset produces, it will appear in the *Production* tag of the "Data type" index. For example, a storage asset may appear in both the *Production* and *Demand* tags, as it consumes energy to store it and produces energy during its life cycle.

Modelling hint

Note that Voluntary Load Curtailment, which represents consumption curtailment, and Loss of Load, which represents failure, are modelled as production assets. They will therefore appear in the *Production* tag.
This KPI is particularly interesting to understand the equilibrium between the national production and the national demand over a node for a given energy. ### Calculation This KPI is calculated following the exact same equations as KPI [Supply demand balance](sdb.md), except for different energies: *co2* and *co2_captured*. Please refer to [this KPI's documentation](sdb.md) for calculus details.