Page 1 of 1

Vensim-Integration-with-External-Applications

Posted: Tue Apr 16, 2024 5:22 pm
by ashishdfz1
Hi all,

In the Vensim picture given below, I am designing simulation based on below conditions
1. RIVER1 is filling water into DAM with a RATE R1
2. RIVER2 is filling water into DAM with a RATE R2
3. DAM is supplying water to CANAL1 with a RATE R3
4. DAM is supplying water to CANAL2 with a RATE R4
5. Rates of Inflow R1 and R2 will be supplied by IoT system based of current weather data, means, Rate R1 and R2 are dynamic, will get change every hour by IoT system.
6. Based on the Rate R1 and R2 we will make simulation and detect how soon DAM will fill and we need to adjust OUTFLOW Rates R3 and R4.

PROBLEM:
- How I can achieve this objective to supply this data ( Rates R1, R2, R3 and R4) to Vensim Model dynamically (as they are changing every hour) to generate simulations?
- Is there any API functionality in Vensim to talk to external automated systems ? If yes, which version have it and where I can find more information ?

Please find the attachment for Stock and flow image attached as "River-DAM-Canal-Model.png"

Re: Vensim-Integration-with-External-Applications

Posted: Wed Apr 17, 2024 7:18 am
by Administrator
ashishdfz1 wrote: Tue Apr 16, 2024 5:22 pm- How I can achieve this objective to supply this data ( Rates R1, R2, R3 and R4) to Vensim Model dynamically (as they are changing every hour) to generate simulations?
You would need Vensim PLE+, Pro or DSS to link to external data. One way you can do it in PLE is to use a lookup table.
ashishdfz1 wrote: Tue Apr 16, 2024 5:22 pm- Is there any API functionality in Vensim to talk to external automated systems ? If yes, which version have it and where I can find more information ?
You would probably need Vensim DSS. With DSS, you can write functions in C/C++ to talk to other applications. Linking to ODBC data sources is also possible in DSS.