getrcost, getrcostatnode, getrcostinscen
PurposeTo obtain reduced cost of current stochastic problem after optimization.Synopsisgetrcost(x: spvar): realgetrcostatnode(x: spvar, n: integer): realgetrcostinscen(x: spvar, s: integer): realArguments
x stochastic variable n node number belonging to {1..Nt}, where x belongs to stage t, and Nt is number of nodes in stage t s scenario number belonging to {1..S}, where S is number of scenariosReturn valuereduced costFurther information1. 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 topicsgetobjval, 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.