-
Notifications
You must be signed in to change notification settings - Fork 151
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
Sam 313 reopt v3 for resilience #1527
Conversation
…opt_v3_for_resilience
…opt_v3_for_resilience
…hen outage steps are specified
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I am getting an intermittent UI callback error -- is this being triggered by an unexpected response from the API? Clicking the button again once or twice after the error seems to get it to work.
Could not evaluate callback function:call_reopt->on_change
[103]: error: _s
[103]: error: _s
[5]: eval error in statement list
- Is there a difference in functionality between the REopt button on the Battery Cell and System page and the one on the Grid Outage page? I find the two buttons confusing. If the two buttons do the same thing, I think I prefer a single button on the Battery Cell and System page. A alternate approach would be to have a separate optimization page because it technically affects battery size, dispatch, and grid outages.
|
I think I prefer a single button on the Battery Cell and System page and a dialog choice if outage is enabled. That will more clearly communicate to experienced users that there is a new feature. We can also add a sentence to the UI text explaining that considering grid outage is an option. |
Hard to say without knowing what the API is returning. It might be returning a non-JSON file (maybe HTML?) in which case returning a fixed number of characters of the file to display in a UI dialog may be a way to handle it. Or, retrying the API call once or twice if it doesn't return results with an error message. |
Addressed in latest push. |
I think this was due to REopt V3 returning an empty dictionary if no storage is optimal, rather than size_kw = 0. I've pushed a fix to address this, can you let me know if it clears up the issue on your end? |
…opt_v3_for_resilience
This functionality is better. But, after testing, I think a checkbox like "Consider outage in REopt sizing" on the Battery Cell and System page would be better. It would be enabled when grid outage data is specified and disabled (and set to false) otherwise. I can add that if you agree. |
Yes, that sounds good. Please add it! |
@brtietz "Consider grid outage in REopt optimization" checkbox is ready for your review. |
Thank you, the checkbox looks good! I made two modifications:
Can you confirm (2) is the desired behavior? |
Oops, thanks for (1). I went back and forth on (2), and ended up deciding not to automatically uncheck the box. The REopt call does not consider outages when the checkbox is either disabled or unchecked, which I think is clear enough, although we are not consistent with this throughout the UI. (In general, it's best not to automatically change inputs without notifying the user.) I could see a situation where a user is trying different scenarios with and without outages on the Grid Outage page and may not notice that the box gets unchecked on the Battery Cell and System page. Or, they may be manipulating critical load and grid outage inputs in an LK script and not notice the check box being unchecked. On the other hand, running REopt requires clicking the button on the Battery Cell and System page, so the user should see the unchecked box, so I could be convinced that automatically unchecking is the clearest option. You can decide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll approve this pending your final decision on automatic unchecking so you can get this merged when you're ready.
Pull Request Template
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #313
Pairs with SSC PR NREL/ssc#1078, recommend testing with SAM-private PR https://github.com/NREL/SAM-private/pull/96 as well
To test:
oct_8th_outage_1wk.csv
Other notes:
Type of change
Please delete options that are not relevant.
Checklist:
If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.