ENsetoption: Set the value of a particular analysis option.

Description Usage Arguments Details Examples

View source: R/options.r

Description

ENsetoption sets the value of a particular analysis option.

Usage

1
ENsetoption(optioncode, value)

Arguments

optioncode

An integer or character vector specifying the option

value

numeric

Details

Option codes consist of the following constants:

EN_TRIALS 0
EN_ACCURACY 1
EN_TOLERANCE 2
EN_EMITEXPON 3
EN_DEMANDMULT 4

Examples

1
2
3
4
5
6
7
# 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()

epanet2toolkit documentation built on July 28, 2018, 1:06 a.m.