Subject: | |
From: | |
Reply To: | |
Date: | Sun, 3 Feb 2008 21:36:24 +1100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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.
|
|
|