checktree | R Documentation |
Returns a plot showing the nodal structure (not values) of a scenario tree defined using a scenario tree nodal partition matrix.
checktree(treeStruct)
treeStruct |
Matrix defining the nodal structure of the tree. |
Returns a plot of the scenario tree structure implied by the input nodal partition matrix.
Dupacova, Jitka, Giorgio Consigli, and Stein W. Wallace. "Scenarios for multistage stochastic programs." Annals of operations research 100.1-4 (2000): 25-53.
treeStruct <- rbind(c(1, 1, 1, 1, 1), c(2, 2, 7, 7, 11), c(3, 5, 8, 8, 12), c(4, 6, 9, 10, 13) ) checktree(treeStruct)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.