Difference between revisions of "WhatIf"

m (adding doc status category)
Line 1: Line 1:
 
[[category:Evaluation Functions]
 
[[category:Evaluation Functions]
 
+
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
 +
 
==Whatif(e, v, x)==
 
==Whatif(e, v, x)==
  

Revision as of 04:59, 25 April 2007

[[category:Evaluation Functions]

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)
Comments


You are not allowed to post comments.