Main.Tutorials
Class Tutorial7

java.lang.Object
  extended by Main.State
      extended by Main.AbstractRun
          extended by Main.Tutorials.Tutorial7
All Implemented Interfaces:
java.io.Serializable

public class Tutorial7
extends AbstractRun

Tutorial7 main class. In Tutorial2 we had a look at a standard GA algorithm whitout any fitness evaluation. In this tutorial we will show how to add a simple string matching fitness evaluation to the algorithm In GEVA fitness evaluation is performed by, you guessed it a fitnessEvaluationOperation that is contained in a fitness evaluator modules. The fitnessEvaluationOperation uses a fitnessFunction to decide the fitness. This fitness function is what you will want to modify to run different types of problems. (The grammar is what you want to modify to bias each problem) The fitness function used in this problem is a simple String matching function.

Author:
erikhemberg
See Also:
Serialized Form

Field Summary
 
Fields inherited from class Main.AbstractRun
collector, initialiser, properties, propertiesFilePath, stdErr, stdOut
 
Fields inherited from class Main.State
algorithm, rng
 
Constructor Summary
Tutorial7()
          Creates a new instance of Tutorial7
 
Method Summary
 void experiment(java.lang.String[] args)
           
static void main(java.lang.String[] args)
          Run the state
 void setup()
           
 void setup(java.lang.String[] args)
          Setup the algorithm.
 
Methods inherited from class Main.AbstractRun
commandLineArgs, foundOptimum, getBestIndiv, getCollector, getCrossoverOperation, getFitnessFunction, getGEGrammar, getInitialiser, getJoinOperator, getMutationOperation, getSelectionOperation, init, printStuff, readProperties, run, setOutput
 
Methods inherited from class Main.State
getAlgorithm, load, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tutorial7

public Tutorial7()
Creates a new instance of Tutorial7

Method Detail

setup

public void setup()

experiment

public void experiment(java.lang.String[] args)
Specified by:
experiment in class State

setup

public void setup(java.lang.String[] args)
Setup the algorithm. Read the properties. Create the modules(Operators) and operations

Specified by:
setup in class AbstractRun
Parameters:
args - The command line arguments

main

public static void main(java.lang.String[] args)
Run the state

Parameters:
args - The command line arguments