Using "fmincon" function and show "busy" all the time!

2 次查看(过去 30 天)
Dear all,
Hi, I am using the "fmincon" to solve the nonlinear constrained problem. The function could work sometimes but it often suffers the "busy" problem, which is that the matlab always shows busy and never terminate the optimization. I use the options = optimset('Algorithm','active-set','LargeScale','off'), and it can not solve the problem as well. Hope someone can give me some suggestions, Many thanks!
Betty

回答(1 个)

Sargondjani
Sargondjani 2012-6-8
fmincon does terminate at some point unless it gets stuck inside an iteration. what i am saying is that there is some logical explanation for the long total calculation time. it could be that you: a) have alot of variables for which you want to optimize so the default number of iterations is very large, or b) the computation time for each iteration is very large (or even that it gets stuck) or both.
but you will have to tell us more (some code maybe) if you want help. one thing you could do yourself is to let matlab display the results of each iteration.... with 'tic' and 'toc' you can also let matlab display the computation time for parts of your code

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by