the initial point is local minima for fmincon.
Mostra commenti meno recenti
I am trying to solve a minimization problem using fmincon but the solver doesn't perform any optimization and gice this message. I have tried with all possible values of the initial condition, but the answer remain same. Please help me.
Iter F-count f(x) Feasibility Steplength step optimality \\
0 41 7.501427e-02 0.000e+00 0.000e+00
Initial point is a local minimum that satisfies the constraints.
Optimization completed because at the initial point, the objective function is non-decreasing in feasible directions to within the selected value of the optimality tolerance, and constraints are satisfied to within the selected value of the constraint tolerance.
3 Commenti
Torsten
il 3 Ago 2017
The most probable explanation is that you return a constant value to fmincon from the objective function independent of the x-vector the solver supplies.
But we cannot tell for sure unless we see your code.
Best wishes
Torsten.
Muhammad Zeeshan Babar
il 3 Ago 2017
Modificato: Muhammad Zeeshan Babar
il 3 Ago 2017
Torsten
il 4 Ago 2017
Without seeing "costFunction", nothing can be said.
Best wishes
Torsten.
Risposte (2)
Sidafa
il 3 Ago 2017
0 voti
It looks as though fmincon has converged from the output. The objective function, as pointed out from the previous answer, may be constant or is solved at the initial guess.
Julie Kraus
il 3 Ago 2017
0 voti
Fmincon only finds a local minimum, if your start point is at a local minimum in all feasible directions it has found a local minimum.
You may have better luck with the global search, it will choose a bunch of different start points, which can yield a better solution.
Categorie
Scopri di più su Solver-Based Nonlinear Optimization in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!