-
Notifications
You must be signed in to change notification settings - Fork 17
[Breaking change] Change names to follow JSO conventions #194
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #194 +/- ##
==========================================
+ Coverage 72.78% 75.72% +2.94%
==========================================
Files 38 37 -1
Lines 3424 3468 +44
==========================================
+ Hits 2492 2626 +134
+ Misses 932 842 -90
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, the renaming makes a lot of sense. I just have a doubt for solve!
, I think I still prefer optimize!
. The reasons are:
- the words optimize conveys more meaning than just solve (mathematics is all about solving equations, whereas optimizing is more context specific).
- JuMP/MOI are both using
optimize!
But I am open to any counter argument!
@frapac, the goal of using |
I see. And how about doing? function solve!(::MadNLPSolver, nlp::AbstractNLPProblem)
solver = MadNLPSolver(nlp)
MadNLP.optimize!(solver)
end
I don't have any strong opinion about this too. My main concern is to have an easy interface if we have to re-solve the problem. |
@frapac the current |
My other concern is that the API in SolversCore.jl is not fixed yet, with a PR opened since Mar 29, 2021. I think we should expect some changes in the naming on their side too, at least till the PR is not merged. |
@frapac Good point. I think we can hold until this PR gets merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
This PR makes several changes in the struct/function/variable names to comply with JSO conventions. These changes include
InteriorPointSolver
toMadNLPSolver
Logger
toMadNLPLogger
Counters
toMadNLPCounters
optimize!
tosolve!
ips
tosolver
ips.l
toips.y