Search found 4584 matches

by Administrator
Thu Feb 17, 2011 1:10 pm
Forum: System Dynamics Discussion
Topic: Problem in modelling
Replies: 1
Views: 2913

Re: Problem in modelling

If the time step for your model is in days, the following should work. Use the "ORDER NOW FLAG" to trigger the order. Tony. TIME BETWEEN ORDERS = 30 Units : Day ORDER NOW FLAG = IF THEN ELSE ( Time Since Last Order >= TIME BETWEEN ORDERS , 1 , 0 ) Units : DMNL RESET TIME SINCE LAST ORDER =...
by Administrator
Thu Feb 17, 2011 7:49 am
Forum: Vensim
Topic: Using External Functions with the Multicontext DLL
Replies: 7
Views: 6776

Re: Using External Functions with the Multicontext DLL

>> I suspect that the vendlstc.dll file that I am using is from an 5.10d or
>> possibly earlier. Would that cause the problem?
Yes. The version number that the DLL asks for needs to be the same as the one supplied by the external function library (if that makes sense).

Tony.
by Administrator
Wed Feb 16, 2011 7:52 am
Forum: Vensim
Topic: get the values of the Lookup variables
Replies: 2
Views: 1910

Re: get the values of the Lookup variables

You cannot do this at present.

I'll add it to the wish list of things to be able to do though.

Tony.
by Administrator
Wed Feb 16, 2011 7:51 am
Forum: Vensim
Topic: Using External Functions with the Multicontext DLL
Replies: 7
Views: 6776

Re: Using External Functions with the Multicontext DLL

Recent versions of the external function library do not need linking with vensim.lib any more. What exactly is the error you are getting when trying to run a model with external functions? And are you applying a vensim.ini file (that loads the external functions) when loading the multi-context DLL? ...
by Administrator
Tue Feb 15, 2011 11:37 pm
Forum: Vensim
Topic: A problem with V10e
Replies: 2
Views: 4410

Re: A problem with V10e

In the source code, there will be an include line something similar to #include "c:\\program files\\......\\vensim.h" This needs to point to the new vensim.h file installed by 5.10e. In Windows 7, the file is located at something like C:\Documents and settings\User Profiles\Public\Vensim\c...
by Administrator
Mon Feb 14, 2011 6:35 pm
Forum: Welcome and General Information
Topic: How to get automatically loged in as in the older version
Replies: 1
Views: 13293

Re: How to get automatically loged in as in the older versio

I don't think it is possible, but I will have a look at the settings to see if I can do something.

Tony.
by Administrator
Mon Feb 14, 2011 11:33 am
Forum: Sable
Topic: problem using Edit Box
Replies: 1
Views: 3832

Re: problem using Edit Box

This operates in exactly the same way as Vensim does (once the sim is over, everything resets). What you need to do is write the values before the sim starts and then load them back in once it's over. Something like the following commands on a button. SIMULATE>WRITECIN|temp.cin <Run the model here> ...
by Administrator
Mon Feb 14, 2011 7:48 am
Forum: System Dynamics Discussion
Topic: Delay
Replies: 5
Views: 6124

Re: Delay

Are you using Vensim? If yes, there is a good introduction to delays at http://www.vensim.com/documentation/index.html?mgu09_continuous_versus_discrete_delays.htm It includes a link to a model that uses lots of different delay types. Also take a look at the molecules which also have some delay struc...
by Administrator
Sat Feb 12, 2011 6:58 pm
Forum: Vensim
Topic: convert a lookup variable in a game variable
Replies: 6
Views: 3575

Re: convert a lookup variable in a game variable

You cannot change lookup tables during a game/simulation.
by Administrator
Sat Feb 12, 2011 3:02 pm
Forum: Vensim
Topic: convert a lookup variable in a game variable
Replies: 6
Views: 3575

Re: convert a lookup variable in a game variable

You cannot convert lookup variables to game variables.

What are you trying to do and maybe we can help a little better?
by Administrator
Thu Feb 10, 2011 11:56 am
Forum: Vensim
Topic: SIMULATE>SETVAL
Replies: 6
Views: 3035

Re: SIMULATE>SETVAL

You can not do the conversion in Java.

Edit the model in Vensim, and say for example you have a constant called "COST PER WIDGET". Make the equation for this COST PER WIDGET = GAME ( <start constant> ).

Now you will be able to change it during a simulation.
by Administrator
Thu Feb 10, 2011 12:00 am
Forum: Vensim
Topic: SIMULATE>SETVAL
Replies: 6
Views: 3035

Re: SIMULATE>SETVAL

SETVAL will only set constants, so will only work before a simulation starts.

If you want to change the values as the simulation progresses, you need to run it as a game. Have a look at chapter 11 in the user guide, this talks about games.

Tony.
by Administrator
Tue Feb 01, 2011 1:16 pm
Forum: Vensim
Topic: Why is Vensim better than Stella?
Replies: 6
Views: 13305

Re: Why is Vensim better than Stella?

