Genetic Algorithm

519afa057cc706791571fae08c29937e
0
kikilizle 101 Jun 21, 2011 at 15:19

Hi,

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.

A8433b04cb41dd57113740b779f61acb
0
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.

6837d514b487de395be51432d9cdd078
0
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.