Loading two Vensim models at once with the DLL in separate threads

Use this forum to post Vensim related questions.
Post Reply
pbreach
Member
Posts: 29
Joined: Mon Oct 26, 2015 5:23 pm
Vensim version: DSS

Loading two Vensim models at once with the DLL in separate threads

Post by pbreach »

I stumbled upon this link in the Vensim Help Docs: https://www.vensim.com/documentation/in ... hanges.htm. I'm interesting in the following statement:
DLL Contexts

The Vensim DLL is now available in a configuration that allows for multiple context definitions. This is very useful to support a server environment in which multiple models may need to be open or multiple copies of a given model may need to be open for different users. Each context can be executed independently using different threads so that actions may be performed in one context while another may be busy performing a simulation. See the Vensim DSS Reference Supplement for details.
Are there any details on how this works/can be used? I went to the "Vensim DSS Reference Supplement" for details but found none. As far as I know only one model could be loaded at a time, but this would be useful in that two models could be run separetly and communicate with each other at certain intervals using the DLL without having to come up with a hacky solution.

Any advice or even an example as to how this works would be really useful.
tomfid
Administrator
Posts: 3994
Joined: Wed May 24, 2006 4:54 am

Re: Loading two Vensim models at once with the DLL in separate threads

Post by tomfid »

This is only available in the multicontext .dll and Linux shared library, which are designed for high-throughput server applications like Forio. Contact us at vensim@vensim.com if you're interested in licensing.
pbreach
Member
Posts: 29
Joined: Mon Oct 26, 2015 5:23 pm
Vensim version: DSS

Re: Loading two Vensim models at once with the DLL in separate threads

Post by pbreach »

i guess I'll get to work on my hacky solution...
Post Reply