JAGA Homepage

org.jaga.masterAlgorithm
Class ElitistGA

java.lang.Object
  extended by org.jaga.masterAlgorithm.SimpleGA
      extended by org.jaga.masterAlgorithm.ReusableSimpleGA
          extended by org.jaga.masterAlgorithm.ElitistGA
All Implemented Interfaces:
GeneticAlgorithm
Direct Known Subclasses:
InitialPopulationGA

public class ElitistGA
extends ReusableSimpleGA

TODO: Complete these comments.

Project: JAGA - Java API for Genetic Algorithms.

Company: University College London and JAGA.Org (http://www.jaga.org).

Copyright: (c) 2004 by G. Paperin.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ONLY if you include a note of the original author(s) in any redistributed/modified copy.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or see http://www.gnu.org/licenses/gpl.html

Version:
JAGA public release 1.0 beta
Author:
Greg Paperin (greg@jaga.org)

Field Summary
private  double badProportion
           
private  double eliteProportion
           
 
Constructor Summary
ElitistGA()
           
ElitistGA(double eliteProportion)
           
ElitistGA(double eliteProportion, double badProportion)
           
ElitistGA(GAParameterSet parameters, double eliteProportion)
           
ElitistGA(GAParameterSet parameters, double eliteProportion, double badProportion)
           
 
Method Summary
protected  Population generateNextPopulation(Population oldPop, int age, GAResult result, GAParameterSet params)
           
 double getBadProportion()
           
 double getEliteProportion()
           
 void setBadProportion(double badProportion)
           
 void setEliteProportion(double eliteProportion)
           
 
Methods inherited from class org.jaga.masterAlgorithm.ReusableSimpleGA
exec
 
Methods inherited from class org.jaga.masterAlgorithm.SimpleGA
addHook, checkForBetterResult, createEmptyPopulation, createInitialPopulation, createResult, exec, haveSex, notifyFoundNewResult, notifyGenerationChanged, notifyInitialisationDone, notifyReproduced, notifySelectedForReproduction, notifyTerminationConditionApplies, removeHook, selectForReproduction, terminationConditionApplies, updateFitnessCalculated, updateIndividualFitness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eliteProportion

private double eliteProportion

badProportion

private double badProportion
Constructor Detail

ElitistGA

public ElitistGA()

ElitistGA

public ElitistGA(double eliteProportion)

ElitistGA

public ElitistGA(double eliteProportion,
                 double badProportion)

ElitistGA

public ElitistGA(GAParameterSet parameters,
                 double eliteProportion)

ElitistGA

public ElitistGA(GAParameterSet parameters,
                 double eliteProportion,
                 double badProportion)
Method Detail

getEliteProportion

public double getEliteProportion()

setEliteProportion

public void setEliteProportion(double eliteProportion)

getBadProportion

public double getBadProportion()

setBadProportion

public void setBadProportion(double badProportion)

generateNextPopulation

protected Population generateNextPopulation(Population oldPop,
                                            int age,
                                            GAResult result,
                                            GAParameterSet params)
Overrides:
generateNextPopulation in class SimpleGA

JAGA Homepage

Go to JAGA Homepage