add value lines to ensure reopt dispatch runs with reopt's constraints#1165
Conversation
…pdate_reopt_script
|
@brtietz I am getting a series of "Save inputs as" dialogs saving files with invalid names like ssc-/ssc-pvsamv1.lk.lk followed by a UI callback error: Also, the initial msgbox() that opens asking about changing inputs on the battery dispatch page should be made more general now that the script changes more of those check boxes: Old:
Suggested New:
|
…pdate_reopt_script
* Remove progress bar from Battery RE Optimization RE form. * Display message dialog box from invoke.cpp at start of fcall_reopt_size_battery(). This avoids issues with progress bar interfering with SAM UI -- not sure if UI callback messagebox with messages from REopt API will be hidden behind the dialog box.
…L/SAM into sam_1092_update_reopt_script
…pdate_reopt_script
…pdate_reopt_script
…pdate_reopt_script
…pdate_reopt_script
|
In my tests (in sam-private so I could run the REopt API call), I am getting errors like the following: The following change to Line 5773 of invoke.cpp dividing the loss by 100 to convert from percent to decimal seems to fix the problem: ( I'm not sure exactly what is going on here because the REopt API inputs documentation does not list losses as an input. |
|
Oh, sorry, @Matthew-Boyd and I have a plan to fix this that he hasn't had a chance to execute yet, sorry to waste your time testing it again now. I think that might be the link to the REopt V2 documentation - I can't find the link to the older, more comprehensive documentation, but "losses" is a variable in the code: https://github.com/NREL/REopt.jl/blob/master/src/core/pv.jl Relatedly, I wasn't sure I should make an issue about upgrading to the V2 endpoint, since this issue exists: #1135 |
|
No need for a different issue, I added a note to #1135 to considering updates. |
…pdate_reopt_script
|
Additional commits contain required improvements for NatLabRockies/ssc#925 to solve NatLabRockies/ssc#923. I still need to make the requested messagebox changes. Additionally, while debugging some issues for ssc 923, I encountered the following wxWidgets error message: Does this require any changes to the dialog window? |
|
@cpaulgilman Ok, this is finally ready for a second review. Please check out NatLabRockies/ssc#925 if it hasn't been merged prior to your review of this PR. |
Check each required dispatch and h/kWh sizing input separately for clarity.
cpaulgilman
left a comment
There was a problem hiding this comment.
Looks good. I fixed the message box text, one for each input check is good for clarity. Resulting NPV is big improvement over SAM 2021.12.02, and dispatch schedule is completely different when using gen as REopt input instead of lat/lon with a loss.
|
@cpaulgilman, @brtietz, the sam_1092_update_reopt_script pythonhandler.cpp fails to load on MacOS (found while trying to test lk pull request 36) |
This issue is not specific to develop but is caused by a bogus python_config.json that was checked in in commit c3af95 |




Pull Request Template
Description
Add value settings to the REopt sizing script such that we run REopt with the REopt friendly dispatch constraints.
Fixes #1092
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.