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

Bug Fix for correct tracking of current investment stage by SDDP #628

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

filippopecci
Copy link
Collaborator

The value of mysetup["CurrStage"] is modified in run_genx_case_multistage! inside a for loop. The dictionary mysetup is then passed to function run_ddp as setup_d and the current stage value is used by function initialize_cost_to_go but it is not updated to match the current stage, and left set to the last stage as done by parent function run_genx_case_multistage!.

This commit fixes that and set the right current stage in setup_d before initializing the cost-to-go.

…rogramming.jl. This value is modified in case_runners.jl and left set to the last stage
@codecov-commenter
Copy link

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (32db8be) 0.07% compared to head (bf67d8b) 0.07%.

Files Patch % Lines
src/multi_stage/dual_dynamic_programming.jl 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@          Coverage Diff           @@
##            main    #628    +/-   ##
======================================
  Coverage   0.07%   0.07%            
======================================
  Files        112     112            
  Lines       3937    3810   -127     
======================================
  Hits           3       3            
+ Misses      3934    3807   -127     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lbonaldo lbonaldo merged commit fb865cb into main Feb 14, 2024
2 of 3 checks passed
@filippopecci filippopecci deleted the fix_sdpp_curstage branch February 14, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants