getslack, getslackatnode, getslackinscen


Purpose
To obtain slack of current stochastic problem after optimization.
Synopsis
getslack(c: splinctr): real
getslackatnode(c: splinctr, n: integer): real
getslackinscen(c: splinctr, s: integer): real
Arguments
stochastic linear constraint
node number belonging to {1..Nt}, where c 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
slack
Further information
1. This procedure should be called after optimization.
2. c cannot be a hidden contraint, and it must participate in current optimization problem.
3. If c belongs to first stage then dual can be obtained by calling getdual.
4. For Expected Value problem, dual can be obtained by calling getdual.
5. For an instance of the problem in a scenario or at a node in a scenario tree, dual can be obtained by calling getdual.
6. For a node based problem, dual can be obtained by calling getdualatnode.
7. For a scenario based problem, dual can be obtained by calling getdualinscen.
Related topics
getobjval, spgetobjconst, speval, minimize, minimize, getrcost, getrcostatnode, getrcostinscen, getsol, getsolatnode, getsolinscen, getdual, getdualatnode, getdualinscen


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