フィルターのクリア

Error in fmincon (line 568) initVals.f = feval(funf​cn{3},X,va​rargin{:})

17 ビュー (過去 30 日間)
Anmol Yadav
Anmol Yadav 2021 年 10 月 24 日
回答済み: Sargondjani 2021 年 10 月 24 日
I'm getting this error when im tring to optimize certain parameters. My p_initial has 4 values, p_model(x) has 4 values but i dont know why its reading only 3 inputs

回答 (1 件)

Sargondjani
Sargondjani 2021 年 10 月 24 日
As the error says there is no function P_model_main. You also only provided coded with a function called P_model. And please dont use pictures, but copy your code.
ALso it is not recommended to use global variables. If you have multiple parameters you could for example put them all in a structure called 'par', and use that as input argument to your function P_model. For example par.vv, par.q0 et cetera.

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by