Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R equivalent of MATLAB's fmincon for constrained optimization?

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.

like image 656
Ram Ahluwalia Avatar asked Dec 14 '11 16:12

Ram Ahluwalia


People also ask

What algorithm does Fmincon use?

fmincon has 4 algorithm options: 'interior-point', 'trust-region-reflective', 'sqp', 'active-set'.

What is Fmincon used for?

fmincon is a Nonlinear Programming solver provided in MATLAB's Optimization Toolbox. fmincon performs nonlinear constrained optimization and supports linear and nonlinear constraints.

What Matlab function is used to solve constrained non linear optimization problems?

Problem Formulation: Rosenbrock's Function This problem is a minimization of a nonlinear function subject to a nonlinear constraint. Rosenbrock's function is a standard test function in optimization.

What is Matlab SQP algorithm?

The sqp algorithm combines the objective and constraint functions into a merit function. The algorithm attempts to minimize the merit function subject to relaxed constraints. This modified problem can lead to a feasible solution.


1 Answers

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.

like image 100
Oscar Perpiñán Avatar answered Sep 24 '22 04:09

Oscar Perpiñán