Purpose
It is used for creating a scenario tree by progressively adding children to current node.
Synopsis
spaddchildren(t: integer, n: integer, C: integer)
Arguments
t
|
stage number belonging to {1..T}, where T is number of stages
|
n
|
node number belonging to {1..Nt}, where Nt is number of nodes in stage t
|
C
|
number of Children nodes to be added to nth node in the tth stage
|
Example
Ex: create a 3-stage binary tree
spaddchildren(1,1,2)
spaddchildren(2,1,2)
spaddchildren(2,2,2)
Further information
1. All sprands must have been associated with stages before creating scenario tree.
2. The first call to spaddchildren() must begin with t=n=1 in order to facilitate proper initilization.
3. Tree can be generated by setting values of sprands in the tree and probabilities of visting nodes or scenarios, followed by
calling spgentree().
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.