フィルターのクリア

fmincon stopped...Converged to an infeasible point.

1 回表示 (過去 30 日間)
NIKET shah
NIKET shah 2018 年 6 月 29 日
コメント済み: Rik 2018 年 6 月 29 日
Converged to an infeasible point.
fmincon stopped because the size of the current step is less than the default value of the step size tolerance but constraints are not satisfied to within the default value of the constraint tolerance.
if someone knows please guide me. Thank You.
  1 件のコメント
Rik
Rik 2018 年 6 月 29 日
Why not make your cost function like this?
y = @(x) ...
(E/E_all)*(sum(x(1:96)) ...
+(1-Ed/Ed_all)*an*(x(95)^2);
That would drastically improve readability, and help you notice any typos you make.
(also, the function name in usercost1.m doesn't match the filename)

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

回答 (1 件)

Adam Danz
Adam Danz 2018 年 6 月 29 日
I suggest reading the documentation for fmincon () and going through some of the examples in that document.
One of the inputs to fmincon is 'options' which is a structure that can contain the field 'ConstraintTolerance' where you can set the tolerance level. Learn more about tolerance stopping criteria here .
Also pay attention to the output "exitflag" where you can understand how fmincon() converged to a solution.
It might take a while to optimize your fitting functions and learn about all of the parameters and how they work.

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by