Skip to contents

Compute indicator of efficiency for a case

Usage

compute_efficiency(
  case,
  reference = getOption("floodam.cba")[["reference"]],
  rate = getOption("floodam.cba")[["rate"]],
  type = "automatic"
)

Arguments

case

An object of class 'Case'.

reference

String, designing the reference project.

rate

String, designing which type of rate should be used.

type

String, does "simple" or "probabilistic" calendar shall be used.

Value

Matrix with synthetic indicators

Author

Frédéric Grelot, frederic.grelot.1994_cran@m4x.org

Examples


case_complete = import_case(system.file("extdata", "case", "complete.ods", package = "floodam.cba"))
#> import Case from /tmp/RtmpjNcOmL/temp_libpath10f482a1651db/floodam.cba/extdata/case/complete.ods
#>  ... done
compute_efficiency(case_complete)
#>          complete reinforcement
#> npv   1728.395002   3987.806119
#> bcr      1.142583      1.627997
#> h_min   31.000000     12.000000
case = import_case(system.file("extdata", "case", "simple.ods", package = "floodam.cba"))
#> import Case from /tmp/RtmpjNcOmL/temp_libpath10f482a1651db/floodam.cba/extdata/case/simple.ods
#>  ... done
compute_efficiency(case)
#>           complete          dam          dyke
#> npv   77715.208722 2.160585e+05 -4.180933e+04
#> bcr       1.217861 2.340052e+00  7.991194e-01
#> h_min    35.000000 1.400000e+01           Inf