Hi everyone,
I have a small stochastic hydropower problem. As you may know, water inflows are considered random variables in most hydropower problems, just like my problem.
There is a well-structured example here:

In this example, there is only one reservoir, so we have only one random inflow variable.
Now imagine we have two consecutive reservoirs that are connected. The output of the first reservoir is the input of the second reservoir.
Just like the example in the link, we have state variables (but two variables) for the water level in the reservoirs and two decision variables for hydro and thermal generation for each reservoir.

Now my question is how we can define random variables in this structure. Defining the second random variable is exactly like the first random variable? What if there is a relation between the random variables (for example huge inflow in one reservoir means a huge inflow in the other reservoir)

Thank you.
I managed to develop my model in Julia.
Now, I have another question.
How can I evaluate my decision rule when I have a two-dimensional term?
And also, I do not theoretically understand the difference between evaluation and simulation in SDDP.jl.
Do you have any web references to help me understand?

The secret is that there is no multidimensional noise term. It’s just a single vector of outcomes with a corresponding vector of probabilities.

In this example:

julia> model = SDDP.LinearPolicyGraph(
stages=3, lower_bound = 0, optimizer = HiGHS.Optimizer
) do subproblem, t
@variable(subproblem, x, SDDP.State, initial_value = 0.0)
support = [(value = v, coefficient = c) for v in [1, 2] for c in [3, 4, 5]]
probability = [v * c for v in [0.5, 0.5] for c in [0.3, 0.5, 0.2]]
SDDP.parameterize(subproblem, support, probability) do ω
JuMP.fix(x.out, ω.value)
@stageobjective(subproblem, ω.coefficient * x.out)
println("ω is: ", ω)
end
end;

I usually find it more convenient to just call SDDP.simulate and then post-process the results, rather than trying to evaluate individual decisions rules.