Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Action Items
This PR adds benchmarks and tests for this implementation vs. OSQP and cvxpy as a front end to ECOS, Mosek, and Gurobi (if we really wanted to split hairs, we could forgo the cvxpy interface to get a fully optimized benchmark). Also adds linters for style checking.
Style
Timing benchmarks
Correctness tests (compare vs. any cvxpy implementation when applicable)
hypothesisstrategy to search over input matrices instead of the batch size/dimensionsConvergence Bugs: Our Random Sampling
For the case
jaxosqpdoes not converge whilecvxpyusingOSQPdoes. The optimal value returned is6.610848939084965and the optimal solution isarray([ 4.26391780e-09, -1.60000255e-03, -2.47453266e-13, -5.24629431e-14]).Similar failure case:
Optimal value:
-1.3149429255238995e-10Optimal solution:
array([4.94630958e-22, 8.77618090e-20, 2.63057785e-10])Similar failure case:
Optimal value:
-13243690.119393358Optimal solution:
array([ 6.78801264e-02, -2.95045580e+00, -3.59848352e-01, 9.69489208e-08, -9.99999150e-01, 9.99849017e-04, 7.54688174e-02])Similar failure case:
Optimal value:
-19863515953.974216Optimal solution:
array([ 3.92104260e-07, 4.07435525e-07, -1.25582277e-06, 3.97270312e+03, -7.30674681e-08, 4.46252001e-08])Similar failure case:
Optimal value:
-2.616281296751756e-21Optimal solution:
array([-2.32378377e-18, -8.70083478e-14])