getsol, getsolatnode, getsolinscen


Purpose
To obtain solution of current stochastic problem after optimization.
Synopsis
getsol(x: spvar): real
getsolatnode(x: spvar, n: integer): real
getsolinscen(x: spvar, s: integer): real
Arguments
stochastic variable
node number belonging to {1..Nt}, where x belongs to stage t, and Nt is number of nodes in stage t
scenario number belonging to {1..S}, where S is number of scenarios
Return value
current solution value
Further information
1. This procedure should be called after optimization.
2. x cannot be a fixed variable, and it must participate in current optimization problem.
3. If x belongs to first stage then solution can be obtained by calling getsol.
4. For Expected Value problems solution can be obtained by calling getsol.
5. For an instance of the problem in a scenario or at a node in a scenario tree, solution can be obtained by calling getsol.
6. For a node based problem, solution can be obtained by calling getsolatnode.
7. For a scenario based problem, solution can be obtained by calling getsolinscen.
Related topics
getobjval, spgetobjconst, speval, minimize, minimize, getrcost, getrcostatnode, getrcostinscen, getdual, getdualatnode, getdualinscen, getslack, getslackatnode, getslackinscen


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.