Differentiating Through Cone Programs
Overview
A port of the 'python' 'diffcp' package. Computes the derivative of the optimal solution map of a convex cone program, treating the program as an implicit function of its data (constraint matrix, offset, objective coefficients, and optionally a quadratic), mirroring Agrawal et al. (2019) doi:10.48550/arXiv.1904.09043.
solve_and_derivative()now reportsdAon the sparsity pattern ofA**including any explicit zeros**, matching Pythondiffcp. Covered bytests/testthat/test-explicit-zeros.R, including a finite-difference check that the recovered derivative is correct and not merely present.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK7 OK2026-05-20
Documentation
- Help pages
- 9 (2 internal)includes a package overview page
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 13%
- Documented parameters
- 100%
- Return-value docs
- 88%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
Commits over time
5 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/bnaras/diffcp on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-08-23 · The repository has a site deploy workflow
pkgdown site last built 2026-08-23
Dependencies
Code & Tests
People & History
Package metadata
- First published
- 2026-05-19
- Total releases
- 3 / 1 yrs
- License
- Apache License (>= 2)
- Download size
- 223 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("diffcp")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.