Solver ignores my guess
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am using a the constrained solver fmincon with 2 constrains: all values of x >= 0 and the sum of x is equal to y.
I know the analytic solution for some low y values and I use those as a guess. When look at what fmincon puts into my function, I see that it doesn't put my guess value in to it. And it does not reach my guess values, so it reaches some kind of local minimum. Why is fmincon being stubborn and why doesn't it use my guess values?
4 Kommentare
Mahdi
am 13 Jun. 2014
Have you tried using a value slight bigger than zero? Like 0.00000001, does the same problem happen?
Akzeptierte Antwort
Matt J
am 13 Jun. 2014
Bearbeitet: Matt J
am 13 Jun. 2014
The 'interior point' algorithm would ignore your initial guess when AlwaysHonorConstraints='bounds', which is the default. Then, it needs to find a starting point in the interior of your bound constraints. Hence,
x0 = [50 1 1 1 1 1]
is a valid candidate.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Quadratic Programming and Cone Programming 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!