Skip to main content
Solved

How to show the data resulting from a stochastic program in the WebUI

  • May 28, 2019
  • 2 replies
  • 145 views

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?

Best answer by mohansx

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.

code:
solve MathProgram;

Parameter(i, j, IndexStochasticScenarios) := Var.Stochastic(i, j, indexStochasticScenarios)
This topic has been closed for replies.

2 replies

mohansx
Forum|alt.badge.img+5
  • Former AIMMSian
  • 223 replies
  • Answer
  • June 5, 2019
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.

code:
solve MathProgram;

Parameter(i, j, IndexStochasticScenarios) := Var.Stochastic(i, j, indexStochasticScenarios)

  • Author
  • Newcomer
  • 1 reply
  • June 5, 2019
Thanks, that works!

Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator