>From bb41efffc5258b0fe79b744e96981411b94e6aad Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Thu, 7 Apr 2016 22:45:01 +0200 Subject: [PATCH] gnu: Add nlopt. * gnu/packages/maths.scm (nlopt): New variable. --- gnu/packages/maths.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index adebf09..6b9d79d 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -911,6 +911,26 @@ sparse system of linear equations A x = b using Guassian elimination.") (inputs (alist-delete "pt-scotch" (package-inputs mumps-openmpi))))) +(define-public nlopt + (package + (name "nlopt") + (version "2.4.2") + (source (origin + (method url-fetch) + (uri (string-append "http://ab-initio.mit.edu/nlopt/nlopt-" + version ".tar.gz")) + (sha256 + (base32 "12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags '("--enable-shared"))) ; Also create a shared library. + (home-page "http://ab-initio.mit.edu/wiki/") + (synopsis "Library for non-linear optimization") + (description "NLopt is a library for nonlinear optimization, providing a +common interface for a number of different free optimization routines available +online as well as original implementations of various other algorithms.") + (license license:lgpl3))) + (define-public superlu (package (name "superlu") -- 2.5.5