Skip to content

Commit

Permalink
Install quadprog (current default QP solver)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-caron committed Jul 12, 2022
1 parent f37ac7d commit 0340727
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ classifiers = [
dependencies = [
"numpy >=1.20.0",
"pin >=2.6.3",
"quadprog >=0.1.11",
"qpsolvers >=1.8.0",
]

Expand Down
4 changes: 2 additions & 2 deletions tests/test_body_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,6 @@ def test_lm_damping_has_effect_under_error(self):
H_1, c_1 = berg_task.compute_qp_objective(self.mock_configuration)
berg_task.lm_damping = 1e-4
H_2, c_2 = berg_task.compute_qp_objective(self.mock_configuration)
qd_1 = solve_qp(H_1, c_1) # H_1 is p.s.d. from LM damping
qd_2 = solve_qp(H_2, c_2) # idem for H_2
qd_1 = solve_qp(H_1, c_1, solver="quadprog") # H_1 p.s.d. (LM damping)
qd_2 = solve_qp(H_2, c_2, solver="quadprog") # idem for H_2
self.assertGreater(np.linalg.norm(qd_2 - qd_1), 1e-6)
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ deps =
pin
pylint
pytest
quadprog
qpsolvers
upkie_description
commands =
Expand Down

0 comments on commit 0340727

Please sign in to comment.