failure.cost: Calculate the (random) cost of a failure

Description Usage Arguments Value Author(s)

View source: R/core.r

Description

Calculate the costs caused by a failure according to Section 7.1 in "The Water Network Management Challenge", Max Maurer 2017.

Usage

1
failure.cost(diameter, mean = FALSE)

Arguments

diameter

diameter [mm]

mean

boolean. Should the expected cost be returned? Random otherwise.

Value

if mean=FALSE, the failure costs [CHF] are sampled randomly. If mean=TRUE, the expected average costs are returned.

Author(s)

Andreas Scheidegger


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