Quadratic Programming Solver using the 'OSQP' Library
Overview
Provides bindings to the 'OSQP' solver. The 'OSQP' solver is a numerical optimization package for solving convex quadratic programs written in 'C' and based on the alternating direction method of multipliers. See doi:10.48550/arXiv.1711.08013 for details.
Breaking changes
- Replaced R6 with S7 classes. Model methods are now accessed via
@(e.g.,model@Solve()) instead of$. - Renamed settings to match OSQP 1.0:
warm_start->warm_starting,polish->polishing. The old names are accepted with deprecation warnings.
New features
- Upgraded OSQP C library from 0.6.3 to 1.0.0.
- Added
WarmStart()andColdStart()methods for primal/dual warm starting. - New OSQP 1.0 settings:
rho_is_vec,check_dualgap,cg_max_iter,cg_tol_reduction,cg_tol_fraction,cg_precond,profiler_level.
Show all changes in 1.0.0Hide the rest of the changes in 1.0.0
- New solver info fields:
dual_obj_val,duality_gap.
Other changes
- Added vignette with examples for lasso regression, portfolio optimization, and warm starting.
- User-facing messages now use the
clipackage. - Vendored QDLDL v0.1.8 for CRAN compatibility.
- OSQP C library printing now uses
Rprintfinstead ofprintf. - Declared GNU make in
SystemRequirements. R CMD checkpasses withStatus: OK.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- WARNING12 OK, 1 WARNING2026-06-08
- OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
- WARNING11 OK, 2 NOTE, 1 WARNING2026-04-22
- ERROR10 OK, 2 NOTE, 1 WARNING, 1 ERROR2026-04-18
- WARNING11 OK, 2 NOTE, 1 WARNING2026-03-10
Documentation
- Help pages
- 4 (1 internal)
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 67%
- Documented parameters
- 42%
- Return-value docs
- 67%
- Help pages citing references
- 25%
Downloads
Repository
- PRs merged (all time)
- 88%
- Median days to close, 50 most recently updated closed issues
- 20
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/osqp/osqp-r on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-02-16Named in .Rbuildignore: .claudeNamed in .gitignore: .claudeCommits: at least 3 crediting it in the message
- Claude Opus 4.63 commits · Feb 2026
Dependencies
Installing osqp adds 3 packages (3 with compiled code, 2.6 MB of source tarballs). Heaviest: Rcpp 1.8 MB, cli 629 KB, S7 180 KB.
Show all 28 packagesHide all 28 packages
Code & Tests
People & History
Previously maintained by Vineet Bansal (0.6.0.4 to 0.6.0.5) and Paul Goulart (0.6.0.2 to 0.6.0.3).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.0.0Latest
- RR 4.5.0 released · 2025-04-11
- 0.6.3.32024-06-08 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.6.3.22023-10-20 · diff ↗
- 0.6.3.12023-10-04 · diff ↗
- 0.6.32023-10-03 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.6.0.82023-01-31 · diff ↗
- 0.6.0.72022-11-09 · diff ↗
- 0.6.0.62022-09-29 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.6.0.52021-12-07 · diff ↗
- 0.6.0.42021-12-06 · diff ↗
- RR 4.1.0 released · 2021-05-18
Show 11 earlier eventsHide 11 earlier events
Package metadata
- First published
- 2018-07-01
- Total releases
- 18 / 8 yrs
- License
- Apache License 2.0 | file LICENSE OSI
- Copyright
- See COPYRIGHT in the package
- Download size
- 446 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("osqp")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.