synchronization at specific ticks

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

synchronization at specific ticks

Sophie Liu

Dear all,

 

I have a model built in Repast HPC Logo. It consists of four processes, 1000*1000 patches and about 700 moving agents. Running on my PC, it collapses at 830 tick (about 2000 ticks is needed). These agents move every tick and synchronization is applied every tick. I want to change to synchronizing every 10 ticks to see whether this will go through. However, an agent may move to another process at any tick, it needs to be synchronized afterwards or there will be an error. Do you have any idea of how to synchronize every n ticks and also deal with those agents that may be affected? Other than using a more powerful computer (at this stage, I’d like to experiment more with the current PC), what are the aspects in the model that I should pay attention to when trying to make the model go more ticks?

 

Best regards,

Sophie


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Repast-interest mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/repast-interest
Reply | Threaded
Open this post in threaded view
|

Re: synchronization at specific ticks

Murphy, John T.
Dear Sophie,

I’m not sure I follow your question exactly. When you say that the model ‘collapses’, what do you mean? This might be a key to helping you. If the model is ‘collapsing’ because of a synchronization issue, then spacing the synchronizations out will help, but if the model is collapsing because of some issue in the model dynamics then the timing of the synchronization might not matter.

If it is true that “…it needs to be synchronized afterwards or there will be an error," then it sounds like you must perform the synchronization. You also ask, “Do you have any idea of how to synchronize every n ticks and also deal with those agents that may be affected?” But the way to deal with the agents that may be affects is to synchronize, which is what you don’t want to do.

One simple thing that you could do is wrap your current step method in a loop, so that it executes 10 times:

go(){
  // Do something
}

Changes to:

go(){
  for(int i = 0; I < 10; i++){
    // Do something
  }
}

But, again, if doing the actions in the ‘go’ method more than once without synchronization will cause an error, then this approach will fail.

Perhaps with more information I can offer a better solution.

Best,
John

--
John T. Murphy
Anthropologist/Social Science Modeling Specialist
Computational Engineer
Global Security Sciences Division
Systems Science Center, Social and Network Analysis Section
Argonne National Laboratory

From: Sophie Liu <[hidden email]>
Date: Wednesday, April 27, 2016 at 10:03 PM
To: "[hidden email]" <[hidden email]>
Subject: [Repast-interest] synchronization at specific ticks

Dear all,

 

I have a model built in Repast HPC Logo. It consists of four processes, 1000*1000 patches and about 700 moving agents. Running on my PC, it collapses at 830 tick (about 2000 ticks is needed). These agents move every tick and synchronization is applied every tick. I want to change to synchronizing every 10 ticks to see whether this will go through. However, an agent may move to another process at any tick, it needs to be synchronized afterwards or there will be an error. Do you have any idea of how to synchronize every n ticks and also deal with those agents that may be affected? Other than using a more powerful computer (at this stage, I’d like to experiment more with the current PC), what are the aspects in the model that I should pay attention to when trying to make the model go more ticks?

 

Best regards,

Sophie


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Repast-interest mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/repast-interest
Reply | Threaded
Open this post in threaded view
|

Re: synchronization at specific ticks

foxtrotalpha
In reply to this post by Sophie Liu
Hi Sophie,

How are you synchronizing your ticks at the moment? Using the Scheduler or
have you written your own methods?



--
View this message in context: http://repast.10935.n7.nabble.com/synchronization-at-specific-ticks-tp11492p11494.html
Sent from the repast-interest mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Repast-interest mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/repast-interest