edu.udo.cs.yale.tools.math.optimization.ec.pso
Class Population
java.lang.Object
edu.udo.cs.yale.tools.math.optimization.ec.pso.Population
public class Population
- extends java.lang.Object
This object stores for each individual index the current values and the best
value for the individual so far. It also stores the fitness of the best
values ever and the corresponding values.
- Version:
- $Id: Population.java,v 1.7 2006/08/25 11:18:57 ingomierswa Exp $
- Author:
- Ingo Mierswa
Constructor Summary |
Population(int popSize,
int individualSize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CURRENT
private static final int CURRENT
- See Also:
- Constant Field Values
BEST
private static final int BEST
- See Also:
- Constant Field Values
values
private double[][][] values
individualFitness
private double[][] individualFitness
bestValuesEver
private double[] bestValuesEver
bestPerformanceEver
private PerformanceVector bestPerformanceEver
generationsBest
private double generationsBest
generation
private int generation
lastImprovement
private int lastImprovement
Population
public Population(int popSize,
int individualSize)
getNumberOfIndividuals
public int getNumberOfIndividuals()
getIndividualSize
public int getIndividualSize()
getValues
public double[] getValues(int index)
getLocalBestValues
public double[] getLocalBestValues(int index)
getGlobalBestValues
public double[] getGlobalBestValues()
getBestFitnessEver
public double getBestFitnessEver()
getBestPerformanceEver
public PerformanceVector getBestPerformanceEver()
getBestFitnessInGeneration
public double getBestFitnessInGeneration()
setValues
public void setValues(int index,
double[] values)
getGeneration
public int getGeneration()
nextGeneration
public void nextGeneration()
getGenerationsWithoutImprovement
public int getGenerationsWithoutImprovement()
setFitnessVector
public void setFitnessVector(PerformanceVector[] performanceVectors)
Copyright © 2001-2006