フィルターのクリア

Optimize model parameter values to achieve model best fit to the input data

3 ビュー (過去 30 日間)
Muhammad umer Khan
Muhammad umer Khan 2024 年 4 月 8 日
回答済み: Matthew 2024 年 4 月 8 日
Hi,
I am trying to define optimoptions in the 'fit' function, but it is giving me an error. I followed the optimoptions link given on this documentation
options = optimoptions(@fmincon,'Algorithm','interior-point','Display','off');
[tm,diffTable,errorStat,optimOutput] = tm.fit(longitudinal_data,"Fx Pure",Solver="fmincon",options,PlotFit=true);
The error is Unsupported use of the '=' operator. To compare values for equality, use '=='. To pass name-value arguments using the name=value format, provide these arguments after all other inputs.
Any help would be appreciated. Thanks.
  1 件のコメント
Muhammad umer Khan
Muhammad umer Khan 2024 年 4 月 8 日
can you please identify the mistake explicitly or refer me to any example? Thanks in advance.

サインインしてコメントする。

採用された回答

Matthew
Matthew 2024 年 4 月 8 日
Hi Muhammad,
You neglected to include the input argument name for "optimoptions" in your function call. Use it to assign your options object.
options = optimoptions(@fmincon,'Algorithm','interior-point','Display','off');
[tm,diffTable,errorStat,optimOutput] = tm.fit(longitudinal_data,"Fx Pure",Solver="fmincon",optimoptions=options,PlotFit=true);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by