Vensim Lookup Decision

How do I create a decision type for a VENSIM Lookup variable?
Please help

Hi Arnab,

There’s no built in tools in the interface builder to change a lookup function.

Forio supports changing the values of Vensim Lookup functions using direct API calls to the server, but this requires a more advanced approach using JavaScript programming.

If you’d like to pursue this with some JavaScript, use the RunManager as described in the documentation here:
https://forio.com/epicenter/docs/public/api_adapters/generated/run-manager/

This has a section on setting variables.

For Vensim “LOOKUP” variables, the Epicenter format is an array. Each array element is itself an array with two elements: the x-y pairs from the original Vensim variable. When using the PATCH method, update the entire Epicenter representation (replace all values); you can change the number of ordered pairs if desired. For example:

  • Original Vensim LOOKUP represenation: [(2000,0)-(2010,2)],(2000,1),(2005,.5),(2010,1)
  • Epicenter representation: [ [2000,1], [2005,.5], [2010,1] ]