Added co2 storage shadow price output to csv

This commit is contained in:
millingermarkus 2023-12-11 10:49:44 +01:00
parent 1b88dc7660
commit d6a11c28c9

View File

@ -446,6 +446,8 @@ def calculate_metrics(n, label, metrics):
if "CO2Limit" in n.global_constraints.index:
metrics.at["co2_shadow", label] = n.global_constraints.at["CO2Limit", "mu"]
if "co2_sequestration_limit" in n.global_constraints.index:
metrics.at["co2_storage_shadow", label] = n.global_constraints.at["co2_sequestration_limit", "mu"]
return metrics