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

print (sol) of nsga2 is error #393

Closed
Zcaic opened this issue Apr 23, 2024 · 0 comments · Fixed by #394
Closed

print (sol) of nsga2 is error #393

Zcaic opened this issue Apr 23, 2024 · 0 comments · Fixed by #394

Comments

@Zcaic
Copy link

Zcaic commented Apr 23, 2024

I run the examples/nsga2_multi_objectiva.py, it raise when run print(sol).

I found it caused by

line98 ...  inform_val = self.optInform["value"]
line99 ...  inform_text = self.optInform["text"]

in pyOpt_solution.py.

Becasue in pyNSGA2.py:

line183... sol_inform = {}

The sol_inform doesn't have key value and text.
I temporarily solved it by replacing sol_inform = {} with sol_inform = {"value":"","text":""}.

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

Successfully merging a pull request may close this issue.

1 participant