WhatIf
Whatif(e, v, x)
Returns the value of expression e, after assigning value x to variable v. Whatif helps you explore the effects of a change to a variable, without making it permanent. After evaluation, it returns v back to its original definition, and so makes no permanent change to the model.
- Parameters
- Whatif(e: Expression; v: Variable; x)
WhatifAll(e, varlist, x)
Returns an array of values indexed by varlist, a list of variables, obtained by evaluating expression e, after assigning to each variable in varlist the corresponding value from x. Usually, x is an array indexed by varlist. Use WhatifAll for generating tornado diagrams and other sensitivity analyses when you want to see the effect on e of
after assigning value x to variable v. Whatif helps you explore the effects of a change to a variable, without making it permanent. After evaluation, it returns v back to its original definition, and so makes no permanent change to the model.
- Parameters
- Whatif(e: Expression; v: Variable; x)
Enable comment auto-refresher