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

Fix invalid return code in MOI.TerminationStatus #241

Merged
merged 2 commits into from
Feb 3, 2023

Conversation

odow
Copy link
Contributor

@odow odow commented Jan 29, 2023

if haskey(_STATUS_CODES, model.result.status)
return _STATUS_CODES[model.result.status]
else
return MOI.UNKNOWN_RESULT_STATUS
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a ResultStatusCode, but it must be a TerminationStatusCode.

Copy link
Collaborator

@frapac frapac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. The changes look good to me. The issue with the invalid values in the Hessian has been fixed in #243 . Once the tests are passing, I would suggest merging this PR before merging #243. We should update the test accordingly:
https://github.com/MadNLP/MadNLP.jl/blob/fp/fix_nan_initial_multipliers/test/MOI_interface_test.jl#L80-L95

@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2023

Codecov Report

Merging #241 (e0461f5) into master (b000abe) will increase coverage by 0.40%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master     #241      +/-   ##
==========================================
+ Coverage   74.03%   74.44%   +0.40%     
==========================================
  Files          38       38              
  Lines        3871     3878       +7     
==========================================
+ Hits         2866     2887      +21     
+ Misses       1005      991      -14     
Impacted Files Coverage Δ
src/Interfaces/MOI_interface.jl 72.40% <100.00%> (+0.12%) ⬆️
src/IPM/utils.jl 94.05% <0.00%> (+0.05%) ⬆️
src/IPM/callbacks.jl 93.10% <0.00%> (+1.14%) ⬆️
src/IPM/solver.jl 93.67% <0.00%> (+1.63%) ⬆️
src/utils.jl 92.00% <0.00%> (+6.28%) ⬆️
src/MadNLP.jl 66.66% <0.00%> (+66.66%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@frapac frapac merged commit 7146792 into MadNLP:master Feb 3, 2023
@odow odow deleted the od/fix-termination-status branch February 4, 2023 01:18
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 this pull request may close these issues.

3 participants