Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization Issue in Example_SO1: Convergence Failure and Lack of Retained Optimal Samples in Iterative Process #23

Open
1278741833 opened this issue Apr 3, 2024 · 1 comment

Comments

@1278741833
Copy link

1278741833 commented Apr 3, 2024

Hi, thanks for this great tool and contribution.
Why hasn't this instance converged? After multiple runs, the optimal samples were not retained. Even when the optimal samples appeared during the iteration, they were not preserved. The program being run is example_so1.cpp, and the last_generation.chromosomes did not update according to the results of the iteration. Is this correct?
微信图片_20240403183919
image
image

@ababaritECN
Copy link

Hi,
I got the same problem.
I believe that it is related to the fact that new_generation_fronts.empty() is always true in case of single objective optimization, thus I fixed it by adding || (is_single_objective()) to the test:

if ((!new_generation.fronts.empty()) || (is_single_objective()))
                	last_generation = new_generation; ```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants