Search found 42 matches
- Fri Sep 03, 2010 4:21 pm
- Forum: Vensim
- Topic: Call vensim
- Replies: 91
- Views: 55703
- Fri Sep 03, 2010 10:04 am
- Forum: Vensim
- Topic: Call vensim
- Replies: 91
- Views: 55703
Hi Bob Thanks for your suggestion. However, I installed both Model reader and DSS respectively on C drive, under 'Vensimfolder'. After that I modefied the path but it is showing the same problem like before. function loadModel(testlink) hfile=['C:\Vensimfloder\dll\Vendll.h']; loadlibrary('VenDLL32',...
- Thu Sep 02, 2010 8:24 am
- Forum: Vensim
- Topic: Call vensim
- Replies: 91
- Views: 55703
- Thu Sep 02, 2010 7:48 am
- Forum: Vensim
- Topic: Call vensim
- Replies: 91
- Views: 55703
I am having moe or less same problem like ''ahmadi2010''.' I tried to open Vensim model from MATLAB by : function loadModel(testlink) hfile=['C:\Program Files\Vensim\Vensim\dll\Vendll.h']; loadlibrary('VenDLL32',hfile); str=('SPECIAL>loadModel|testlink.vpm') calllib('VenDLL32','vensim_command',str);...
- Wed Sep 01, 2010 11:37 am
- Forum: Vensim
- Topic: Call MATLAB function from Vensim(Vnext.c)
- Replies: 8
- Views: 5097
Thanks Bob, for your unconditional support. I am very much surprised on the performance of FIND ZERO function. The above 3 equations are non-linear but not very complex. As per the advice of Tomfid, I thought that it would be an average catagory non linear equation solver like 'fsolve' of MATLAB. Bu...
- Tue Aug 31, 2010 6:02 pm
- Forum: Vensim
- Topic: Call MATLAB function from Vensim(Vnext.c)
- Replies: 8
- Views: 5097
Hi Bob Thanks for your response, especially at this curtail moment. Actually today is the last day for me to decide whether I will be using FIND ZERO function or not. I just stuck in following your instruction, may be due to the lack of knowledge in Vensim. I tried to solve a simple problem just to ...
- Mon Aug 30, 2010 5:55 pm
- Forum: Vensim
- Topic: Call MATLAB function from Vensim(Vnext.c)
- Replies: 8
- Views: 5097
- Sun Aug 29, 2010 11:29 pm
- Forum: Vensim
- Topic: Call MATLAB function from Vensim(Vnext.c)
- Replies: 8
- Views: 5097
Thanks for your valuable suggestion. I am trying to solve a system of nonlinear equations for my reseach purpose. It has 26 variables and 33 parameter values and these parameter values are time dependent. It would be very helpful if you can please show me how to write a simple problem, so that I can...
- Sun Aug 29, 2010 8:27 am
- Forum: Vensim
- Topic: Call MATLAB function from Vensim(Vnext.c)
- Replies: 8
- Views: 5097
Call MATLAB function from Vensim(Vnext.c)
Hi I need to call 'fsolve' function of MATLAB in my Vensim (Venext.c) file. Actually I am using external function facilities of Vensim to do some optimization. Previously I was working with IMSL library but it seems very difficult now a days. Therefore I like to use 'fsolve ' function in my Vensim m...
- Tue Jun 22, 2010 8:37 am
- Forum: Vensim
- Topic: data storage
- Replies: 8
- Views: 5302
- Tue Jun 08, 2010 4:43 pm
- Forum: Vensim
- Topic: External Function
- Replies: 20
- Views: 11930
- Tue Jun 08, 2010 12:41 am
- Forum: Vensim
- Topic: External Function
- Replies: 20
- Views: 11930
- Tue Jun 08, 2010 12:38 am
- Forum: Vensim
- Topic: External Function
- Replies: 20
- Views: 11930
Hi I am trying to use, external functions of VENSIM to solve nonlinear series of equation, which consist of 26 variables and 33 constants. I used Visual Studio 2008 and IMSL library function to calculate the roots. The program works fine in Visual Studio environment. However, I am having problem whi...
- Thu May 13, 2010 6:22 am
- Forum: Vensim
- Topic: External Function
- Replies: 20
- Views: 11930
- Wed May 12, 2010 10:03 pm
- Forum: Vensim
- Topic: External Function
- Replies: 20
- Views: 11930
Hi Tom Thanks for your suggestion. However, I am still not clear, how can I get more than one variable from the external function, as the usual way of calling an external function is Y= Externalfunction (x1,x2,...xn). In case of having all the route, how should I modify my equation. In the conventio...
- Wed May 12, 2010 10:23 am
- Forum: Vensim
- Topic: External Function
- Replies: 20
- Views: 11930
External Function
HI I am trying to work out an optimization problem, by solving systems of non-linear equations. I know that I have to use external function facilities. But I have 27 nonlinear equations to solve. So, I may have more than 27 optimized variables & parameters to return in Vensim ( in every time ste...
- Sun Mar 07, 2010 10:05 am
- Forum: Vensim
- Topic: data storage
- Replies: 8
- Views: 5302
data storage
Lets say I need to calculate the rate of change for any variables, but I don't know how to store data from the previous time step (T-1)? Can anybody help me please?