spgetparent


Purpose
To get the node number of the parent of a node in a scenario tree.
Synopsis
spgetparent(t:integer, n: integer): integer
Arguments
stage number belonging to {1..T}, where T is the number of stages
node number belonging to {1..Nt}, where Nt is number of nodes in stage t
Return value
node number of parent of nth node in the tth stage
Further information
This function should be called after generating scenario tree.
Related topics
spgetscencount, spgetnodecount, spgetprobcond, spgetprobuncond, spgetprobscen, spgetchildrencount, spgetchild, spprinttree


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