|
From: | D X |
Subject: | Re: [Gneuralnetwork] Genetic Algorithm on version 0.6.0 |
Date: | Sat, 26 Mar 2016 12:01:03 -0500 |
Hi JM,
I did a self-review on my code, found couple of issues. one is hard code number issue, and another is wrong size calculation issue. 1. crossover function should based on WMAX and WMIN, not hard-coded 0, 1, or -1; 2. I got wrong calculation of pool size, should be SIZE * SIZE; please see attached c file with both issues fixed. I think it good to go! Thanks, and let me know if it have any issues. Github: https://github.com/cxxaddict Nan. Date: Sat, 26 Mar 2016 15:19:32 +0100 Subject: Re: [Gneuralnetwork] Genetic Algorithm on version 0.6.0 From: address@hidden To: address@hidden CC: address@hidden; address@hidden Hi Nan, Many thanks for this detailed answer. Now I understand and it makes perfectly sense. At this point, I am 100% sure that GA2 is an improvement over GA1. The fact that GA2 might have some problem in getting the global minimum is nothing surprising after all. There is not such a thing as the "perfect optimizer" unfortunately ;) Thanks again for your very useful contribution! JM 2016-03-26 15:12 GMT+01:00 D X <address@hidden>:
|
genetic_algorithm.c
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |