An object-oriented modeling language for disciplined
convex programming (DCP) as described in Fu, Narasimhan, and Boyd
CVXR provides an object-oriented modeling language for convex
optimization, similar to
allows the user to formulate convex optimization problems in a natural
mathematical syntax rather than the restrictive standard form required
by most solvers. The user specifies an objective and set of constraints
by combining constants, variables, and parameters using a library of
functions with known mathematical properties.
CVXR then applies signed
disciplined convex programming
verify the problem’s convexity. Once verified, the problem is converted
into standard conic form using graph implementations and passed to a
cone solver such as ECOS or
This package is now released on CRAN, so you can install the current
released version as you would any other package for R, version 3.4 and
CVXR is known to work with earlier versions of R too, but we
don’t check our releases against older versions of R.)
install.packages('CVXR', repos = "")
Development versions can be installed from the Github repository assuming you have the development tools for R available, including the C compilers etc. Execute:
A number of tutorial examples are available on the CVXR website.
Updated tests to check against
scs version 1.2.3, which now
optimal rather than
optimal_inaccurrate as it did
Some cleanup of manual tests. New SCS returns slightly different
Sigma in manual test (
worst-case covariance example.
delay_load parameter dropped in
reticulate::import_from_path, per changes in
Cleaned up hooks into reticulate for commercial solvers.
drop = FALSE(in function
Index.get_special_slice) as suspected.
Added a note that CVXR can probably be compiled from source for earlier versions of R. This is issue #24
Bug fix: issue #28
interface.R) was unnecessarily using a
tolerance parameter, now eliminated.
Updated Solver.solve to adapt to new ECOSolveR. Require version 0.4 of ECOSolveR now.
unpack_results to behave exactly like in CVXPY. Added
documentation and testthat tests. Documented in Getting Faster