Learn R Programming

epanet2toolkit (version 1.0.8)

ENgetoption: Retrieve the value of an analysis option.

Description

ENgetoption retrieves the value of one or more particular analysis options.

Usage

ENgetoption(optioncode)

Value

numeric value of the specified analysis option(s).

Arguments

optioncode

A character or integer specifying the option code (see below).

Details

Option codes consist of the following constants:

EN_TRIALS0
EN_ACCURACY1
EN_TOLERANCE2
EN_EMITEXPON3
EN_DEMANDMULT4

Examples

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

Run the code above in your browser using DataLab