ec.teambots
Class TeambotsExampleProblem
java.lang.Object
|
+--ec.Problem
|
+--ec.teambots.TeambotsProblem
|
+--ec.teambots.TeambotsExampleProblem
- All Implemented Interfaces:
- java.lang.Cloneable, Prototype, java.io.Serializable, Setup, SimpleProblemForm
- public abstract class TeambotsExampleProblem
- extends TeambotsProblem
This class demonstrates how to create an evolved control system from an
individual such that one can use ECJ to evolve ControlSystems for Teambots.
For this demonstration, lets assume that the representation of the individual
is a boolean-vector one, and that the individuals have rules of 6 genes length
each. Its functionality will be encoded as follows: the first 4 genes in a rule
will encode the condition for firing (if there are any obstacles in the 4 quadrants)
at a distance less than 1 meter. The last 2 genes will codify the action to be
taken by the robot (I have no idea what you can encode with 2 boolean values, but
this is just an example....)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TeambotsExampleProblem
public TeambotsExampleProblem()
getControlSystem
public EvolvedControlSystem getControlSystem(EvolutionState state,
Individual ind,
int threadnum)
- This function is the conversion of an individual from ECJ to a ControlSystem
for TeamBots.