Description Usage Arguments Value Author(s) See Also Examples
Strategy to replace pipes older than a given age. Pipes are only replaced if the budget remains positive.
| 1 | replace.older.than(state, age, max.costs = Inf)
 | 
| state | a state list | 
| age | pipes older than age are replaced | 
| max.costs | maximal amount of money allowed to be spent on this strategy | 
a state list
Andreas Scheidegger
replace.n.highest.risk,
replace.n.oldest, replace.n.random,
replace.more.failures.than, do.nothing
| 1 2 3 4 5 6 7 8 9 10 11 | ## define a strategy function that can be passed to simulate_network():
mystrategy <- . %>% replace.older.than(age=85, max.costs=20000)
## or define a more complex strategy by combining multiple strategies
## into a prioritized sequence:
mystrategy <- . %>%
  replace.more.failures.than(failures=2) %>%
  replace.n.oldest(n=3) %>%
  replace.n.highest.risk(n=2, prob.failure=prob.failure.exp) %>%
  replace.older.than(age=8) %>%
  replace.n.random(n=4)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.