-
Notifications
You must be signed in to change notification settings - Fork 98
Add MOI.LagrangeMultiplier attribute #2890
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
|
Is there any reason this is LagrangeMultipliers (plural)? Just seems inconsistent with ConstraintDual. Should there also be a |
|
I was wondering about the start. And yes, we could go with singular. |
|
Warm start is a nice-to-have but less important IMO, since we can always do the conversion manually with |
|
Nah, we've added an explicit warm-start for |
|
If we only have solvers for which the attribute is easy to implement, I'd rather not have |
9ceef5b to
94b940f
Compare
|
Okay, I removed the fallback. |
Clarified the relationship between the attribute and ConstraintDual, emphasizing the important case involving VectorNonlinearOracle constraints.
|
@odow, just to be sure, I assume that's it not possible right now with MOI v1.48 to fetch the optimal Langrange multiplier on a real problem solved by |
|
Give me a minute! Yes, we needed to release v1.48 first. Then I need to make changes to Ipopt.jl and KNITRO.jl. Only after they are released will you be able to call |
|
Yeah no problem, no hurries! I was just lost in the "attribute" concept (if it's somethings that should just work without any changes required on NLP solver side or not). |
|
MOI can be confusing. Its main job is to be a thin API layer that just defines the attributes. This lets external Julia packages implement multiple dispatch without type piracy. In any other Julia community we could have created MathOptInterfaceBase.jl. But there's also a bunch of other heavy lifting code in MOI for doing related things, so it can be hard to know from the outside what are new API definitions that need work in other packages, and what are new features being added to MOI that are instantly accessible from every solver package. |
Closes #2887
x-ref jump-dev/Ipopt.jl#521
Questions:
get_fallback?