-
Notifications
You must be signed in to change notification settings - Fork 16
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
Connection flow with representative periods #1182
Comments
Can you give a minimum example DB that replicates the issue? |
Here is in json fomart. |
This example lacks annualized costs. It should be noted that when it comes to a storage - unit - node relationship, the model seems to work well. |
The problem could be related to this constraint, the connection flow rate. The discharge is double counting the flow rate using 1.94 as efficiency when it should be 0.97. The charge correctly implements an efficiency of 0.97. The node state balance is zero, but it is optimal if you charge and discharge simultaneously. These expressions represent that if you charge 10 you will be able to discharge 20, it is like a generator behavior. That is the reason the model does not invest in the storage, but it invests in the connection. In principle, this should come from the fact that I am modeling representative periods and the entire horizon temporal block to obtain seasonality. I think in the backend it is generating an error. |
Had a call with @aporrasc, we found that the errors appear in v0.9.2, but not in v0.8.2. The So what is the reason for the change, and do we want to revert it? Tagging @Tasqu because we had recent discussion on this constraint. |
I tried the given example with the latest |
V0.9.2. SpineOpt
v0.15.1 SpineInterface
By using different time blocks on each side of a connection, the flow acquires erroneous behavior.
If I solve my problem without representative periods, everything makes sense. But when I use them the problems appear.
Specifically. I have a storage connected to the electricity node through a connection. The storage has associated the temporal block of a year with a resolution of 1h and the temporal blocks of representative days with a resolution of 1h The electricity node is only associated to the representative days.
It is an investment problem, the optimal solution gives 0 investment in the storage but invests in the connection and the flow does not respect the capacity constraint.
The text was updated successfully, but these errors were encountered: