.cin for set of constant values

Use this forum to post Vensim related questions.
Post Reply
geo_curious
Senior Member
Posts: 139
Joined: Tue Mar 14, 2023 2:05 am
Vensim version: DSS

.cin for set of constant values

Post by geo_curious »

Hi,
I am looking through the help docs and the .cin explanation omits a discussion of how to create a .cin file. I am in the simulation control dialog and the Constants and lookups field has a +. If I click that, it tries to open a .cin, not create one. Is there an example .cin of a simple set of values to change for a single constant?

For example, when I start a simulation I would like Vensim to run through 4 values for 1 constant. This is effectively 4 different simulations in series or parallel (I am not sure how Vensim will handle that) and I want to do it with 1 run (all variations begin again from time=0).

Constant = 1.5
Constant = [1.5,2,2.5,3]

There is probably a simple explanation to this one. Any pointers?
Administrator
Super Administrator
Posts: 4844
Joined: Wed Mar 05, 2003 3:10 am

Re: .cin for set of constant values

Post by Administrator »

Click File->New text file to create a CIN file. But I'm not sure this is what you need.

Not sure if you are on the latest version of Vensim. Here are some options.

1. Run configurations. Beside the simulate button, you'll see a small triangle. Click this, you can now set up four scenarios and have a different constant for each run.

2. Use the action recorder. Under the tools menu, there is an action recorder tool. Make sure it's running, and click the sim setup button. Now set your runname and constant value, then hit simulate. The action recorder will contain a list of the commands Vensim has used. You can either replicate these for additional runs or go through the process of sim setup again.

3. Command scripts. The action recorder will give you the set of commands to run a simulation. You can save these to a .cmd file, and run as many as you need.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply