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

Updated hydro valley example and tests #240

Merged
merged 2 commits into from
Jul 18, 2019
Merged

Updated hydro valley example and tests #240

merged 2 commits into from
Jul 18, 2019

Conversation

conrad-mac
Copy link
Contributor

Hey Oscar,

I had a go at updating the hydro valley example as an exercise in getting better acquainted with Julia/JuMP/SDDP. I'm still learning so it may not be terribly elegant. I followed your upgrading guide and managed to get there in the end. The tests all seem to pass.

Cheers,

Conrad

@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

Merging #240 into master will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #240      +/-   ##
==========================================
+ Coverage   93.73%   93.81%   +0.08%     
==========================================
  Files          14       14              
  Lines        1229     1229              
==========================================
+ Hits         1152     1153       +1     
+ Misses         77       76       -1
Impacted Files Coverage Δ
src/plugins/risk_measures.jl 95.04% <0%> (+0.99%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0490bea...41945a9. Read the comment docs.

Copy link
Owner

@odow odow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! So the tests probably pass because it ignores everything in the sddp.jl_not_updated folder. Move these examples into the main examples folder and then re-run the tests to see what breaks.

In addition, take a look at the other examples. We wrap everything in a function so we're not polluting the global namespace with lots of different models lying around.

@odow odow merged commit 4e8ceda into odow:master Jul 18, 2019
@odow
Copy link
Owner

odow commented Jul 18, 2019

Thanks @conrad-mac!

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.

2 participants