Jump to content


Genetic Algorithm


2 replies to this topic

#1 kikilizle

    New Member

  • Members
  • Pip
  • 1 posts

Posted 21 June 2011 - 03:19 PM

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 Reedbeta

    DevMaster Staff

  • Administrators
  • 5340 posts
  • LocationSanta Clara, CA

Posted 21 June 2011 - 05:23 PM

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.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 TheNut

    Senior Member

  • Moderators
  • 1718 posts
  • LocationCyberspace

Posted 21 June 2011 - 05:35 PM

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.
http://www.nutty.ca - Being a nut has its advantages.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users