Details in GA code

Source: Internet
Author: User

Code details in GA-BLX crossover-gaussion variations:

I wrote a GA code, and on the 2005 test function, I was never able to get results of an order of magnitude similar to that of other students in the lab. Now, by referring to the code of other students, we can find at least the following problems:

1. After crossover and mutation operations, each dimension of the new individual should have a lower limit;

2. Perform a crossover operation on two individuals at random. If the two individuals are the same, no real-value crossover is performed. The previous Code ignores this issue. In the newly modified code, if the two individuals are the same, the next individual is selected for crossover;

3. the results may not be better after the mutation operation. First, stay with the elite individual nremain, and then select N-nremain for cross operations.

Details in GA code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.