please tell me how to count the dead agents and how to make a speed up with very many agents

View: New views
2 Messages — Rating Filter:   Alert me  

please tell me how to count the dead agents and how to make a speed up with very many agents

by Jun Itakura :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I want to count the dead agents in 1tic, what methods must I created with
Java scripts, not with groovy?
And I want to know the technique to improve the simulation speed with very
many agents.
My model has about 200,000 agents in one fields, it needs long time with one
simulation.
There are two agent-type in this simulation, one is two digits fewer than
the number of other parties,
and my aim is to observe the decreasing appearance of this fewer agents.

Is there any ideas?

Jun Itakura M.D.
----------------------------------------
Division of Gastroenterology and Hepatology
Musashino Red Cross Hospital
1-26-1 Kyonan-cho
Musashino-shi, Tokyo, 180-8610, Japan
Phone: +81-422-32-3111
Fax: +81-422-32-9551.
E-mail: jitakura@...




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest

Re: please tell me how to count the dead agents and how to make a speed up with very many agents

by Enrico R. Crema :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jun,

One simple approach is to place a binary variable (1=Dead, 0=Alive) for each agent so that you can create a method (e.g. IsDead()) which is then called from the outputter as a total sum (sum(IsDead()).
However, I guess it's important that the out-putter collects this  before the agent is removed from the context.
I assume you are running in Batch Mode (if you don't, switching to Batch mode will give a considerable speed up!) so it'r really about your coding and how to optimise the call of each method I guess...

Enrico

---------------------------------------
Enrico R. Crema
PhD Candidate
Institute of Archaeology, UCL
AHRC Centre for the Evolution of Cultural Diversity
 +44 7899093191
http://www.cecd.ucl.ac.uk/people/?go1=91
e.crema@ucl.ac.uk
enrico.crema@gmail.com


Jun Itakura wrote:
Hi,

I want to count the dead agents in 1tic, what methods must I created with
Java scripts, not with groovy?
And I want to know the technique to improve the simulation speed with very
many agents.
My model has about 200,000 agents in one fields, it needs long time with one
simulation.
There are two agent-type in this simulation, one is two digits fewer than
the number of other parties,
and my aim is to observe the decreasing appearance of this fewer agents.

Is there any ideas?

Jun Itakura M.D.
----------------------------------------
Division of Gastroenterology and Hepatology
Musashino Red Cross Hospital
1-26-1 Kyonan-cho
Musashino-shi, Tokyo, 180-8610, Japan
Phone: +81-422-32-3111
Fax: +81-422-32-9551.
E-mail: jitakura@musashino.jrc.or.jp




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Repast-interest mailing list
Repast-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/repast-interest