RcppNLoptExample (version 0.0.1)

testConstrainedProblem: 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

Run this code
# NOT RUN {
testConstrainedProblem("MMA", TRUE)
# }

Run the code above in your browser using DataLab