CVXR: Disciplined Convex Optimization

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.

Package details

AuthorAnqi Fu [aut, cre], Balasubramanian Narasimhan [aut], Steven Diamond [aut], John Miller [aut], Stephen Boyd [ctb]
MaintainerAnqi Fu <anqif@alumni.stanford.edu>
LicenseApache License 2.0 | file LICENSE
Version1.8.1
URL https://cvxr.rbind.io https://www.cvxgrp.org/CVXR/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("CVXR")

Try the CVXR package in your browser

Any scripts or data that you put into this service are public.

CVXR documentation built on March 6, 2026, 9:10 a.m.