Search found 3812 matches

by tomfid
Wed Aug 01, 2012 3:48 pm
Forum: Vensim
Topic: Bug of Model Reader
Replies: 3
Views: 2978

Re: Bug of Model Reader

If your model is small, hitting Model>Simulate may perform a run so fast that you can't see it.

Reading and writing .cin files is not intended to be enabled in the Model Reader.
by tomfid
Tue Jul 31, 2012 7:00 pm
Forum: Vensim
Topic: Problem in DAT2VDF of version 5.11
Replies: 5
Views: 2603

Re: Problem in DAT2VDF of version 5.11

Correct - the problem was introduced in 5.11 and is now fixed in 6.0.
by tomfid
Tue Jul 31, 2012 3:19 pm
Forum: Vensim
Topic: One template model to apply more
Replies: 10
Views: 7301

Re: One template model to apply more

READCIN commands should be sticky, so that the setting applies to subsequent runs. However, issuing another READCIN, or a READRUNCHG or LOADMODEL, will overwrite the READCIN setting.
by tomfid
Tue Jul 31, 2012 2:57 pm
Forum: Vensim
Topic: Scaling Output in Pro with DSS
Replies: 1
Views: 1674

Re: Scaling Output in Pro with DSS

Those are workbench graphs, so they autoscale their ranges. You can set the ranges with a custom graph if you need more control. See the User Guide, Chapter 10 for an example.
by tomfid
Tue Jul 31, 2012 2:54 pm
Forum: Vensim
Topic: Model working directory
Replies: 5
Views: 4366

Re: Model working directory

We haven't changed anything about external functions in 6.0 so whatever worked before should still work - if not, an example might help us diagnose the problem.
by tomfid
Tue Jul 31, 2012 2:52 pm
Forum: Vensim
Topic: Reading Excel data into variables using subscripts and strin
Replies: 5
Views: 3960

Re: Reading Excel data into variables using subscripts and s

You can use string variables to accomplish this. For example: vehicle stock[Region,Mode]:=get xls data('?filename',Region Sheet Name[region],Time Column,Mode Range Start[Mode]) Region Sheet Name[region] :IS: 'regiona' , 'regionb' , ... Time Column :IS: ' ... ' Mode Range Start[mode] :IS: ' ... ' You...
by tomfid
Tue Jul 31, 2012 2:38 pm
Forum: Vensim
Topic: problem with synthesim
Replies: 3
Views: 2596

Re: problem with synthesim

I can reproduce your problem. I'll take a look in the debugger and see if we can issue a fix soon.

Tom
by tomfid
Tue Jul 31, 2012 2:33 pm
Forum: Vensim
Topic: Problem in DAT2VDF of version 5.11
Replies: 5
Views: 2603

Re: Problem in DAT2VDF of version 5.11

Are you using 5.11a? There was a problem (briefly) in one earlier version.

Can you describe the problem?
by tomfid
Tue Jul 31, 2012 2:32 pm
Forum: Vensim
Topic: floating point error
Replies: 7
Views: 4039

Re: floating point error

Generally there should be no differences between integer and floating point operations, because integers are stored as floats (or doubles) in Vensim anyway. However, one possible operation that will cause trouble is a negative number to a non-integral power, like (-7.5)^2.334. In your sensitivity co...
by tomfid
Mon Jul 23, 2012 10:11 am
Forum: Vensim
Topic: One template model to apply more
Replies: 10
Views: 7301

Re: One template model to apply more

You're mixing two approaches here. The .cin file format can be loaded at runtime (Model>Simulate... and name the .cin file on the Changes tab using Load Changes From...). In a venapp, you would use SIMULATE>READCIN and ADDCIN. GET DIRECT calls will execute without specifying a .cin file. Normally th...
by tomfid
Mon Jul 23, 2012 10:02 am
Forum: Vensim
Topic: Vensim v6 crashes when attempting Stochastic Optimisation
Replies: 2
Views: 3350

Re: Vensim v6 crashes when attempting Stochastic Optimisatio

There was a bug in the output dialog in the initial release - you might want to download the latest 6.0.0.1 which was posted last Thursday or so.

Tom
by tomfid
Sat Jul 21, 2012 5:46 am
Forum: Vensim
Topic: Subscript range
Replies: 2
Views: 2129

Re: Subscript range

To simplify maintenance a bit, you can build up your ranges hierarchically, like a : a1,a2 b : (b1-b10) a and b : a, b This really only makes sense if a and b represent subsets of the same kind of thing, like cities in France, and cities in England. If what you're really after is a two-dimensional m...
by tomfid
Sat Jul 21, 2012 5:41 am
Forum: Vensim
Topic: model to show interdependencies
Replies: 10
Views: 5391

Re: model to show interdependencies

In other words

Code: Select all

