fail {WaMaSim} | R Documentation |
Allows pipes to randomly fail. If a failure occurs, the failure costs (repair + damage) are calculated and subtracted from the budget. Note, that this may result in a negative budget.
fail(state, prob.failure)
state |
a state object |
prob.failure |
function returning the annual failure rate; i.e. the probability of a
pipe failing in the current year of simulation.
|
inventory with new failures
Andreas Scheidegger