MATLAB Answers

Why is fmincon slower in comparison to other solvers?

11 views (last 30 days)
SandeepKumar R
SandeepKumar R on 20 Aug 2019
Answered: SaiDileep Kola on 27 Sep 2019
Hello everyone.
I was solving an optimization problem using fmincon and IPOPT. I found that fmincon takes more time to compute the optimal solution. Is it because fmincon is written in pure MATLAB over IPOPT that is written in C++ ?.

  0 Comments

Sign in to comment.

Answers (1)

SaiDileep Kola
SaiDileep Kola on 27 Sep 2019
That might be one of the reasons, however you may try Nondefault option of Algorithm as ‘sqp’, which can be sometimes faster.
More info can be found here.

  0 Comments

Sign in to comment.

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!