필터 지우기
필터 지우기

Can fmincon function optimize a large number of variables,like 800?

조회 수: 17 (최근 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.

채택된 답변

Walter Roberson
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개)

카테고리

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