Simulation time

49 views
Skip to first unread message
Assigned to benoit...@gmail.com by youce...@gmail.com

Chris Harvey

unread,
Nov 24, 2019, 2:48:48 PM11/24/19
to GAMA
Hi,

I've noticed something regarding simulation time.  I've checked several models now, both library models as well as those that I've created and I see that in the boxes that display simulation time, the value for simulation time is always the same - 11 month.  For example:  I opened and ran the library model Batch.gaml.  and if you look at the attached screenshot, it says the simulated time is 11 months and 0 days.  I'm not sure what this value is tracking.  I know it's indeed November currently, is it reflecting the actual month we are in? It maintains this value of 11 month and 0 day regardless of the time associated with the simulation data.

I've attached screenshots of the simulated time value from 2 different models (batch.gaml and one that I've created)...the value is identical.  I'd like to understand what this is exactly.

cheers,

Chris
Screenshot from 2019-11-24 13-38-26.png
Screenshot from 2019-11-24 13-39-21.png

Benoit Gaudou

unread,
Nov 25, 2019, 11:23:56 PM11/25/19
to gama-p...@googlegroups.com
Hi Chris,

I admit I do not understand what appears on your screenshot :(
In particular, when I test on my GAMA (either the 1.8 release or the current master git version), I do not have this information.
See below what appears in my GAMA:

Screenshot 2019-11-26 at 11.16.27.png

In fact the way to change the date displayed is to change the current_date variable in the global.
As an example if your have the following lines in your code: 

global {

   ... 

// date starting_date <- date([2011,1,2,1,1,30]);

date starting_date <- date("01 23 2000","MM dd yyyy");

    ....
}

This will produce the following display.

Screenshot 2019-11-26 at 11.22.09.png

I hope it helps.

Cheers

Benoit



--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/6e0ab9c5-7fb8-4f18-9313-f1b37832e718%40googlegroups.com.

Chris Harvey

unread,
Nov 26, 2019, 12:27:19 AM11/26/19
to GAMA
Hi Benoit,

I have a value for my current_date variable.  The date is set to 1 December 1996.  It has no effect at all. 

global{
           float step <- 20 #minutes;
           date starting_date <- date([1996,12,1,0,0,0]);      //Dec 1 1996 midnight
           date current_date <- starting_date;
 }

What is interesting is that I ran two different models (one being from the library models and one being a model that I created) and they have the same simulation time.  It used to be when  I ran the models that the simulated time gave me the correct information, but not anymore.  The only thing I can think to do is to uninstall and reinstall GAMA but I hesitate to do that...I have it working well (other than this issue).

Chris

You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/bVNTu3W3LvI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/CAD4GtYHzEohk%3DaW6Vmi1GNDfjRU8d8%3Dog-UAG2sTUxcyirrcig%40mail.gmail.com.

Chris Harvey

unread,
Nov 30, 2019, 9:40:25 PM11/30/19
to GAMA
Hi Benoit,

So it seems that GAMA is ignoring the value that I put into the starting_date variable completely.  I've put several values into the variable now, including the ones that you provided above and it makes no difference.  In each instance the timestamp displayed in the box in the top states:

Simulated Time: 11 months 0 days 06:00:00


At first I thought perhaps it was capturing the difference between the Central Time Zone and the UTM time zone.  That did not seem to be the issue.  In my code I have the following:

//TIME AND DATE VARIABLES
float step <- 20 #mn;
date starting_date <- date("01 23 2000", "MM dd yyyy");


I've also tried the following:
date starting_date <- date([2000, 5, 1, 0, 0, 0]) ;              //May 1 2000 midnight (0,0

Any idea's?  As I said before - it effects all the models the exact same way.  I ran a Grid model - hexagonal grid and before I even started it, it say's  Simulated Time 11 months 0 days 06:00










On Mon, Nov 25, 2019 at 10:23 PM Benoit Gaudou <benoit...@gmail.com> wrote:
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/bVNTu3W3LvI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/CAD4GtYHzEohk%3DaW6Vmi1GNDfjRU8d8%3Dog-UAG2sTUxcyirrcig%40mail.gmail.com.

Chris Harvey

unread,
Dec 1, 2019, 6:12:50 PM12/1/19
to GAMA
 Hi Benoit,

I fixed it.  Actually, I had to uninstall and reinstall GAMA.  After doing so - it cleared the issue.  So I'm not sure how it happened, but it's fixed now.



Chris

On Mon, Nov 25, 2019 at 10:23 PM Benoit Gaudou <benoit...@gmail.com> wrote:
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/bVNTu3W3LvI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/CAD4GtYHzEohk%3DaW6Vmi1GNDfjRU8d8%3Dog-UAG2sTUxcyirrcig%40mail.gmail.com.

Benoit Gaudou

unread,
Dec 3, 2019, 4:40:16 AM12/3/19
to gama-p...@googlegroups.com
OK great if it is fixed :-)

Cheers

Benoit

Reply all
Reply to author
Forward
0 new messages