Filter löschen
Filter löschen

fmincon stopped...Converged to an infeasible point.

1 Ansicht (letzte 30 Tage)
NIKET shah
NIKET shah am 29 Jun. 2018
Kommentiert: Rik am 29 Jun. 2018
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 Kommentar
Rik
Rik am 29 Jun. 2018
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)

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Adam Danz
Adam Danz am 29 Jun. 2018
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.

Kategorien

Mehr zu Nonlinear Optimization finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by