When solving a stochastic program, the results can be accessed using .Stochastic. However, I cannot find this data in the WebUI when trying to make, for example, a table showing the objective value of the stochastic program for each scenario.
My question then, is this: how do I show the values of both Decision Variables and the Objective Function for each scenario, resulting from solving a Stochastic Program?
Page 1 / 1
Hello @aron.hout , when adding an identifier to a table - you should find the variable.stochastic in the list and add that to the table (See attached screenshot).
Alternatively, you can also create a separate parameter and store the stochastic variable values in that parameter. Say, Var(i, j). Parameter(i, j, IndexStochasticScenarios). Index StochasticScenarios is a predeclared index for the stochastic scenarios set.
Alternatively, you can also create a separate parameter and store the stochastic variable values in that parameter. Say, Var(i, j). Parameter(i, j, IndexStochasticScenarios). Index StochasticScenarios is a predeclared index for the stochastic scenarios set.
code:
solve MathProgram;
Parameter(i, j, IndexStochasticScenarios) := Var.Stochastic(i, j, indexStochasticScenarios)
Thanks, that works!
Sign up
Already have an account? Login
Please use your business or academic e-mail address to register
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.