mat <- define_transition(
state_names = c("s1", "s2"),
1 / c, 1 - 1/ c,
0, 1
)
s1 <- define_state(
cost = 234,
utility = 1
)
s2 <- define_state(
cost = 421,
utility = .5
)
define_strategy(
transition = mat,
s1 = s1,
s2 = s2
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.