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
KeyError: 'P_batt' #5
Comments
This may happen when the LP becomes too big for the current machine/solver. Adding a battery may cause this. When I tested the inclusion of the battery the LP solver ran well with 30min time steps though. |
Hi, did you managed to solve this issue? Did you use a higher time step to 60min? |
I had to simplify the complexity of the problem space. I am wondering if falling back to GLPK_CMD isn’t as powerful solver? I find a working solver will take between 6-8 seconds, whereas an unworking solver just continues to run without stopping with CPU load showing in the add-on window. I reduced the deferable loads from 4 to 2 and reduced their operating windows. I suspect the KeyError: 'P_batt' occurs if the publish-data routine is called before the dayahead optimisation is called. In my case I have an automation/ cron job calling publish-data every five minutes, but had just enabled the battery setting, but was unable to complete the optimisation. Perhaps some documentation around what a KeyError: P_batt means, or maybe some error checking in the publish-data routine would be the fix for this issue. |
Hi, great thanks for the information.
I also added some code to check the existence of correct keys before data publish. |
Running 0.1.37 and feels like we are getting close :-).
When I enable the battery for the solution space dayahead doesn't seem to finish, running for over 10 minutes before I called again:
Then the next time publish runs it fails:
The text was updated successfully, but these errors were encountered: