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

Two uncorrelated uncertainties #649

Closed
hghayoom opened this issue Aug 16, 2023 · 4 comments
Closed

Two uncorrelated uncertainties #649

hghayoom opened this issue Aug 16, 2023 · 4 comments

Comments

@hghayoom
Copy link

Hi Oscar,
I have a model that has two uncertainties. these uncertainties are not correlated. Therefore I do not want to define them in one unique parametrize like what you did in your paper :

SDDP.parameterize(sp, Ω) do ω
                p′, p = SDDP.objective_state(sp)
                @stageobjective(sp, 1_000 * sum(spill) - p′ * generation)

Or what you did in this example

you essentially say thatwhen inflow is 0 then fuel_multiplier = 1.5.
I want to have this example but inflow and fuel_multiplier are not correlated. I may have also multiple uncorrelated variables
Inflow of 0 can happen with all of multipliers 1.5, 1 , 0.75.

Ω = [
        (inflow = 0.0, fuel_multiplier = 1.5),
        (inflow = 50.0, fuel_multiplier = 1.0),
        (inflow = 100.0, fuel_multiplier = 0.75),
    ]

If I define two SDDP.parameterize detected. I get an error for:

Exception has occurred: ErrorException
Duplicate calls to SDDP.parameterize detected.

I appreciate it if you can help me with that.

@odow
Copy link
Owner

odow commented Aug 16, 2023

Therefore I do not want to define them in one unique parametrize

You cannot call parameterize more than once. You must generate the Cartesian product of your uncertainties and call parameterize once.

See https://odow.github.io/SDDP.jl/stable/guides/add_multidimensional_noise/

@hghayoom
Copy link
Author

Thank you, Oscar.
You are always helpful and responsive, I appreciate it.

@odow
Copy link
Owner

odow commented Aug 16, 2023

No problem 😄

@odow
Copy link
Owner

odow commented Aug 16, 2023

Closing because this seems resolved. Please re-open if you have further questions.

@odow odow closed this as completed Aug 16, 2023
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

No branches or pull requests

2 participants