nloptr
2.2.1R Interface to NLopt
Overview
Solve optimization problems using an R interface to NLopt. NLopt is a free/open-source 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. See https://nlopt.readthedocs.io/en/latest/NLopt_Algorithms/ for more information on the available algorithms. Building from included sources requires 'CMake'. On Linux and 'macOS', if a suitable system build of NLopt (2.7.0 or later) is found, it is used; otherwise, it is built from included sources via 'CMake'. On Windows, NLopt is obtained through 'rwinlib' for 'R <= 4.1.x' or grabbed from the appropriate toolchain for 'R >= 4.2.0'.
- Updates included nlopt sources to
v2.10.0(#194, @astamm). - Fix clang-UBSAN memory leak issue (#189, @astamm).
- Add link to blog post about nloptr
v2.2.0. - More CI to build against all versions of
nlopt>=2.7.0. - Use
NLOPT_LD_LBFGSin place ofNLOPT_LD_LBFGS_NOCEDALwhen the latter is
not available (in nlopt v2.9.x).
- Add checks for
x0andeval_finnloptr(#191, @astamm).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-27
- ERROR12 OK, 1 ERROR2026-06-24
- OK14 OK2026-03-10
Documentation
- Help pages
- 26 (1 internal)includes a package overview page
- Examples that run
- 100%23 run in a plain check
- Exported functions with examples
- 92%
- Documented parameters
- 82%
- Return-value docs
- 96%
- Help pages citing references
- 73%
- nloptr HTML
Downloads
Repository
- PRs merged (all time)
- 69%
- Median days to close, 50 most recently updated closed issues
- 8
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
13 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/astamm/nloptr on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-08-13 · The repository has a site deploy workflow
pkgdown site last built 2025-08-13
Show all practicesHide 2 practices
Dependencies
Installing nloptr adds no packages beyond those that come with R.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 108 more dependents and 30 packages that suggest it on CRAN ↗
Code & Tests
People & History
Show 2 more contributorsHide 2 contributors
Previously maintained by Jelmer Ypma (0.8.2 to 1.2.2.3).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.2.1Latest
- 2.2.02025-03-12 · diff ↗
- 2.1.12024-06-25 · diff ↗
- 2.1.02024-06-19 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 2.0.32022-05-26 · diff ↗
- 2.0.22022-05-19 · diff ↗
- 2.0.12022-05-03 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 2.0.02022-01-26 · diff ↗
- 1.2.2.32021-11-02 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.2.2.22020-07-02 · diff ↗
Show 29 earlier eventsHide 29 earlier events
- RR 4.0.0 released · 2020-04-24
- 1.2.2.12020-03-11 · diff ↗
- 1.2.2
- RR 3.6.0 released · 2019-04-26
- 1.2.12018-10-03 · diff ↗
- 1.2.02018-09-30 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.0.4
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 1.0.02014-02-16 · diff ↗ ·
added 20 exports
nl.grad, nl.jacobian, nl.opts, slsqp, cobyla, bobyqa, newuoa, direct, directL, neldermead, sbplx, lbfgs, tnewton, mma, varmetric, mlsl, crs2lm, isres, stogo, auglag - 0.9.62013-11-19 · diff ↗
- 0.9.52013-11-13 · diff ↗
- 0.9.32013-07-31 · diff ↗
- 0.9.12013-04-29 · diff ↗
- RR 3.0.0 released · 2013-04-03
- RR 2.15.0 released · 2012-03-30
- 0.8.92011-11-23 · diff ↗
- 0.8.82011-11-02 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 0.8.72011-10-27 · diff ↗
- 0.8.62011-10-24 · diff ↗
- 0.8.52011-09-05 · diff ↗
- 0.8.4
- 0.8.3
- 0.8.22011-06-22
- RR 2.13.0 released · 2011-04-13
Package metadata
- First published
- 2011-06-22
- Total releases
- 28 / 15 yrs
- License
- LGPL (>= 3) OSI
- Download size
- 2.1 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("nloptr")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.