Search found 42 matches

by khalediwm
Fri Sep 03, 2010 4:21 pm
Forum: Vensim
Topic: Call vensim
Replies: 91
Views: 55703

Could Bob or anyone please help me to in resolving this issue? Any help is highly appreciated as I am stuck in linking Matlab and Vensim for more than a week.
by khalediwm
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',...
by khalediwm
Thu Sep 02, 2010 8:24 am
Forum: Vensim
Topic: Call vensim
Replies: 91
Views: 55703

Sorry, I just forgot the attachment
by khalediwm
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);...
by khalediwm
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...
by khalediwm
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 ...
by khalediwm
Mon Aug 30, 2010 5:55 pm
Forum: Vensim
Topic: Call MATLAB function from Vensim(Vnext.c)
Replies: 8
Views: 5097

I am eagerly waiting for your response, as I am fully stuck with my research at this point. It would be highly appreciated if any of you please show me a simple example of using FIND ZERO function. I couldn't get clear idea after looking at the Vensim Manual.
by khalediwm
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...
by khalediwm
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...
by khalediwm
Tue Jun 22, 2010 8:37 am
Forum: Vensim
Topic: data storage
Replies: 8
Views: 5302

Hi Bob
I tried with your way, as well as followed the link that you mentioned. None of theme worked for me. I am attaching my file for your review.

Thanking you in advance

Khaled

[Edited on 6-22-2010 by khalediwm]
by khalediwm
Tue Jun 08, 2010 4:43 pm
Forum: Vensim
Topic: External Function
Replies: 20
Views: 11930

Thanks Bob, for your advice and I will try my best. Could you please let me know, how to write an external function, with such arrays, as I mentioned to you before that I am not clear about the values under "COSINE" function? I don't know how you choose those 0 and 1 ? If you have any exam...
by khalediwm
Tue Jun 08, 2010 12:41 am
Forum: Vensim
Topic: External Function
Replies: 20
Views: 11930

another file
by khalediwm
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...
by khalediwm
Thu May 13, 2010 6:22 am
Forum: Vensim
Topic: External Function
Replies: 20
Views: 11930

Hi Tom
Thanks for your suggestion. I will try to implement it.
by khalediwm
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...
by khalediwm
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...
by khalediwm
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?