osqp

OSQP: The Operator Splitting QP Solver

47 个版本 Python >=3.8
Goran Banjac <Bartolomeo Stellato <bartolomeo.stellato@gmail.com>, Vineet Bansal <vineetbansal@protonmail.com>, Amit Solomon <as3993@princeton.edu>, Henry Schreiner <HenrySchreinerIII@gmail.com>>
安装
pip install osqp
poetry add osqp
pipenv install osqp
conda install osqp
描述

PyPI version Build

OSQP Python

Python wrapper for OSQP: The Operator Splitting QP solver.

The OSQP (Operator Splitting Quadratic Program) solver is a numerical optimization package for solving problems in the form

$$\begin{array}{ll} \mbox{minimize} & \frac{1}{2} x^T P x + q^T x \ \mbox{subject to} & l \le A x \le u \end{array} $$

where $( x \in \mathbf{R}^n )$ is the optimization variable and $( P \in \mathbf{S}^{n}_{+} )$ is a positive semidefinite matrix.

Installation

To install osqp for python, make sure that you're using a recent version of pip (pip install --upgrade pip) and then use pip install osqp.

To install osqp from source, clone the repository (git clone https://github.com/osqp/osqp-python) and run pip install . from inside the cloned folder.

Documentation

The interface is documented here.

版本列表
1.1.3 2026-06-12
1.1.2 2026-06-09
1.1.1 2026-02-11
1.1.0 2026-01-26
1.0.5 2025-10-15
1.0.4 2025-05-08
1.0.3 2025-04-02
1.0.2 2025-04-01
1.0.1 2025-03-25
1.0.0 2025-03-23
1.0.0b4 2025-03-14
1.0.0b3 2025-02-13
1.0.0b1 2023-06-01
1.0.0a3 2023-05-28
1.0.0a1 2023-05-28
0.6.7 2024-05-22
0.6.7.post3 2024-10-11
0.6.7.post2 2024-10-10
0.6.7.post1 2024-07-23
0.6.7.post0 2024-06-25
0.6.6 2024-05-22
0.6.5 2024-02-05
0.6.4 2024-02-03
0.6.3 2023-05-26
0.6.2 2021-01-06
0.6.2.post9 2023-04-14
0.6.2.post8 2022-11-22
0.6.2.post5 2022-01-07
0.6.2.post4 2021-12-28
0.6.2.post3 2021-12-28
0.6.2.post2 2021-12-28
0.6.2.post1 2021-12-28
0.6.2.post0 2021-01-14
0.6.1 2019-09-10
0.6.0 2019-08-31
0.6.0.dev18 2019-08-19
0.5.0 2018-12-11
0.4.1 2018-09-27
0.4.0 2018-07-24
0.3.1 2018-06-11
0.3.0 2018-03-05
0.2.1 2017-11-25
0.2.0 2017-11-24
0.1.3 2017-09-21
0.1.2 2017-07-21
0.1.1 2017-04-11
0.0.0 2021-12-28