Page 1 of 1

Alternate Time Base

Posted: Fri Jun 16, 2006 8:52 am
by Seikyo
Is it possible to have the following as a variable standalone on the diagram and the graph will display X-Axis as Year(year)?

Year=TIME BASE(2002,0.00273973)

I used the "Control Panel" option to display the graph with x-axis = Year but it still give me the values in Days but the label is written as "Year(year)"

I tried the other method which using <Time> , Days Per Year=365 to link with this "Year" Variable and it works...

I still wonder...

Posted: Fri Jun 16, 2006 10:15 am
by bob@vensim.com
I am afraid I can't really follow you. If you select year in the Year in the control panel as a time base and graph a variable, say Inventory, it will show the value of inventory and the x axis will run from 2002 to 2003 (if the simulation is 365 days).

If you graph Time it will run from 0 to 365 on the same x axis. Graphic Year will give you values from 2002 to 2003.

Posted: Fri Jun 16, 2006 4:52 pm
by Seikyo
I mean my main Model Setting is graphed in "Days" ranging from 0 to 2190 days. i have created the following variable

days per year=365
Units:day

Initial Time=0
Units:day

Final Time=2190
Units:day

Year=TIME BASE(2002,0.00273973)
Units:year

The year variable is alone in the model without linking any variable to it while days per year and <Time> is linked to the rest of the model. I tried to use the custom graph setting to graph year as the x-axis. It gave me the value from 0 to 2190 but the label is "Year(Year)".

On the other hand, if I create a shadow variable for days per year and <Time> and linked them to this "Year" Variable. I gave me the value as 2002....2008 but the label is "Year" only. [The Method which I seen in this forum <http://www.ventanasystems.co.uk/forum/v ... p?tid=2217>]

I dun understand how come it works the 2nd way.... how come we cannot create "Year=TIME BASE(2002,0.00273973)" instead but need to create a few variables to join them together?

Posted: Sat Jun 17, 2006 10:56 am
by bob@vensim.com
A time base works the way you would expect, not the way you have described. I am not sure what you might have done wrong. I am attathing a simple model that has a year time base to demonstrate how this works.

Posted: Sat Jun 17, 2006 5:25 pm
by Seikyo
Thanks~! I will go try it and see what goes wrong with my model....