about model time step setting and function use

Use this forum to post Vensim related questions.
Post Reply
kai wang
Member
Posts: 25
Joined: Thu Dec 06, 2012 5:35 pm
Vensim version: DSS

about model time step setting and function use

Post by kai wang »

Hi Tony,

I have two questions about model time step and a function "GET XLS DATA".

1. I set annual as my model time step (figure 1 left), and run the game for one time step (2014-2015), why the model shows some sub-annual time (such as 2014.20, 2014.40) in the time axis (figure 1 right)? How can I set the model to show 2014 and 2015 only.

2. I am trying to use the function "GET XLS DATA" to read some time series data from an excel file into the model. When I run the model in the "GAME" format, the model results (figure 2 up) does not match the values in the excel file (figure 2 down). I also attached a simple example to show this. Run the model "test.mdl" in the GAME format, and compare the results with excel file, you will find the problem showing in figure 2.

Vensim version: DSS 6.1C
Computer system: Windows 7

Many thanks!

Kai
Attachments
simple example.rar
simple example
(6.21 KiB) Downloaded 226 times
figure 2
figure 2
test results and excel values.jpg (108.01 KiB) Viewed 4056 times
figure 1
figure 1
model settings and result.jpg (128.24 KiB) Viewed 4056 times
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: about model time step setting and function use

Post by tomfid »

I think what you're seeing is a consequence of the settings in the Scaling tab of the Control Panel. however, I'm not sure you'll be able to make a choice that's satisfactory at all possible times. Is this a Venapp or a regular model?

I'll take a look at your example.
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: about model time step setting and function use

Post by tomfid »

There does appear to be a storage or display issue with the GET XLS variable in gaming mode. However, if you add an auxiliary, b=a, it takes on the correct values, so I think the underlying sim is OK. I'll investigate further.
kai wang
Member
Posts: 25
Joined: Thu Dec 06, 2012 5:35 pm
Vensim version: DSS

Re: about model time step setting and function use

Post by kai wang »

Thanks for your reply.

About the first question, I tried to change settings in the Scaling tab of the Control Panel. But the graph still shows me the time like 2014.20, and 2014.40. It is a regular model developed by Vensim DSS.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: about model time step setting and function use

Post by Administrator »

Go to the control panel and set the number of horizontal divisions.

Next, right click on the graph tool, and where it says "X Divisions", select "As Global".

That should fix things.

Tony.
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
kai wang
Member
Posts: 25
Joined: Thu Dec 06, 2012 5:35 pm
Vensim version: DSS

Re: about model time step setting and function use

Post by kai wang »

Hi Tony,

It works, many thanks. Sorry again for my mistake about the license. It will not happen again.

Best,
Kai
Post Reply