ECJ-INTEREST-L Archives

July 2005

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional 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:
"Steve Butcher (Steve-O)" <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Wed, 27 Jul 2005 10:57:00 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
Dear list,

Believe it or not, I have  question.

I'm using alphanumeric ERC. My thought was to have ERC#resetNode() do
something like this:

    public void resetNode( final EvolutionState state, final int
thread) {
             Parameter p = new Parameter( "alphabet");
             String alphabet = state.parameters.getStringWithDefault
( p, "aAbBcCdDeEfFgG");
             value = "" + alphabet.charAt( state.random
[ thread].nextInt( alphabet.length()));
     }
     public String value;

However, when MyProblem goes to access the alphabet parameter, it's
going to want to access it as "eval.problem.alphabet", isn't it? So
can I just name the parameter "eval.problem.alphabet" in the 1st line
of resetNode() or is there a better way to do this?

Cheers,
Steve

ATOM RSS1 RSS2