Failure in initial objective function evaluation. FMINCON cannot continue.

2 ビュー (過去 30 日間)
Aaditya Goverdhan
Aaditya Goverdhan 2021 年 6 月 16 日
コメント済み: Aaditya Goverdhan 2021 年 6 月 17 日
I am calculating the optimum conditions for milling process but its showing the following error on running "Failure in initial objective function evaluation. FMINCON cannot continue."Can anyone please hhelp me in solving it.I have attached the files in it too.The first file reads the data from an excel file and second file has the population balance method which has to be minimized.
The error is shown:
Output argument "y" (and maybe others) not assigned during call to "Pbmsearch".
Error in fmincon (line 567)
initVals.f = feval(funfcn{3},X,varargin{:});
Error in parameter (line 24)
[x,fval,exitflag]=fmincon(@Pbmsearch,x0,[],[],[],[],lb,ub);
Caused by:
Failure in initial objective function evaluation. FMINCON cannot continue.

採用された回答

Matt J
Matt J 2021 年 6 月 16 日
The problem has nothing to do with fmincon. You must first make sure that your objective function runs without errors at x0.
  6 件のコメント
Aaditya Goverdhan
Aaditya Goverdhan 2021 年 6 月 17 日
i will try it.
Aaditya Goverdhan
Aaditya Goverdhan 2021 年 6 月 17 日
thanks i have rewritten the functions and solved and got the answers.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by