fitness values in JGAP have to be positive (a change that enables negative
values is in the pipe).
To distinct between the two case for fitness value
a) the higher the better (quality rate),
b) the lower the better (defect rate)
please use different fitness evaluators, set it in the configuration (please
see the JGAP examples on how to do thiss).
The DefaultFitnessEvaluator ist for case a), the DeltaFitnessEvaluator is
for case b).
From: Amirat Hanane [mailto:djanahana@...]
Sent: Sunday, October 21, 2012 12:58 AM
To: jgap-users@...; Klaus Meffert; Mauricio Noda
Subject: Minimization probelem and getFittestChromosome()
I have a small question about the function getFittestChromosome(),
My program must retrieve the chromosome with the lowest fitness value(I am
working with a minimization problem)
Is there a way to know this chromosome (I have try to use an other fitness
function F'= - F ,so that I can know it but the problem is that I have this
Exception in thread "main" java.lang.RuntimeException: Fitness values must
be positive! Received value: -88081.1468383594)?
Is there any way to do this?
Many thanks for any kind of help