-
Notifications
You must be signed in to change notification settings - Fork 41
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
Refactor get_reason #395
Refactor get_reason #395
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #395 +/- ##
=======================================
Coverage 99.77% 99.77%
=======================================
Files 72 72
Lines 7491 7586 +95
=======================================
+ Hits 7474 7569 +95
Misses 17 17 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Mateusz Baran <mateuszbaran89@gmail.com>
Co-authored-by: Mateusz Baran <mateuszbaran89@gmail.com>
That can be saved in a separate field in the criterion but leaving the string in this one place would be fine too. |
Co-authored-by: Mateusz Baran <mateuszbaran89@gmail.com>
Oh, I missed one solver, in CMA-ES, which has quite a few stopping criteria, they always returned a reason even if they were not active. For now I think I did rewrite them, but testing them is still missing. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Yes, I think changing it to |
Did that. Also tried to use the same tests for |
Hopefully also fixed the last error I mentioned above, which was mainly that the median of an empty vector does not exist, so I introduced a check and tested that as well. |
This resolves #389.
I had a bit of a boring train ride today and worked through all stopping criteria, removed
.reason
fields and when necessary introduced values to store obtained values being printed when generating the string.There are two small things left
-\xi
(and not just\xi
like now)JuMP
their 3 checks for reasons return now empty strings and I do no directly see why