JGAP

examples.gp.paintedDesert
Class PaintedDesertProblem

java.lang.Object
  extended by org.jgap.gp.GPProblem
      extended by examples.gp.paintedDesert.PaintedDesertProblem

public class PaintedDesertProblem
extends GPProblem

The Painted Desert problem from Koza's "Evolution of Emergent Cooperative Behavior using Genetic Programming". The problem is to create the same genetic program for a group of ants that will move three colors of sand into columns of like sand.

Since:
3.2

Constructor Summary
PaintedDesertProblem(GPConfiguration a_conf)
          Creates the Painted Desert Problem using the GPConfiguration.
 
Method Summary
 GPGenotype create()
          Sets up the functions to use and other parameters.
static void main(java.lang.String[] args)
          Runs the Painted Desert Problem
 void resetAnts()
          Resets the ants to initial positions.
 
Methods inherited from class org.jgap.gp.GPProblem
createTree, getGPConfiguration, setGPConfiguration, showTree, showTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaintedDesertProblem

public PaintedDesertProblem(GPConfiguration a_conf)
                     throws InvalidConfigurationException
Creates the Painted Desert Problem using the GPConfiguration.

Parameters:
a_conf - the GP configuration
Throws:
InvalidConfigurationException
Method Detail

create

public GPGenotype create()
                  throws InvalidConfigurationException
Sets up the functions to use and other parameters. Then creates the initial genotype.

Specified by:
create in class GPProblem
Returns:
the genotype created
Throws:
InvalidConfigurationException

main

public static void main(java.lang.String[] args)
Runs the Painted Desert Problem

Parameters:
args - The location of the ant map file is optional
Throws:
java.lang.Exception

resetAnts

public void resetAnts()
Resets the ants to initial positions. So they can be run with the next version of the program.


JGAP