Austin Schuh | 9049e20 | 2022-02-20 17:34:16 -0800 | [diff] [blame] | 1 | CVXPY |
2 | ===== | ||||
3 | |||||
4 | `CVXPY <http://www.cvxpy.org/>`_ 1.0 supports the OSQP solver by default. After defining your problem, you can solve it with OSQP by just calling | ||||
5 | |||||
6 | .. code:: python | ||||
7 | |||||
8 | problem.solve() | ||||
9 | |||||
10 | |||||
11 | OSQP is the default QP solver used. To specify it explicitly together with some options you can execute | ||||
12 | |||||
13 | .. code:: python | ||||
14 | |||||
15 | problem.solve(solver=OSQP, max_iter=2000) | ||||
16 | |||||
17 | where we set the :code:`max_iter` option to :code:`2000`. |