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

5 views (last 30 days)
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

Answers (1)

Sargondjani
Sargondjani on 8 Jun 2012
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

Community Treasure Hunt

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

Start Hunting!