Borrar filtros
Borrar filtros

fmincon stopped...Converged to an infeasible point.

1 visualización (últimos 30 días)
NIKET shah
NIKET shah el 29 de Jun. de 2018
Comentada: Rik el 29 de Jun. de 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 comentario
Rik
Rik el 29 de Jun. de 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)

Iniciar sesión para comentar.

Respuestas (1)

Adam Danz
Adam Danz el 29 de Jun. de 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.

Categorías

Más información sobre Nonlinear Optimization en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by