{"action":"created","issue":{"url":"https://api.github.com/repos/rochaporto/ezgliding/issues/90","labels_url":"https://api.github.com/repos/rochaporto/ezgliding/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/rochaporto/ezgliding/issues/90/comments","events_url":"https://api.github.com/repos/rochaporto/ezgliding/issues/90/events","html_url":"https://github.com/rochaporto/ezgliding/issues/90","id":60846330,"number":90,"title":"add optimizer using a genetic algorithm","user":{"login":"rochaporto","id":52753,"avatar_url":"https://avatars.githubusercontent.com/u/52753?v=3","gravatar_id":"","url":"https://api.github.com/users/rochaporto","html_url":"https://github.com/rochaporto","followers_url":"https://api.github.com/users/rochaporto/followers","following_url":"https://api.github.com/users/rochaporto/following{/other_user}","gists_url":"https://api.github.com/users/rochaporto/gists{/gist_id}","starred_url":"https://api.github.com/users/rochaporto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rochaporto/subscriptions","organizations_url":"https://api.github.com/users/rochaporto/orgs","repos_url":"https://api.github.com/users/rochaporto/repos","events_url":"https://api.github.com/users/rochaporto/events{/privacy}","received_events_url":"https://api.github.com/users/rochaporto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T16:22:36Z","updated_at":"2015-03-12T16:53:53Z","closed_at":null,"body":"This is a really good description:\r\nhttp://natureofcode.com/book/chapter-9-the-evolution-of-code/\r\n\r\nAnd as a summary...\r\n\r\nPopulation. Start with a variable number of random candidates\r\n\r\nFitness. Function evaluating the gene's fitness. Distance, prob squared or 2^distance so that we get an exponential increase for better solutions\r\n\r\nSelection. Based on fitness. Should be a roulette wheel with the fittest candidates having a higher selection probability\r\n\r\nReproduction. Crossover between 1, 2 or even more parents. Take random position and take each side from a different parent.\r\n\r\nMutation. For each point mutate based on a probability, which should be low. Guarantees randomness when start population was bad\r\n\r\nPlay with population number and mutation rate to evaluate best results.\r\n\r\nGenotype is the internal representation of a candidate. Phenotype the visual one"},"comment":{"url":"https://api.github.com/repos/rochaporto/ezgliding/issues/comments/78525606","html_url":"https://github.com/rochaporto/ezgliding/issues/90#issuecomment-78525606","issue_url":"https://api.github.com/repos/rochaporto/ezgliding/issues/90","id":78525606,"user":{"login":"rochaporto","id":52753,"avatar_url":"https://avatars.githubusercontent.com/u/52753?v=3","gravatar_id":"","url":"https://api.github.com/users/rochaporto","html_url":"https://github.com/rochaporto","followers_url":"https://api.github.com/users/rochaporto/followers","following_url":"https://api.github.com/users/rochaporto/following{/other_user}","gists_url":"https://api.github.com/users/rochaporto/gists{/gist_id}","starred_url":"https://api.github.com/users/rochaporto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rochaporto/subscriptions","organizations_url":"https://api.github.com/users/rochaporto/orgs","repos_url":"https://api.github.com/users/rochaporto/repos","events_url":"https://api.github.com/users/rochaporto/events{/privacy}","received_events_url":"https://api.github.com/users/rochaporto/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T16:53:53Z","updated_at":"2015-03-12T16:53:53Z","body":"Another good pointer.\r\nhttp://www.obitko.com/tutorials/genetic-algorithms/ga-basic-description.php"}}