allow varying marginal cost of carrier in opts wc: CCGT+m2.0

This commit is contained in:
Fabian Neumann 2022-04-08 10:26:16 +02:00
parent f474f8bce4
commit f9ede37a02

View File

@ -257,7 +257,7 @@ if __name__ == "__main__":
if oo[0].startswith(tuple(suptechs)):
carrier = oo[0]
# handles only p_nom_max as stores and lines have no potentials
attr_lookup = {"p": "p_nom_max", "c": "capital_cost"}
attr_lookup = {"p": "p_nom_max", "c": "capital_cost", "m": "marginal_cost"}
attr = attr_lookup[oo[1][0]]
factor = float(oo[1][1:])
if carrier == "AC": # lines do not have carrier