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

Error with duplicate objective names #132

Closed
ellepin opened this issue Dec 15, 2022 · 4 comments · Fixed by #133
Closed

Error with duplicate objective names #132

ellepin opened this issue Dec 15, 2022 · 4 comments · Fixed by #133
Assignees
Labels
bug Something isn't working

Comments

@ellepin
Copy link

ellepin commented Dec 15, 2022

Describe the bug

When there are multiple target values, the function of the output tab does not work if there are names of the same objective name.
The same does not work if there are two empty objective names.

To Reproduce

1.Open sample.gh.
2. Delete and empty the names of objective "v0" and "v1".
3. Run optimization in Tunny.
4. From the output tab of Tunny, click on "Pareto solutions"
5. The process bar stops in the middle of the process and nothing happens after waiting.

When started in debug mode, "System.ArgumentException" is generated and the program is terminated. Error occurs when the "objectives" variable in dictionary format tries to have the same key.

Expected behavior

Screenshots

Environment

  • OS: Windows10
  • Rhino: 7.24.22308.15001
  • Tunny: v0.5.0

Additional context

@hrntsm hrntsm self-assigned this Dec 17, 2022
@hrntsm hrntsm added the bug Something isn't working label Dec 17, 2022
@hrntsm
Copy link
Owner

hrntsm commented Dec 17, 2022

@ellepin
Thanks for the report. I have checked about the bug and will fix it.
If an incorrect objective nickname is entered, an error will be generated.

@hrntsm
Copy link
Owner

hrntsm commented Dec 17, 2022

The Tunny window is not shown by outputting an error when there is a problem as follows.

video

@hrntsm
Copy link
Owner

hrntsm commented Dec 17, 2022

@ellepin
If you would like to review the fixed version, please download it from Artifacts at the bottom of the following page.
https://github.com/hrntsm/Tunny/actions/runs/3719626356

@ellepin
Copy link
Author

ellepin commented Dec 17, 2022

@hrntsm
Thanks for fixing the bug. The fixed version worked.
Thank you again for developing this wonderful component.

@ellepin ellepin closed this as completed Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants