Emissions limit (single year)
This constraint caps total greenhouse gas emissions for a single investment period. It's useful when you need to enforce a specific emissions target or explore the cost-optimal system configuration under a fixed carbon budget.
Common use cases:
- Testing compliance with annual emissions caps or carbon budgets
- Exploring how system composition changes under different emission limits
- Sensitivity analysis to understand cost-emissions trade-offs
Note that in the code block below, n refers to the network object.
python
# "n" refers to the network
# Add a global constraint to limit CO2 emissions
n.add(
"GlobalConstraint",
"co2_limit",
type="primary_energy",
carrier_attribute="co2_emissions",
sense="<=",
constant=1e6 # 1 million tons CO2 limit
)
# add print statement for your logs
print("Added CO2 emissions limit constraint")
