Why is fmincon slower in comparison to other solvers?

22 次查看(过去 30 天)
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++ ?.
  1 个评论
Ali Aghaeifar
Ali Aghaeifar 2021-8-15
I reached to this topic while googling an opposit question, I was running a simple optimization and saw fmincon using interior-point algorithm is faster than IPOPT and was wondering why?

请先登录,再进行评论。

回答(1 个)

SaiDileep Kola
SaiDileep Kola 2019-9-27
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.

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by