Genetic Algorithm

kikilizle 101 Jun 21, 2011 at 15:19


I’m new in programming especially in this area. I’m kinda stuck in generating an initial population which i believe is the first step in a genetic algorithm. Can anyone please help…Thanks!!!

2 Replies

Please log in or register to post a reply.

Reedbeta 167 Jun 21, 2011 at 17:23

Well, first you have to decide on the representation for your agents. What will the “genome” be? What parameters will it consist of, and what are the valid ranges for these parameters?

Once you’ve answered that question, generating an initial population should be easy - you just decide how many agents you want, and then for each agent, pick a random value for each of its parameters.

TheNut 179 Jun 21, 2011 at 17:35

Have a look at AI-Junkie’s genetic algorithms tutorial. If you’re itching to learn more, consider picking up his book. He explains genetic algorithms and artificial neural nets quite well.