gpalta.core
Interface Population

All Known Implementing Classes:
MultiTreePopulation, SingleTreePopulation

public interface Population

Holds the problem's Individuals. It must evaluate them and organize them for selection and evolution. Most applications should use SingleTreePopulation


Method Summary
 void doSelection(IndSelector sel)
          Perform Individual selection
 void eval(MultiThreadedEvaluator evaluator, Fitness f, TempVectorFactory tempVectorFactory, ProblemData problemData, int[] wSamples)
          Evaluate every Individual and calculate their fitness
 void evolve(TreeOperator treeOp, TempVectorFactory tempVectorFactory, ProblemData problemData)
          Apply genetic operators
 Individual get(int which)
          Get a certain individual
 Output getProcessedOutput(Individual ind, Fitness f, TempVectorFactory tempVectorFactory, ProblemData problemData)
           
 Output getRawOutput(Individual ind, TempVectorFactory tempVectorFactory, ProblemData problemData)
          Get the output directly from the Individual, without further processing
 void init(Config config, ProblemData problemData, TreeBuilder builder, TreeOperator treeOp)
           
 

Method Detail

eval

void eval(MultiThreadedEvaluator evaluator,
          Fitness f,
          TempVectorFactory tempVectorFactory,
          ProblemData problemData,
          int[] wSamples)
Evaluate every Individual and calculate their fitness

Parameters:
evaluator -
f -
tempVectorFactory -
problemData -

getRawOutput

Output getRawOutput(Individual ind,
                    TempVectorFactory tempVectorFactory,
                    ProblemData problemData)
Get the output directly from the Individual, without further processing

Returns:
A totally independent Output object

getProcessedOutput

Output getProcessedOutput(Individual ind,
                          Fitness f,
                          TempVectorFactory tempVectorFactory,
                          ProblemData problemData)

get

Individual get(int which)
Get a certain individual

Parameters:
which - The individual to get

init

void init(Config config,
          ProblemData problemData,
          TreeBuilder builder,
          TreeOperator treeOp)

doSelection

void doSelection(IndSelector sel)
Perform Individual selection

Parameters:
sel -

evolve

void evolve(TreeOperator treeOp,
            TempVectorFactory tempVectorFactory,
            ProblemData problemData)
Apply genetic operators

Parameters:
treeOp -
tempVectorFactory -
problemData -