Mime-Version: |
1.0 (Apple Message framework v915) |
Sender: |
|
Date: |
Sun, 3 Feb 2008 21:36:24 +1100 |
Reply-To: |
|
Subject: |
|
From: |
|
Content-Transfer-Encoding: |
8bit |
In-Reply-To: |
|
Content-Type: |
text/plain; charset=ISO-8859-1; format=flowed; delsp=yes |
Comments: |
|
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.
|
|
|