Effacer les filtres
Effacer les filtres

fmincon stopped...Converged to an infeasible point.

1 vue (au cours des 30 derniers jours)
NIKET shah
NIKET shah le 29 Juin 2018
Commenté : Rik le 29 Juin 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 commentaire
Rik
Rik le 29 Juin 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)

Connectez-vous pour commenter.

Réponses (1)

Adam Danz
Adam Danz le 29 Juin 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.

Catégories

En savoir plus sur Nonlinear Optimization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by