including distributions (time based )

34 views
Skip to first unread message

Srirama Bhamidipati

unread,
Mar 17, 2014, 5:15:47 AM3/17/14
to gama-p...@googlegroups.com
Hi 

I have some time based distributions of certain external factors that will effect the agents. i would like to know what is best way to bring them into the model. As an array list may be ?? please see attachment. Also I have the time distributions do not match (smaller time step) compared to my model time step. I will have to make them same time step I guess. But importantly what is the best way to bring them into the model.  The time based events will be triggered by a certain variable in the model, for simplicity lets say they are triggered by time step.

regards,
Srirama
distributions.JPG

Patrick Taillandier

unread,
Mar 17, 2014, 8:14:20 AM3/17/14
to gama-p...@googlegroups.com
Hi Srirama,

I am not sure of what is the difficulty here, but if you can define a value of your external factor for each simulation step (and save it in a file), it is quite easy to manage it.
See the attached model.

Cheers,

Patrick


--
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 post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

time_event.zip

Srirama Bhamidipati

unread,
Mar 17, 2014, 9:29:57 AM3/17/14
to gama-p...@googlegroups.com
Hi Patrick,

Thanks. So because you have just one column in your data and your bring the csv as temperature , the name of the variable becomes temperature automatically ?

thanks.

Patrick Taillandier

unread,
Mar 17, 2014, 9:33:27 AM3/17/14
to gama-p...@googlegroups.com
In GAMA, a file is a container, so you can use it as one (list or matrix depending on the type of file).
Here, I have just one column, so I use it as a list, if there were several columns, I would have used it as a matrix (and I would have used the operator csv_file instead of file to read it).

Patrick


--
Reply all
Reply to author
Forward
0 new messages