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

A bug in assign_crowding_distance.m #5

Open
ys38079456 opened this issue May 8, 2022 · 1 comment
Open

A bug in assign_crowding_distance.m #5

ys38079456 opened this issue May 8, 2022 · 1 comment

Comments

@ys38079456
Copy link

In the nobj loop in line 66 to 83(also in 53 to 58)

sorted_front is reloaded every time, so 'sorted_front(2:end-1,end) = sorted_front(2:end-1,end) + cds' is invalid in each loop.

And 'crowding_distance' is only depend on the final obj

@chudur-budur
Copy link
Owner

Hi, thank you for noting this out. You can also submit a pull request with your changes, we can merge it if everything looks fine.

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