[galib] Parallelization of ga.step()

Campbell, Todd D [CARD] tdc at iastate.edu
Mon Apr 18 15:33:14 EDT 2011


We did this.  Unfortunately, the function CPopulation.evaluate is not declared virtual, so you can't just derive a class from CPopulation to replace it.  You need to write your own GASteadyState.step to call your own evaluate.

I think most objective functions are independent enough to be ideal for parallel execution.

-Todd Campbell
tdc at iastate.edu

-----Original Message-----
From: galib-bounces at mit.edu [mailto:galib-bounces at mit.edu] On Behalf Of Gustavo Bouzon
Sent: Monday, April 18, 2011 2:21 PM
To: galib at mit.edu
Subject: [galib] Parallelization of ga.step()


we are using GASteadyState and GARealGenome to optimize a system where each individual's evaluation takes some seconds. Has anyone worked with parallel execution of individuals?

We are currently using GASteadyState::step(). Are there methods of GASteadyState to control evaluation on an individual basis?

In case not, we're likely to modify GASteadyState::step() to execute each individual inside a thread (all threads will be joined in the end each step).

Thanks in advance, Gustavo.


Gustavo Bouzon
Automation Engineer
Tel: +55 48 8801 7188

galib mailing list
galib at mit.edu

More information about the galib mailing list