fail {WaMaSim} | R Documentation |
Model failures of the network
Description
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.
Usage
fail(state, prob.failure)
Arguments
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.
|
Value
inventory with new failures
Author(s)
Andreas Scheidegger
[Package WaMaSim version 1.0.0 Index]