checktree: Check the tree structure implied by a scenario tree nodal...

View source: R/checktree.R

checktreeR Documentation

Check the tree structure implied by a scenario tree nodal partition matrix.

Description

Returns a plot showing the nodal structure (not values) of a scenario tree defined using a scenario tree nodal partition matrix.

Usage

checktree(treeStruct)

Arguments

treeStruct

Matrix defining the nodal structure of the tree.

Value

Returns a plot of the scenario tree structure implied by the input nodal partition matrix.

References

Dupacova, Jitka, Giorgio Consigli, and Stein W. Wallace. "Scenarios for multistage stochastic programs." Annals of operations research 100.1-4 (2000): 25-53.

Examples

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)

swd-turner/scenario documentation built on May 11, 2022, 10:20 a.m.