#solver #forms #documentation #osqp #osqp-sys

sys osqp-sys

FFI bindings to the OSQP (Operator Splitting Quadratic Program) solver

15 releases (2 stable)

Uses old Rust 2015

new 1.0.1 Apr 21, 2025
0.6.3 Dec 1, 2024
0.6.2 Jan 7, 2021
0.6.0 Sep 5, 2019
0.2.1-pre.2 Dec 13, 2017

#1023 in Algorithms

Download history 148/week @ 2024-12-31 536/week @ 2025-01-07 673/week @ 2025-01-14 678/week @ 2025-01-21 779/week @ 2025-01-28 1569/week @ 2025-02-04 1349/week @ 2025-02-11 1302/week @ 2025-02-18 1496/week @ 2025-02-25 1036/week @ 2025-03-04 1104/week @ 2025-03-11 1086/week @ 2025-03-18 487/week @ 2025-03-25 480/week @ 2025-04-01 636/week @ 2025-04-08 801/week @ 2025-04-15

2,455 downloads per month
Used in 12 crates (via osqp)

Apache-2.0

3.5MB
38K SLoC

C 30K SLoC // 0.1% comments C++ 3.5K SLoC // 0.1% comments CUDA 2K SLoC // 0.2% comments Python 1K SLoC // 0.2% comments Rust 425 SLoC // 0.0% comments Shell 56 SLoC Batch 27 SLoC

osqp.rs

Rust 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

minimize        0.5 x' P x + q' x

subject to      l <= A x <= u

where x in R^n is the optimization variable.

The objective function is defined by a positive semidefinite matrix P in S^n_+ and vector q in R^n.

The linear constraints are defined by matrix A in R^{m x n} and vectors l in R^m U {-inf}^m, u in R^m U {+inf}^m.

Rust Interface Documentation

Solver Documentation

Dependencies