A double-check and I've verified that the current ECJ repository
version has correct fitness parameter declarations. For tutorials 1,
2, and 3, the params file should have the following line:
pop.subpop.0.species.fitness = ec.simple.SimpleFitness
For tutorial 4, the file ec/gp/koza/koza.params should have the
following line:
pop.subpop.0.species.fitness = ec.gp.koza.KozaFitness
For good measure, here's a grep of all the params files in ECJ
pop.subpop.0.species.fitness = ec.simple.SimpleFitness
./app/coevolve1/coevolve1.params
pop.subpop.0.species.fitness = ec.simple.SimpleFitness
pop.subpop.1.species.fitness = ec.simple.SimpleFitness
./app/coevolve2/coevolve2.params
pop.subpop.0.species.fitness = ec.simple.SimpleFitness
./app/ecsuite/ecsuite.params
stat.child.0.y-axis-label = fitness
./app/gui/ant.params
pop.subpop.0.species.fitness =
ec.simple.SimpleFitness
./app/spatial/spatial.params
pop.subpop.0.species.fitness = ec.simple.SimpleFitness
./app/sum/sum.params
pop.subpop.0.species.fitness = ec.simple.SimpleFitness
./app/tutorial1/tutorial1.params
pop.subpop.0.species.fitness = ec.simple.SimpleFitness
./app/tutorial2/tutorial2.params
pop.subpop.0.species.fitness = ec.simple.SimpleFitness
./app/tutorial3/tutorial3.params
pop.subpop.0.species.fitness = ec.gp.koza.KozaFitness
pop.subpop.1.species.fitness = ec.gp.koza.KozaFitness
pop.subpop.2.species.fitness = ec.gp.koza.KozaFitness
./exchange/inter.params
pop.subpop.0.species.fitness = ec.gp.koza.KozaFitness
./gp/koza/koza.params
pop.subpop.0.species.fitness =
ec.multiobjective.spea2.SPEA2MultiObjectiveFitness
./multiobjective/spea2/spea2.params
pop.subpop.0.species.fitness =
ec.simple.SimpleFitness
./pso/pso.params
On Nov 30, 2007, at 9:27 PM, Michael B Sullivan wrote:
> Hi All,
>
> I'm sorry to waste anybody's time with a basic question, but I'm
> trying out ECJ16 for the first time today, and I've had trouble
> getting the tutorials to execute successfully. The errors I get
> appear to be similar to ones that came up in an unresolved issue
> from 2006:
>
> https://listserv.gmu.edu/cgi-bin/wa?A2=ind0609&L=ECJ-INTEREST-
> L&P=R187&I=-3
>
> Tutorial #1 runs to completion, so something is working. However,
> running tutorial2, tutorial3 or tutorial4 results in the following
> error:
>
> lfm@lfm-x61:~/install/ecj/ec/app/tutorial2$ java ec.Evolve -file
> tutorial2.params
>
> | ECJ
> | An evolutionary computation system (version 16)
> | By Sean Luke
> | Contributors: L. Panait, G. Balan, S. Paus, Z. Skolicki, R.
> Kicinger,
> | J. Harrison, J. Bassett, R. Hubley, A. Desai, and
> A. Chircop
> | URL: http://cs.gmu.edu/~eclab/projects/ecj/
> | Mail: [log in to unmask]
> | (better: join ECJ-INTEREST at URL above)
> | Date: March 20 2007
> | Current Java: 1.6.0 / Java HotSpot(TM) Server VM-1.6.0-b105
> | Required Minimum Java: 1.3
>
>
> Threads: breed/1 eval/1
> Seed: 4357
> Job: 0
> Setting up
> Initializing Generation 0
> Exception in thread "main" ec.util.ParamClassLoadException:
> No class name provided.
> PARAMETER: pop.subpop.0.species.fitness
> at ec.util.ParameterDatabase.getInstanceForParameter
> (ParameterDatabase.java:421)
> at ec.Species.setup(Species.java:228)
> at ec.vector.VectorSpecies.setup(VectorSpecies.java:146)
> at ec.vector.IntegerVectorSpecies.setup
> (IntegerVectorSpecies.java:178)
> at ec.Subpopulation.setup(Subpopulation.java:132)
> at ec.Population.setup(Population.java:105)
> at ec.simple.SimpleInitializer.initialPopulation
> (SimpleInitializer.java:46)
> at ec.simple.SimpleEvolutionState.startFresh
> (SimpleEvolutionState.java:54)
> at ec.EvolutionState.run(EvolutionState.java:376)
> at ec.Evolve.main(Evolve.java:595)
>
> I've tried using full pathnames of the parameter files to no
> avail. I've also tried Java 1.4.2 (gcj) which resulted in the same
> error. My CLASSPATH is configured to include the ecj main folder:
>
> lfm@lfm-x61:~/install/ecj/ec/app/tutorial2$ echo $CLASSPATH
> /home/lfm/install/ecj/
>
> The problem is most likely with my configuration, but being
> unfamiliar with ECJ, I'm not sure where I should proceed from
> here. Has anybody had any experience with this error since it last
> arose?
>
> Thanks!
> Mike
|