ECJ-INTEREST-L Archives

February 2008

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:
Michael Hart <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Sun, 3 Feb 2008 21:36:24 +1100
Content-Type:
text/plain
Parts/Attachments:
text/plain (44 lines)
Hi Anais,

This works for me:

----

ParameterDatabase problemParams = Evolve
     .loadParameterDatabase(new String[] { Evolve.A_FILE,
         "my_param_file.params" });

EvolutionState problemState = Evolve.initialize(problemParams, 0);

----

Cheers,

Michael

On 02/02/2008, at 12:19 AM, Anais Martínez wrote:

> Hi. I'm trying to make a GA problem in which each evaluation of  
> individuals
> is other GA. I've followed the example in this list of GA nested GP,  
> but it
> doesn't work.
>
> My code is:
>
> ---
> File  f = new File("ec/app/EC/EC.params");
> try{
>    dataB = new ParameterDatabase(f);
>    }catch(Exception e){
> System.out.println(e);
>   }
>
> state2 = Evolve.initialize(dataB,ECRandomOffset++);
> ---
> when it is executed, dataB has got all parameters of EC.params, but  
> state2
> doesn't. Where is the mistake?
>
> Thank you.

ATOM RSS1 RSS2