From: Efraim Flashner <efraim@flashner.co.il>
To: 53656@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#53656] [PATCH 2/2] gnu: Add julia-optim.
Date: Mon, 31 Jan 2022 12:40:33 +0200 [thread overview]
Message-ID: <93a51e504cd30094511b1eac3957e10ff800cdf0.1643625386.git.efraim@flashner.co.il> (raw)
In-Reply-To: <cover.1643625386.git.efraim@flashner.co.il>
* gnu/packages/julia-xyz.scm (julia-optim): New variable.
---
gnu/packages/julia-xyz.scm | 48 ++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index 7de0c32113..2fcc4cf83e 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -23,6 +23,7 @@
(define-module (gnu packages julia-xyz)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
+ #:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (guix packages)
#:use-module (guix git-download)
@@ -3650,6 +3651,53 @@ (define-public julia-nnlib
doesn't provide any other \"high-level\" functionality like layers or AD.")
(license license:expat)))
+(define-public julia-optim
+ (package
+ (name "julia-optim")
+ (version "1.6.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/JuliaNLSolvers/Optim.jl")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0nvl3xp9c6r80y9n7fic4zyq2443apfmbcpnx0wvgkv4vsy08x5j"))))
+ (build-system julia-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'adjust-tests
+ (lambda _
+ ;; TODO: Figure out why this test fails.
+ (substitute* "test/runtests.jl"
+ ((".*l_bfgs.*") "")))))))
+ (propagated-inputs
+ (list julia-compat
+ julia-fillarrays
+ julia-forwarddiff
+ julia-linesearches
+ julia-nanmath
+ julia-nlsolversbase
+ julia-parameters
+ julia-positivefactorizations
+ julia-statsbase))
+ (native-inputs
+ (list julia-linesearches
+ julia-measurements
+ julia-nlsolversbase
+ julia-optimtestproblems
+ julia-positivefactorizations
+ julia-recursivearraytools
+ julia-stablerngs))
+ (home-page "https://github.com/JuliaNLSolvers/Optim.jl")
+ (synopsis "Optimization functions for Julia")
+ (description "@code{Optim.jl} is a package for univariate and multivariate
+optimization of functions.")
+ (license license:expat)))
+
(define-public julia-optimtestproblems
(package
(name "julia-optimtestproblems")
--
2.34.0
next prev parent reply other threads:[~2022-01-31 10:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-31 10:38 [bug#53656] [PATCH 0/2] 2 Julia packages Efraim Flashner
2022-01-31 10:40 ` [bug#53656] [PATCH 1/2] gnu: Add julia-linesearches Efraim Flashner
2022-01-31 10:40 ` Efraim Flashner [this message]
2022-02-10 16:22 ` [bug#53656] [PATCH 0/2] 2 Julia packages zimoun
2022-02-13 10:23 ` bug#53656: " Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=93a51e504cd30094511b1eac3957e10ff800cdf0.1643625386.git.efraim@flashner.co.il \
--to=efraim@flashner.co.il \
--cc=53656@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).