Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rolling_horizon produces wrong results #864

Closed
flo161616 opened this issue Jan 14, 2024 · 1 comment
Closed

rolling_horizon produces wrong results #864

flo161616 opened this issue Jan 14, 2024 · 1 comment
Labels
Milestone

Comments

@flo161616
Copy link

I am using the 0.8.1 release of PyPSA-eur.

Description:
While attempting to solve a sector coupled network (CPLEX) with the option rolling_horizon: true it causes wrong results. No error occurs however. The Co2 Limits are not taken into account and as it seems, gas is used more often. Also it looks a bit as if the constraints are only taken account for the first iteration of the horizon.

How to reproduce:
Tested with CO2L0.76-24H-T-H-B-I-A. Single week, Belgium. Switching on the rolling horizon and choosing horizon: 1 adds the horizon and completely changes the results.

Expected results:
Restrictions and results are the same as if no horizon was used.

@flo161616 flo161616 added the bug label Jan 14, 2024
@fneum fneum added this to the v0.11.0 milestone May 19, 2024
@fneum fneum closed this as completed in c7d8af9 May 20, 2024
@fneum
Copy link
Member

fneum commented May 20, 2024

In c7d8af9, I have revised the documentation to state that the rolling_horizon: true should only apply to the rule solve_operations_networks (e.g., no investment variables, no sector-coupling). I have also ensured now that the rolling horizon setting is only applied for this rule.

It is somewhat expected and intended that the emission limits are not considered in this case, as otherwise an assumption about the distribution of the budget to the operational optimisation windows would have to be made. In this case, it is better to remove the CO2 Limit and substitute it by an equivalent CO2 price.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants