ECJ-INTEREST-L Archives

March 2011

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced 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:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Tue, 22 Mar 2011 10:58:06 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
Nikola, the Slave.java is presently single-threaded for no good  
reason.  It'll take me a while to get it multithreaded.

Here's a hack for you in the mean time.

	1. Turn on eval.run-evolve so the slave starts doing evolution itself.
	2. Set the generations to 1 (or maybe 0?  I forget right now).
	3. To keep the breeding from occurring, create a SimpleBreeder  
subclass which overrides the breedPopulation method to do absolutely  
nothing. Use this breeder on your Slave.  Actually I'm not sure if  
this is necessary but it's probably worthwhile.
	4. Use SimpleEvaluator on the slave.

This turns off "standard" evaluation and relies on treating the  
incoming individuals as a population, which should allow  
multithreading (crosses fingers).

Sean

On Mar 22, 2011, at 9:44 AM, Nikola N. wrote:

> By Master / slave  problems, how to set up on how many threads to be  
> started
> at the slave side ?
>
> I have already experimented with putting:
> evalthreads  =   3
> breedthreads =  3
> , in different .params files at the slave side, but nothing worked  
> so far.
> Only one thread is by default running at the slave side, and I can not
> change this.
>
> Any suggestion in which .params files or how to setup this?
>
>
> Thanks in advance.
> Nikola

ATOM RSS1 RSS2