Search found 22 matches

by olive
Mon Jul 16, 2012 3:09 pm
Forum: Vensim
Topic: Getting an array from Vensim to Excel
Replies: 6
Views: 7344

Re: Getting an array from Vensim to Excel

Hi Tom, Thank you very much for your email. I still have a few questions though :/ 1) venVarOffset[0] = vensim_get_varoff("VensimVariable[ID1]") or venVarOffset[0] = vensim_get_varoff("VensimVariable[ID2]") etc. always give me venVarOffset[0] = 779. I guess I still don't understa...
by olive
Fri Jul 13, 2012 11:19 pm
Forum: Vensim
Topic: Getting an array from Vensim to Excel
Replies: 6
Views: 7344

Re: Getting an array from Vensim to Excel

Hi, Thank you for your response. I have tried the following: resultVenVar = vensim_get_varoff("VensimVariable[ID]") MsgBox (resultVenVar) The message box shows "779". I'm trying to understand the meaning of that number. Does it mean that I have 780 terms in this array? Also is th...
by olive
Fri Jul 13, 2012 10:22 pm
Forum: Vensim
Topic: Getting an array from Vensim to Excel
Replies: 6
Views: 7344

Re: Getting an array from Vensim to Excel

Hi, Thank you for your response. I have tried the following: resultVenVar = vensim_get_varoff("VensimVariable[ID]") MsgBox (resultVenVar) The message box shows "779". I'm trying to understand the meaning of that number. Does it mean that I have 780 terms in this array? Also is th...
by olive
Thu Jul 12, 2012 10:01 pm
Forum: Vensim
Topic: Getting an array from Vensim to Excel
Replies: 6
Views: 7344

Getting an array from Vensim to Excel

Hi, I'm trying to retrieve an array from Vensim to Excel. I can retrieve single values in Excel using: 'result = vensim_get_data("game.vdf", "VensimVariable", "Time", rval(1), tval(1), TIMEVensimVensim) 'For i = 1 To result 'Sheet5.Range("A3").Offset(i, 0) = t...
by olive
Wed Jun 06, 2012 3:16 pm
Forum: Vensim
Topic: Running Vensim from Excel
Replies: 9
Views: 9949

Re: Running Vensim from Excel

That makes sense. Thank you very much for your help!
by olive
Mon Jun 04, 2012 8:57 pm
Forum: Vensim
Topic: Running Vensim from Excel
Replies: 9
Views: 9949

Re: Running Vensim from Excel

Hi Tony, It still doesn't work on my end... It keeps pulling the value that is in the model (20), not the one I'm trying to pass (3). Also, how do you know how many times you need to move the game forward, in other words, why do you need so many GAME>GAMEON? Thank you very much for your help, Olivia
by olive
Mon Jun 04, 2012 5:42 pm
Forum: Vensim
Topic: Running Vensim from Excel
Replies: 9
Views: 9949

Re: Running Vensim from Excel

Hi,
Were you able to identify where the problem might coming from? I'm still unsuccessful at passing a value to a gaming variable from Excel... :/
Thank you,
Olivia
by olive
Thu May 31, 2012 2:20 pm
Forum: Vensim
Topic: Running Vensim from Excel
Replies: 9
Views: 9949

Re: Running Vensim from Excel

Here it is! Thank you very much for your help!
by olive
Thu May 31, 2012 1:05 pm
Forum: Vensim
Topic: Running Vensim from Excel
Replies: 9
Views: 9949

Re: Running Vensim from Excel

1. Yes, ludo is a gaming variable

2. It doesn't work :( ludo keeps the initial value I gave it in the model (20)
by olive
Thu May 31, 2012 12:14 am
Forum: Vensim
Topic: Running Vensim from Excel
Replies: 9
Views: 9949

Running Vensim from Excel

Good evening, I have a very simple model that I'm trying to run from Excel. I can get the values of the variables from Vensim to Excel without any problem but for some reason I cannot pass a new value to a Vensim variable from Excel. The variable is defined in Vensim as a Gaming variable. Here is th...
by olive
Sun Dec 04, 2011 4:43 pm
Forum: Vensim
Topic: Screening test - Sensitivity analysis
Replies: 4
Views: 5523

Re: Screening test - Sensitivity analysis

Hi,
I cannot find these files or any .tab files for that matter. The only files created are .lst, .vdf, and .vsc
Am I doing anything wrong or missing something? I can see the confidence bounds when I click on the variables of interest but that's it.
Olivia
by olive
Sun Dec 04, 2011 3:11 am
Forum: Vensim
Topic: Screening test - Sensitivity analysis
Replies: 4
Views: 5523

