Skip to content

CVXR

Disciplined Convex Optimization

v1.9.1 · Jun 9, 2026 · Apache License 2.0 | file LICENSE

Description

An object-oriented modeling language for disciplined convex programming (DCP) as described in Fu, Narasimhan, and Boyd (2020, <doi:10.18637/jss.v094.i14>). It allows the user to formulate convex optimization problems in a natural way following mathematical convention and DCP rules. The system analyzes the problem, verifies its convexity, converts it into a canonical form, and hands it off to an appropriate solver to obtain the solution. This version uses the S7 object system for improved performance and maintainability.

Downloads

CRAN

13.6K

Last 30 days

1028th

66.8K

Last 90 days

201.8K

Last year

Trend: -15% (30d vs prior 30d)

r2u CRAN

294

Last 30 days

1.1K

Last 90 days

2.4K

Last year

Trend: -31.9% (30d vs prior 30d)

autoCRAN

2

Last 7 days

13

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex'
NOTE r-oldrel-macos-x86_64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex', 'scip', 'xpress'
NOTE r-oldrel-windows-x86_64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex', 'xpress'
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/CVXR.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex'
NOTE r-oldrel-macos-x86_64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex', 'scip', 'xpress'
NOTE r-oldrel-windows-x86_64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex', 'xpress'
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 11, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex'
NOTE r-oldrel-macos-x86_64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex'
NOTE r-oldrel-windows-x86_64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex'
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-patched-linux-x86_64

examples

Running examples in ‘CVXR-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: conv
> ### Title: Discrete Convolution
> ### Aliases: conv
> 
> ### ** Examples
> 
> set.seed(129)
> x <-
...[truncated]...
()` is deprecated for <OSQP_Model> objects.
ℹ Use `model@Solve()` instead.
Error in status_map(object, solution$info$status_val) : 
  OSQP status unrecognized: 5
Calls: solve ... invert -> invert -> invert -> status_map -> status_map
Execution halted
NOTE r-oldrel-macos-arm64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex'
NOTE r-oldrel-macos-x86_64

package dependencies

Packages which this enhances but not available for checking:
  'Rcplex', 'gurobi', 'rcbc'
NOTE r-oldrel-windows-x86_64

package dependencies

Packages which this enhances but not available for checking:
  'gurobi', 'Rcplex'

Reverse Dependencies (34)

depends

Dependency Network

Dependencies Reverse dependencies S7 Matrix Rcpp clarabel cli gmp highs osqp scs slam tramnet BsplineQuantReg DebiasInfer DiSCos EmpiricalDynamics HonestDiD MaximinInfer PlackettLuce Rdimtools RobustIV SIHR SLSEdesign WRI aramappings fdaSP +19 more reverse deps CVXR

Version History

23 tracked
updated 1.9.1 ← 1.8.2 diff Jun 9, 2026
updated 1.8.2 ← 1.8.1 diff Apr 3, 2026
new 1.8.1 Mar 10, 2026
updated 1.8.1 ← 1.0-15 diff Mar 5, 2026
updated 1.0-15 ← 1.0-14 diff Nov 6, 2024
updated 1.0-14 ← 1.0-13 diff Jun 26, 2024
updated 1.0-13 ← 1.0-12 diff May 31, 2024
updated 1.0-12 ← 1.0-11 diff Feb 1, 2024
updated 1.0-11 ← 1.0-10 diff Oct 29, 2022
updated 1.0-10 ← 1.0-9 diff Nov 9, 2021
updated 1.0-9 ← 1.0-8 diff Jan 18, 2021
updated 1.0-8 ← 1.0-1 diff Sep 12, 2020
updated 1.0-1 ← 1.0 diff Apr 1, 2020
updated 1.0 ← 0.99-7 diff Feb 1, 2020
updated 0.99-7 ← 0.99-6 diff Nov 6, 2019