Maximum number of function evaluations exceeded; increase OPTIONS(14)

9 次查看(过去 30 天)
I run a function 'trim' and I got a message;
Maximum number of function evaluations exceeded;
increase OPTIONS(14)
Here is my code.
%.. Initial Conditions of Input Variables for Trim Calculation
% u = [ Throttle Aileron Elevator ]
u0 = [ 0.3 0 0 ]' ;
% x = [ VT AoA AoS P Q R Phi Theta Psi C1 C2 C3 ]
x0 = [ Vt_trim 0 0 0 0 0 0 0 Heading_Init 0 0 0 ]' ;
% y = [ Vt AoA AoS P Q R Phi Theta Psi C1 C2 C3 ]
y0 = [ Vt_trim 0 0 0 0 0 0 0 Heading_Init 0 0 0 ]' ;
%.. Compute Trim Codition for Controller
[ x_trim, u_trim, y_trim, xd_trim ] = trim('sys', x0, u0, y0, [], [], []) ;
What's the meaning of the message 'Maximum number of function evaluations exceeded; increase OPTIONS(14)'
and what should I do to solve my problem?

采纳的回答

SaiDileep Kola
SaiDileep Kola 2021-1-13
I couldn't reproduce the issue at my end, although I see increaes options as optimization parameter as defined in syntax of 5th and 6th option of trim function documentation, and other have used the optimization array in their respective work sucessfully as shown here, it may be helpful.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by