I'm creating a program in Visual Basic to run a set of simulations in Vensim througth dll.
Is there a way to compile the model through the dll and so to run the compiled model? In this case can you send me the code?
In fact, if i run the model throught the command "RUN|o", the simulation goes very slowly.
thanks,
Alessandro
[Edited on 9-17-2004 by kappe_79]
compile
-
- Super Administrator
- Posts: 4832
- Joined: Wed Mar 05, 2003 3:10 am
Have a look at the Vensim documentation for compiling models
http://www.vensim.com/documentation/vensim.htm
It is in the DSS reference supplement, chapter 10.
You need a C compiler on your machine, the compilation process creates a DLL, Vensim then calls that.
Hope this helps,
Tony.
http://www.vensim.com/documentation/vensim.htm
It is in the DSS reference supplement, chapter 10.
You need a C compiler on your machine, the compilation process creates a DLL, Vensim then calls that.
Hope this helps,
Tony.
i have read the chapter 10. My mdl.bat is already modified to use the compiler (visual studio). Is in this case the compilation made automatically?
I have not understand the section "compiled simulation and the vensim DLL". Do I have to change the mdl so to make the request sim32.dll (instead of sim.dll)?
thanks
I have not understand the section "compiled simulation and the vensim DLL". Do I have to change the mdl so to make the request sim32.dll (instead of sim.dll)?
thanks
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm