From efb965a4fabb09d0a4af7a9ff176d4af509ee134 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 24 Nov 2022 17:21:41 +0100 Subject: gnu: Add r-cvxr. * gnu/packages/cran.scm (r-cvxr): New variable. --- gnu/packages/cran.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 10d7411b88..ad0657ef3b 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -5711,6 +5711,43 @@ testing framework of Wald are generic and can therefore also be used in other contexts.") (license license:gpl2+))) +(define-public r-cvxr + (package + (name "r-cvxr") + (version "1.0-11") + (source (origin + (method url-fetch) + (uri (cran-uri "CVXR" version)) + (sha256 + (base32 + "0alp1g4bszxqcrjbn54bz1zswg8y10372fwwlbi0jjazycw9cap9")))) + (properties `((upstream-name . "CVXR"))) + (build-system r-build-system) + (propagated-inputs + (list r-bit64 + r-ecosolver + r-gmp + r-matrix + r-osqp + r-r6 + r-rcpp + r-rcppeigen + r-rmpfr + r-scs)) + (native-inputs (list r-knitr)) + (home-page "https://cvxr.rbind.io") + (synopsis "Disciplined convex optimization") + (description + "This package provides an object-oriented modeling language for +@dfn{disciplined convex programming} (DCP) as described in Fu, +Narasimhan, and Boyd (2020, ). 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. Interfaces to solvers on CRAN and elsewhere are provided.") + (license license:asl2.0))) + (define-public r-squarem (package (name "r-squarem") -- cgit v1.2.3