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

found a bug in nsga3.py #17

Closed
weihongjing opened this issue Aug 10, 2019 · 1 comment
Closed

found a bug in nsga3.py #17

weihongjing opened this issue Aug 10, 2019 · 1 comment

Comments

@weihongjing
Copy link

    pop = self.pop[I]
    print(pop.shape)
    print(self.pop.get("is_closest"))
    if len(pop) == 1:
        self.opt = pop
    else:
        self.opt = pop[self.pop.get("is_closest")]

here the last line should be
self.opt = self.pop[self.pop.get("is_closest")]

@blankjul
Copy link
Collaborator

Thanks for your comment. Also, infeasible solutions would have been returned if the problem has constrains.
It should be fixed in the new release 0.3.1. Please let me know if your test case works now!

@blankjul blankjul closed this as completed Oct 4, 2019
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