fmincon exitflag=0; MaxIter=3000; output.iterations=277

fmincon gives me command window warnings that MaxIter is exceeded and returns the correct exitflag. But the returned iteration count is well below MaxIter.
Running MatLab R2014a.
Any idea what is going on?
Rob B.

 채택된 답변

Alan Weiss
Alan Weiss 2014년 7월 18일

0 개 추천

I am not sure what is going on here. Can you show us your options, and the way you called fmincon? I am also interested in seeing ALL of the fmincon output.
Alan Weiss
MATLAB mathematical toolbox documentation

추가 답변 (1개)

Robert
Robert 2014년 7월 18일
Here is the command window. The calling function is attached.
>> Run_NSx Input data for 14-Jun-1961 has been processed
Solver stopped prematurely.
fmincon stopped because it exceeded the function evaluation limit, options.MaxFunEvals = 3000 (the default value).
>> output
output =
iterations: 291
funcCount: 3004
constrviolation: 0
stepsize: 3.0823e-08
algorithm: 'interior-point'
firstorderopt: 0.0113
cgiterations: 690
message: 'Solver stopped prematurely.
fmincon stopped because it exceeded the function evaluation limit, options....'

댓글 수: 1

There are only 291 iterations, well below the limit, that is true. But the solver stopped because the number of function evaluations, 3004, exceeded the function evaluation limit MaxFunEvals.
Alan Weiss
MATLAB mathematical toolbox documentation

댓글을 달려면 로그인하십시오.

카테고리

질문:

2014년 7월 18일

댓글:

2014년 7월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by