ENsetoption function

Set the value of a particular analysis option.

Set the value of a particular analysis option.

ENsetoption sets the value of a particular analysis option.

ENsetoption(optioncode, value)

Arguments

  • optioncode: An integer or character vector specifying the option
  • value: numeric

Details

Option codes consist of the following constants:

EN_TRIALS0
EN_ACCURACY1
EN_TOLERANCE2
EN_EMITEXPON3
EN_DEMANDMULT4

Examples

# path to Net1.inp example file included with this package inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp") ENopen( inp, "Net1.rpt") ENgetoption("EN_TRIALS") ENsetoption("EN_TRIALS", 22) ENgetoption("EN_TRIALS") ENclose()