You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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? The incoming_state argument of evaluate 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:
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 SDDP.simulate instead of querying particular values of the decision rule.
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: