getExpr: Get the expression of an entity

Description Arguments Details

Description

Gets the expression of an entity of the model (set, parameter, variable, constant)

Arguments

object

an optimSMS object

entity

One of the character strings "sets", "vars", "pars", "consts"

getid

Item identifier

setSubEq

Equation id for a set substitution (see details)

...

Open to specific-entity options

Details

For parameters and variables, if we want to substitue the representation of some index, we first create an equation whose only left side term is the set identifier we want to substitute, and whose right side terms is the expression to substite with (e.g., change ‘t’ by ‘t-1’)
For sets, add argument SET = TRUE to get the representation of the set, not the index (e.g. in LaTeX using mathcal typography).


emilopezcano/optimr documentation built on May 16, 2019, 5:08 a.m.