Rather than sending in numbers, having code passed to an individual in genetic programming? ECJ

Posted by sieve411 on Stack Overflow See other posts from Stack Overflow or by sieve411
Published on 2010-03-28T20:26:34Z Indexed on 2010/03/28 20:33 UTC
Read the original article Hit count: 259

Filed under:
|

I'm using ECJ with Java. I have an army of individuals who I all want to have the same brain. Basically, I'd like to evolve the brains using GP. I want things like "if-on-enemy-territory" and "if-sense-target" for if statements and "go-home" or "move-randomly" or "shoot" for terminals. However, these statements need to be full executable Java code. How can I do this with ECJ?

© Stack Overflow or respective owner

Related posts about java

Related posts about genetic-programming