change in x = x - previous x
previous x = DELAY FIXED(x, TIME STEP, x)
If you're running with Euler integration, you can use SMOOTH in place of DELAY FIXED.
by tomfid
Sat Jul 21, 2012 5:39 am
Forum: Vensim
Topic: One template model to apply more
Replies: 10
Views: 7301

Re: One template model to apply more

The scripted editing of the mdl approach would not work for interactive changes, but if the models can be generated in advance, you could manually package the results. However, this method is cumbersome, so I would not recommend it if there is another viable option. The basic idea is to write some k...
by tomfid
Sat Jul 21, 2012 5:33 am
Forum: Vensim
Topic: One template model to apply more
Replies: 10
Views: 7301

Re: One template model to apply more

Constants that are imported from GET XLS CONSTANTS should work in synthesim, at least in recent versions of Vensim. (For example, running the GET XLS CONSTANTS sample model linked in the Functions section of the Reference Manual, all of the constants are editable). The same should be true for .cin f...
by tomfid
Thu Jul 19, 2012 2:47 pm
Forum: Vensim
Topic: Compiled Model Question...
Replies: 6
Views: 4044

Re: Compiled Model Question...

The other obvious choice is gcc, which works fine on Mac & Linux. I have no personal experience with it on Windows though.
by tomfid
Thu Jul 19, 2012 2:45 pm
Forum: Vensim
Topic: A Bug in VENSIM DSS 6.0?
Replies: 2
Views: 2041

Re: A Bug in VENSIM DSS 6.0?

If it's possible to post a model that demonstrates the error, that's always helpful. Thanks.
by tomfid
Thu Jul 19, 2012 3:22 am
Forum: Vensim
Topic: One template model to apply more
Replies: 10
Views: 7301

Re: One template model to apply more

If I follow your requirements, you'd like to distribute the model without a linked Excel file, by instead embedding the constant/lookup changes in the model. Are you avoiding the Excel linkage to keep things simple (one file), or to avoid the user expense of acquiring Excel, or some other reason? If...
by tomfid
Wed Jul 18, 2012 2:02 pm
Forum: Vensim
Topic: Compiled Model Question...
Replies: 6
Views: 4044

Re: Compiled Model Question...

A likely candidate: on 64 bit systems, viz studio will be in C:\Program Files (x86) rather than C:\Program Files.
by tomfid
Wed Jul 18, 2012 2:00 pm
Forum: Vensim
Topic: Compiled Model Question...
Replies: 6
Views: 4044

Re: Compiled Model Question...

Have you checked http://blog.metasd.com/2011/06/setting-up-vensim-compiled-simulation-on-windows/ ? The most likely error is a path problem - perhaps your MSVC 2010 installed to a path that's a bit different from that in mdl.bat. I'd check that first. Specifically, you need the CL command (cl.exe) t...
by tomfid
Wed Jul 18, 2012 1:57 pm
Forum: Vensim
Topic: Vensim to Excel
Replies: 3
Views: 5823

Re: Vensim to Excel

It would take an external function to do this, which is serious programming.

A simpler approach is to write your output to an Excel-readable file (i.e. use VDF2TAB or VDF2XLS), and link your spreadsheet to that.
by tomfid
Wed Jul 18, 2012 1:54 pm
Forum: Vensim
Topic: Edit equations using scripts
Replies: 7
Views: 4965

Re: Edit equations using scripts

That sample model doesn't use aliases, so you'll need to modify the equations first. For each GET XLS call that references 'simpleInputs.xlsx' you need to replace the reference with an alias like '?input' and then define the alias to point to your spreadsheet by running the model or using Model>Sett...
by tomfid
Mon Jul 16, 2012 5:47 pm
Forum: Vensim
Topic: Not enough memory in Vensim
Replies: 12
Views: 7644

Re: Not enough memory in Vensim

Right. This is probably going to take about 120MB per step. It might run with a long SAVE PER, but that'll make it hard to debug. Sorry.
by tomfid
Mon Jul 16, 2012 4:46 pm
Forum: Vensim
Topic: Not enough memory in Vensim
Replies: 12
Views: 7644

Re: Not enough memory in Vensim

Typically a model that pushes memory limits will execute extremely slowly anyway.

Just how big is this one (as indicated by Model>Settings>Info)?
by tomfid
Mon Jul 16, 2012 4:40 pm
Forum: Vensim
Topic: Getting an array from Vensim to Excel
Replies: 6
Views: 4450

Re: Getting an array from Vensim to Excel

Sorry - hasty code writing without actually compiling never works. The loop should be: venVarOffset[0] = vensim_get_varoff("VensimVariable[ID1]") for ( id=1; id<10; id++ ) venVarOffset[id]=venVarOffset[0]+id; I think it should be the case that vensim_get_varoff("VensimVariable[ID2]&qu...