com.rapidminer.tools.math.optimization.ec.pso
Class Population

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

Author:
Ingo Mierswa

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
 

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-2009 by Rapid-I