Screening test - Sensitivity analysis

Good evening, I was wondering if screening tests could be conducted in Vensim. I've run a sensitivity testing as illustrated in the user manual but I would be interested in knowing for each variable I select, what other variables have the strongest impact on its variability. Can I conduct such analy...
by olive
Fri Oct 14, 2011 2:23 am
Forum: Vensim
Topic: Initializing a variable using Matlab
Replies: 2
Views: 3358

Re: Initializing a variable using Matlab

Yes it works :) I set 'Number of arriving aircraft' as CONSTANT.
Thank you very much,
Olivia
by olive
Fri Oct 14, 2011 1:44 am
Forum: Vensim
Topic: Initializing a variable using Matlab
Replies: 2
Views: 3358

Initializing a variable using Matlab

Good evening, I would like to run the same model under a different set of initial variables. I have a variable 'Number of arriving aircraft' of Type Level-Normal. Its equation is INTEG(Annual traffic increase) and its initial value is a gaming variable called 'Initial Number of arriving aircraft'. I...
by olive
Fri Oct 07, 2011 10:04 pm
Forum: Vensim
Topic: Passing a function from Matlab
Replies: 5
Views: 6325

Re: Passing a function from Matlab

The reason I wanted to be able to pass 'RANDOM UNIFORM (10, 50, 0)' directly is because I have different distributions stored in a database for different variables and for different time intervals, and I was thinking that just passing the result of my sql query directly into SIMULATE>SETVAL would be...
by olive
Fri Oct 07, 2011 8:47 pm
Forum: Vensim
Topic: Passing a function from Matlab
Replies: 5
Views: 6325

Re: Passing a function from Matlab

Hi, I'm not passing a function per se, I'm passing a string that corresponds to the way Vensim defines a random uniform distribution. In other words, instead of having growth rate (my gaming variable) equal to 3, I want growth rate to be equal to RANDOM UNIFORM (10, 50, 0). And I want to do that fro...
by olive
Thu Oct 06, 2011 8:23 pm
Forum: Vensim
Topic: Passing a function from Matlab
Replies: 5
Views: 6325

Passing a function from Matlab

Good afternoon, I can successfully pass a value to a variable using Matlab but somehow I'm having a hard time passing a function (like RANDOM UNIFORM). I tried this (see below), and other things but i can't get it to work. Could somebody help me? GR = 'RANDOM UNIFORM (10, 20, 0)'; %GR is a GAMING va...
by olive
Tue Oct 04, 2011 9:34 pm
Forum: Vensim
Topic: Running games from matlab
Replies: 4
Views: 5503

Re: Running games from matlab

I managed to get my code to run the way I wanted. However I would still be interested in hearing your opinion about the use of GAME>GAMEON vs vensim_continue_simulation, etc.
Thank you very much!
Kind regards,
Olivia
by olive
Tue Oct 04, 2011 8:06 pm
Forum: Vensim
Topic: Running games from matlab
Replies: 4
Views: 5503

Re: Running games from matlab

Yes, Growth rate is a gaming parameter. In the model, it is defined as Auxiliary -> Gaming. Growth rate = GAME(30). however I want to be able to change that value at different time intervals (year) using Matlab.
by olive
Tue Oct 04, 2011 7:50 pm
Forum: Vensim
Topic: Running games from matlab
Replies: 4
Views: 5503

Running games from matlab

Good afternoon, I'm trying to run games from matlab and I'm a little bit confused as to the right function to call and the difference between them... The Vensim DSS Reference Supplement gives examples (p110 and 111 using VB) with GAME>GAMEINTERVAL, GAME>GAMEON, vensim_continue_simulation, vensim_sta...
by olive
Wed Sep 14, 2011 7:21 pm
Forum: Vensim
Topic: Call vensim
Replies: 91
Views: 118421

Re: Call vensim

Great! Thank you very much!
Kind regards,
Olivia
by olive
Tue Sep 13, 2011 9:58 pm
Forum: Vensim
Topic: Call vensim
Replies: 91
Views: 118421

Re: Call vensim

Hi, I have just seen your last post about loading a Vensim model into Matlab. I'm currently trying to achieve the same thing and noted your comment about the change in input arguments. I'm new to Vensim and have no experience using Matlab to interact with other applications. However, for my current ...