Re: Minimization probelem and getFittestChromosome()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: Minimization probelem and getFittestChromosome()

Klaus Meffert-5
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:[hidden email]]
Sent: Sunday, October 21, 2012 12:58 AM
To: [hidden email]; Klaus Meffert; Mauricio Noda
Subject: Minimization probelem and getFittestChromosome()

Good morning

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 error message  

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

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
jgap-users mailing list
[hidden email]