-
Notifications
You must be signed in to change notification settings - Fork 62
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
Evaluating at multidimensional state ? #703
Comments
Yeah, this is one part of the API that needs fixing. But I could never decide the right thing to do. The answer is that you need to use @variable(sp, x[1:2], SDDP.State, initial_value = 0) you'd need: But this is complicated, confusing, and not at all nice. I need a better way... |
Thank you, this will do for me. I suppose the difficulty is to keep a Symbol to Float dictionary to preserve type stability, which would not be possible if the values were sometimes arrays and sometimes floats. I don't know if you want this issue closed or to keep it open. I'll let you decide. |
One reason I haven't made this nicer is that, in general, I find that in most cases you want to use |
Hello,
I'm pretty sure this is a documentation issue and that the functionality exists internally, but I can't figure out how to evaluate a DecisionRule with a state that's not a scalar.
The example at https://sddp.dev/stable/apireference/#SDDP.evaluate only shows the case with the scalar
:volume
variable. But what if volume is a variable declared as multidimensional? Theincoming_state
argument ofevaluate
expects Symbol => Float64 pairs.I can contribute to improve the documentation with the answer if you want.
The text was updated successfully, but these errors were encountered: