[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/185: gnu: Add r-clarabel.
From: |
guix-commits |
Subject: |
02/185: gnu: Add r-clarabel. |
Date: |
Tue, 2 Jul 2024 09:26:27 -0400 (EDT) |
rekado pushed a commit to branch r-team
in repository guix.
commit 7fc66f087693fd3c01dc60923b1994b5499c2b7e
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Jul 2 10:45:52 2024 +0200
gnu: Add r-clarabel.
* gnu/packages/cran.scm (r-clarabel): New variable.
Change-Id: I5c5e52da90e93d9ef2fb738ba494896e6712e61c
---
gnu/packages/cran.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 274432d194..bbdd935909 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -102,6 +102,7 @@
#:use-module (gnu packages protobuf)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages rust)
#:use-module (gnu packages ssh)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages statistics)
@@ -24089,6 +24090,41 @@ classes.")
"This package provides simple bindings to Unidata's udunits library.")
(license license:gpl2)))
+(define-public r-clarabel
+ (package
+ (name "r-clarabel")
+ (version "0.9.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "clarabel" version))
+ (sha256
+ (base32 "1g66y8s4v7qzm92dhnsmng28sm4lf6wggb4kc6arvp75z0i315jh"))))
+ (properties `((upstream-name . "clarabel")))
+ (build-system r-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-variables-for-rust
+ (lambda _
+ (setenv "CC" #$(cc-for-target)))))))
+ (native-inputs (list r-knitr rust `(,rust "cargo")))
+ (home-page "https://oxfordcontrol.github.io/clarabel-r/")
+ (synopsis "Interior point conic optimization solver")
+ (description
+ "This package provides a versatile interior point solver that solves
+@dfn{linear programs} (LPs), @dfn{quadratic programs} (QPs), @dfn{second-order
+cone programs} (SOCPs), @dfn{semidefinite programs} (SDPs), and problems with
+exponential and power cone constraints (@url{https://clarabel.org/stable/}).
+For quadratic objectives, unlike interior point solvers based on the standard
+@dfn{homogeneous self-dual embedding} (HSDE) model, Clarabel handles quadratic
+objective without requiring any epigraphical reformulation of its objective
+function. It can therefore be significantly faster than other HSDE-based
+solvers for problems with quadratic objective functions. Infeasible problems
+are detected using using a homogeneous embedding technique.")
+ (license license:asl2.0)))
+
(define-public r-classint
(package
(name "r-classint")
- branch r-team created (now bfec28345b), guix-commits, 2024/07/02
- 02/185: gnu: Add r-clarabel.,
guix-commits <=
- 03/185: gnu: Add r-countrycode., guix-commits, 2024/07/02
- 04/185: gnu: Add r-stabm., guix-commits, 2024/07/02
- 01/185: gnu: r-with-tests: Update to 4.4.1., guix-commits, 2024/07/02
- 06/185: gnu: Add r-gparotation., guix-commits, 2024/07/02
- 07/185: gnu: apache-arrow: Update to 16.1.0., guix-commits, 2024/07/02
- 05/185: gnu: Add r-minty., guix-commits, 2024/07/02
- 10/185: gnu: r-torch: Update to 0.13.0., guix-commits, 2024/07/02
- 09/185: gnu: liblantern: Update to 0.13.0., guix-commits, 2024/07/02
- 08/185: gnu: r-arrow: Update to 16.1.0., guix-commits, 2024/07/02
- 11/185: gnu: r-nloptr: Update to 2.1.1., guix-commits, 2024/07/02