swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Counting agents


From: Daniel J Shapero
Subject: Re: Counting agents
Date: Sun, 15 Jun 1997 19:15:36 -0400

Todd,
how about this,
have each agent have three int variables and then have a one be for true
and a zero be for false.  ex. pitcher and fielder and coach.  a pitcher
would have a pitcher value of 1 and the other two would be zero.  Then use
the averager objects to determine the average of the population for that
variable, finally multiply each var by the number of agents.  

Talk to you soon,
Dan Shapero

On Tue, 10 Jun 1997, Todd Allen wrote:

> Date: Tue, 10 Jun 1997 16:41:25 -0400
> From: Todd Allen <address@hidden>
> Reply-To: address@hidden
> To: swarm <address@hidden>
> Subject: Counting agents
> 
> Hi all,
> 
> I am working with a model in which each agent has a 'type' which is
> defined by the values of three agent level variables.  At each
> interaction in the model an agent has the option to change his 'type' to
> that of another agent which s/he encounters.  I need to keep track of
> the number of agents of each 'type' in the population at each time step
> which I would like to output to a file. Does anyone know of an easy way
> to do this?
> 
> Thanks,
> 
> Todd Allen
> 
>                   ==================================
>    Swarm-Support is for discussion of the technical details of the day
>    to day usage of Swarm.  For list administration needs (esp.
>    [un]subscribing), please send a message to <address@hidden>
>    with "help" in the body of the message.
>                   ==================================
> 


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]