edu.udo.cs.yale.tools.math.optimization.ec.pso
Class Population

java.lang.Object
  extended by 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

Field Summary
private static int BEST
           
private  PerformanceVector bestPerformanceEver
           
private  double[] bestValuesEver
           
private static int CURRENT
           
private  int generation
           
private  double generationsBest
           
private  double[][] individualFitness
           
private  int lastImprovement
           
private  double[][][] values
           
 
Constructor Summary
Population(int popSize, int individualSize)
           
 
Method Summary
 double getBestFitnessEver()
           
 double getBestFitnessInGeneration()
           
 PerformanceVector getBestPerformanceEver()
           
 int getGeneration()
           
 int getGenerationsWithoutImprovement()
           
 double[] getGlobalBestValues()
           
 int getIndividualSize()
           
 double[] getLocalBestValues(int index)
           
 int getNumberOfIndividuals()
           
 double[] getValues(int index)
           
 void nextGeneration()
           
 void setFitnessVector(PerformanceVector[] performanceVectors)
           
 void setValues(int index, double[] values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Population

public Population(int popSize,
                  int individualSize)
Method Detail

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