Type: | Package |
Title: | 'Rcpp' Package Illustrating Header-Only Access to 'NLopt' |
Version: | 0.0.2 |
Date: | 2025-03-09 |
Description: | An example package which shows use of 'NLopt' functionality from C++ via 'Rcpp' without requiring linking, and relying just on 'nloptr' thanks to the exporting API added there by Jelmer Ypma. This package is a fully functioning, updated, and expanded version of the initial example by Julien Chiquet at https://github.com/jchiquet/RcppArmadilloNLoptExample also containing a large earlier pull request of mine. |
License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
Encoding: | UTF-8 |
LinkingTo: | Rcpp, nloptr (≥ 1.2.0) |
Imports: | Rcpp, nloptr (≥ 1.2.0) |
Depends: | R (≥ 3.0.2) |
RoxygenNote: | 6.0.1 |
URL: | https://github.com/eddelbuettel/rcppnloptexample, https://dirk.eddelbuettel.com/code/rcpp.nloptexample.html |
BugReports: | https://github.com/eddelbuettel/rcppnloptexample/issues |
NeedsCompilation: | yes |
Packaged: | 2025-03-09 14:27:40 UTC; edd |
Author: | Dirk Eddelbuettel |
Maintainer: | Dirk Eddelbuettel <edd@debian.org> |
Repository: | CRAN |
Date/Publication: | 2025-03-09 15:10:02 UTC |
NLopt Call Example from Rcpp
Description
A simple example for for NLopt integration for Rcpp, using an example from the NLopt tutorial.
Usage
testConstrainedProblem(method = "MMA", verbose = FALSE)
Arguments
method |
A string defaulting to ‘MMA’ (also allowing ‘COBYLA’) which selects the algorithm use. |
verbose |
A boolean toggle defaulting to ‘false’ |
Value
A numeric vector with two elements
See Also
https://nlopt.readthedocs.io/en/latest/NLopt_Tutorial/
Examples
testConstrainedProblem("MMA", TRUE)