필터 지우기
필터 지우기

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 CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by