You probably will not get many (if any) answers on this forum regarding Stella, as we are all Vensim users (some of us have experience using Stella, but not many). It might be better to ask at the SD Society forum (http://www.systemdynamics.org/forum) or search through the archives of the SD mailing...
by Administrator
Tue Feb 01, 2011 11:32 am
Forum: Vensim
Topic: Conversion of Stella Models to Vensim and Free vensim models
Replies: 26
Views: 23428

Re: Conversion of Stella Models to Vensim and Free vensim mo

There is a section in the help system about Stella to Vensim conversion. Do a search for Stella. http://www.vensim.com/documentation/index.html?24290.htm I cannot help regarding the free models for K12 science. You could try specifying in a little more detail what you need (I have no idea what K-12 ...
by Administrator
Tue Feb 01, 2011 10:47 am
Forum: Vensim
Topic: distributing Vensim Model reader
Replies: 4
Views: 2755

Re: distributing Vensim Model reader

The only way to do this would be to direct the user to the model reader download, or build a custom installation yourself. Either way, they will need to run an installation of some type. Maybe Forio could do what you need? They can host Vensim simulations, so you could just direct the user to the co...
by Administrator
Mon Jan 31, 2011 7:15 pm
Forum: Vensim
Topic: distributing Vensim Model reader
Replies: 4
Views: 2755

Re: distributing Vensim Model reader

You can do this only with a redistribution kit. But you can give them a copy of the model reader at the same time as your model (and there would be nothing stopping you from developing a custom installation with the model reader embedded). Most things need a reader of some sort installed to view thi...
by Administrator
Mon Jan 31, 2011 9:16 am
Forum: Sable
Topic: unknown source of file written to model dir using command
Replies: 1
Views: 3842

Re: unknown source of file written to model dir using comman

I think when you are running the model, it is saving the run to the model directory. Have you called "SIMULATE>RUNNAME|" and passed in the correct file name (eg, the following instructs the Vensim engine to save the file "run1.vdf" to the "uncertainty" sub-directory) Ca...
by Administrator
Thu Jan 27, 2011 1:27 pm
Forum: Vensim
Topic: Getting the value of time at some specific variable value
Replies: 5
Views: 3287

Re: Getting the value of time at some specific variable valu

Where is the data coming from? If it's Excel, do the calculation in Excel and read it back to Vensim.
by Administrator
Wed Jan 26, 2011 7:57 pm
Forum: Vensim
Topic: Maximum of a variable
Replies: 2
Views: 2289

Re: Maximum of a variable

try

running max of some var =
SAMPLE IF TRUE ( some var > running max of some var , some var , some var )
by Administrator
Mon Jan 24, 2011 3:29 pm
Forum: Vensim
Topic: problem with function get vdf data
Replies: 4
Views: 3061

Re: problem with function get vdf data

This looks like a bug to me.

I've tried it all the ways I can think of and it does not seem to give the slope value.
by Administrator
Mon Jan 24, 2011 12:07 pm
Forum: Vensim
Topic: More than 8 subscripts
Replies: 5
Views: 3094

Re: More than 8 subscripts

Hi, I have a DATA variable XX that is read from an Access database. The table for XX requires 12 subscripts to determine a value, that is value = XX[ sub1, sub2, ...sub12]. The subscripts contain a combination of numeric and literal values. Since Vensim subscripting allows only a max of 8 subscript...
by Administrator
Thu Jan 20, 2011 12:59 pm
Forum: Vensim
Topic: Assigning data to subscript elements
Replies: 14
Views: 8425

Re: Assigning data to subscript elements

Why is everything in the model subscripted with the "P1" element? This is the problem in the model.

Tony.

PS. You really should put dimensions in this model.
by Administrator
Wed Jan 19, 2011 6:07 pm
Forum: Vensim
Topic: Assigning data to subscript elements
Replies: 14
Views: 8425

Re: Assigning data to subscript elements

How about something like FLIGHT ID[FLIGHT] = INITIAL(FLIGHT) FIRST FLIGHT ID AVAILABLE = VMIN ( if then else ( flight slot free[FLIGHT!] = 0 , FLIGHT ID[FLIGHT!] , 9999999 ) ) If there are no flight slots available it will return 9999999, if there is one, it will return the ID number of the subscript.
by Administrator
Tue Jan 18, 2011 8:07 am
Forum: Vensim
Topic: ALLOCATE BY PRIORITY
Replies: 4
Views: 3266

Re: ALLOCATE BY PRIORITY

You haven't really given us anything to advise on. There is little we can do if we just have an equation to work with. Try getting a simple example working first so you understand it, then move towards the example you gave. There is some additional information on it at http://www.vensim.com/allocp.h...
by Administrator
Thu Jan 13, 2011 11:04 am
Forum: System Dynamics Discussion
Topic: What is system dynamics ?
Replies: 2
Views: 3829

Re: What is system dynamics ?

This kind of discussion can go on and on, and I'm sure you can find some info in the SD mailing list archives (http://www.ventanasystems.co.uk/forum/viewforum.php?f=34). But if it helps, I think of SD as trying to understand the "whole system". Mathematics comes into it, but the goal reall...