You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pypsa
Hello,
I am running a multi-year optimization model with a variety of generators and fuel mixes. For each generator, I would like to be able to change their marginal costs for each year - is this possible? Or are marginal costs of producing an additional mwH set no matter what the year is?
Perhaps this is more feasible by adding an investment_period column in the carriers file so that marginal costs for each fuel type can change year to year?
Appreciate any input, thank you.
Fabian Neumann
unread,
Jul 22, 2022, 4:36:29 AM7/22/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Alexander Priven, pypsa
Hi Alexander,
in general the marginal_cost of a generator can be time-varying just as
for instance p_max_pu. So not just different by year, but every timestep.
When you do a multi-horizon optimisation, your n.snapshots will be a
multiindex (period and timestep). Create a dataframe for the marginal
cost with n.snapshots as index and your generators as columns. Then do: