replace.n.highest.risk: Rehabilitation strategy: replace the 'n' pipes with the...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/strategies.r

Description

Strategy to prioritize pipes with the highest risk. Pipes are only replaced if the budget remains positive.

Usage

1
replace.n.highest.risk(state, n, prob.failure, max.costs = Inf)

Arguments

state

a state list

n

number of highest risk pipes to replace

prob.failure

failure rate function. Typically the same as passed to simulate_network.

max.costs

maximal amount of money allowed to be spent on this strategy

Details

The risk is defined as the product of the failure probability in the next year and the expected failure costs.

Value

a state list

Author(s)

Andreas Scheidegger

See Also

replace.n.oldest, replace.n.random, replace.older.than, replace.more.failures.than, do.nothing

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## define a strategy function that can be passed to simulate_network():
mystrategy <- . %>% replace.n.highest.risk(n=2, prob.failure=prob.failure.exp, max.costs=30000)

## 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)

scheidan/WaMaSim documentation built on May 2, 2020, 11:01 a.m.