R equivalent of MATLAB's fmincon for constrained optimization?
Asked Answered
P

2

6

Is there an equivalent to the MATLAB function fmincon() which finds the minimum of a constrained non-linear function (with linear equality AND inequality constraints) in R?

I can rule out constrOptim (doesn't support equality constraints) and quadprog (only quadratic functions) which are listed on the R Optimization task page.

Pogey answered 14/12, 2011 at 16:52 Comment(0)
D
6

The package nloptr is an R interface to NLopt, a library for nonlinear optimization with algorithms for unconstrained optimization, bound-constrained optimization, and general nonlinear inequality/equality constraints.

Disgust answered 14/12, 2011 at 17:3 Comment(0)
H
0

There is also a package called pracma which includes fmincon() function similar to Matlab version.

Hoodwink answered 5/12, 2021 at 17:34 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.