A simple example for for NLopt integration for Rcpp, using an example from the NLopt tutorial.
testConstrainedProblem(method = "MMA", verbose = FALSE)
A string defaulting to ‘MMA’ (also allowing ‘COBYLA’) which selects the algorithm use.
A boolean toggle defaulting to ‘false’
A numeric vector with two elements
https://nlopt.readthedocs.io/en/latest/NLopt_Tutorial/
# NOT RUN { testConstrainedProblem("MMA", TRUE) # }
Run the code above in your browser using DataLab