Can fmincon function optimize a large number of variables,like 800?
10 ビュー (過去 30 日間)
古いコメントを表示
When I used fmincon function, I set 800 variables to be optimized, but the optimization result doesn't seem to be good.
After the program runs, the following information is displayed:
Solver stopped prematurely.
fmincon stopped because it exceeded the function evaluation limit,
options.MaxFunctionEvaluations = 1.000000e+05.
0 件のコメント
採用された回答
Walter Roberson
2022 年 3 月 1 日
https://www.mathworks.com/help/optim/ug/choosing-the-algorithm.html
Yes it can. I figure that the matrix size needed for you would be about 4 megabytes, so I think you should be able to use even midscale algorithms.
What you need to do is create an options structure that sets maximum function evaluations and maximum iterations much higher, and pass the options to fmincon. (The exact name of the options depends which of the options creation functions you use.)
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!