Analytic lookups? (Functions)
Posted: Tue Jul 15, 2008 8:52 pm
In order to make some diagrams look "pretty", I'm wondering if there is a way to define analytic functions like we can define lookup tables. For instance, it is rather easy to:
TableFunction1 = [set of points defined by user in Vensim Equation Editor]
TableFunction2 = [set of points defined by user in Vensim Equation Editor]
Variable1 = IF THEN ELSE (switch = 1, TableFunction1(input), TableFunction2(input))
Note: Variable1 only has three arrows coming into it. Clean diagram.
Is there away to have to substitute analytic functions in place of the Table functions? I tried Macros but I would like to use SyntheSim on some of the function parameters.
Example (if this exists, it might like):
Function1 (input)= Input * param1 + param2^param3
Function2 (input)= Input * param1 + param4^param5
Variable1 = IF THEN ELSE (switch = 1, Function1(input), Function2(input))
The key would be that param1, param2, could be manipulated in a Sketch view. And Variable1 still only has three arrows coming into it because the Functions are defined in a sketch elsewhere. I think PowerSim can do this easily. Can Vensim?
TableFunction1 = [set of points defined by user in Vensim Equation Editor]
TableFunction2 = [set of points defined by user in Vensim Equation Editor]
Variable1 = IF THEN ELSE (switch = 1, TableFunction1(input), TableFunction2(input))
Note: Variable1 only has three arrows coming into it. Clean diagram.
Is there away to have to substitute analytic functions in place of the Table functions? I tried Macros but I would like to use SyntheSim on some of the function parameters.
Example (if this exists, it might like):
Function1 (input)= Input * param1 + param2^param3
Function2 (input)= Input * param1 + param4^param5
Variable1 = IF THEN ELSE (switch = 1, Function1(input), Function2(input))
The key would be that param1, param2, could be manipulated in a Sketch view. And Variable1 still only has three arrows coming into it because the Functions are defined in a sketch elsewhere. I think PowerSim can do this easily. Can Vensim?