-
Notifications
You must be signed in to change notification settings - Fork 529
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
PEP: Dual Sign Convention #3519
Comments
This should actually be in #3496 , right? |
I will start working on this. I'll put the above in our readthedocs docs and add tests to verify that all of the solver interfaces behave the same. |
When a user has a maximization problem, I assume the only thing that changes is the sign of |
I always forget about maximization! Good catch, @Robbybp! |
So for maximization problems, I suggest that the Lagrangian is the same: so that the signs of the duals flip: |
Summary
I propose the use of the following sign convention for duals in the new solver interfaces.
Given the problem
Define the Lagrangian as
Then, the KKT conditions are [1]
If a particular solver does not adopt this convention, then we will have to map things back and forth both when retrieving duals and when initializing duals.
This sign convention would have to be based on the (lower, body, upper) representation of constrains rather than the "raw" expression.
[1] Nocedal, Jorge, and Stephen J. Wright, eds. Numerical optimization. New York, NY: Springer New York, 1999.
The text was updated successfully, but these errors were encountered: