MASON-INTEREST-L Archives

March 2011

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Mon, 28 Mar 2011 17:59:44 -0400
Content-Type:
multipart/mixed
Parts/Attachments:
text/plain (829 bytes) , Schedule2.java (3385 bytes) , text/plain (3 bytes)
Maciej Latek and I are working on a revised version of the Schedule  
which is somewhat more complex but is expected to perform better when  
you have larger numbers of agents and a small number of orderings per  
timestep.  The downside is that it must use a Hashtable internally to  
retain various Bags, and the hashing  provides a constant overhead.   
So it might or might not be faster for your application.

In MASON you can just drop in a replacement for your Schedule, like  
this:

     public HeatBugs(long seed)
         {
         this(seed, 100, 100, 100);
	schedule = new Schedule2();    // dump the old Schedule, use  
Schedule2 instead
         }

So this means that we might offer Schedule2.java as an option rather  
than replacing Schedule.java if people like it.

Let me know what you think -- did it make your simulation faster?




Sean

ATOM RSS1 RSS2