Skip to contents

Query the metadata attached to a variable when it was declared, as the functions of the same names in ModelingToolkit.

Usage

getdefault(x)

hasdefault(x)

setdefault(x, value)

getguess(x)

hasguess(x)

setguess(x, value)

getbounds(x)

hasbounds(x)

getnominal(x)

hasnominal(x)

setnominal(x, value)

getdescription(x)

hasdescription(x)

isinput(x)

isoutput(x)

isdisturbance(x)

isirreducible(x)

state_priority(x)

istunable(x)

getdist(x)

hasdist(x)

getunit(x)

hasunit(x)

getconnect(x)

hasconnect(x)

getmisc(x)

hasmisc(x)

isparameter(x)

isvariable(x)

isconstant(x)

isbrownian(x)

Arguments

x

A variable.

value

A new value, for the setters.

Value

The metadata value, or a logical for the has/is forms.

Examples

x <- Variable("x", t_nounits, default = 1, bounds = c(0, 2), input = TRUE)
getdefault(x); getbounds(x); isinput(x)
#> [1] 1
#> [1] 0 2
#> [1] TRUE