Initial values for fmincon
이전 댓글 표시
I am trying to get the minimum value of a function using fmincon function but I have no guesses about the initial values.So what values should I provide at x0 so that it can be converged to minimum value? i am initiallly giving some values and also getting hessian matrix which is showing some positive and some negative numbers which is a proof that the obtained value is not minimum of function.
댓글 수: 4
Rik
2018년 12월 21일
Good initial values depend strongly on your specific situation. Especially fminsearch (and probably fmincon as well) sometimes perform very badly if you have an initial guess that is far from a good solution.
Walter Roberson
2018년 12월 21일
You might want to look at Global Optimization Toolbox's MultiStart()
Ayesha Maroof
2018년 12월 21일
Alan Weiss
2018년 12월 26일
Just because some values are negative doesn't mean that the resulting Hessian isn't positive semidefinite. In fact, when I asked MATLAB to calculate the eigenvaljes of your matrix, it gave me
vals = eig(A)
vals =
0.0000
0.0034
0.0490
0.2203
0.4015
0.7076
0.9154
1.0405
21.0335
See, all positive.
Alan Weiss
MATLAB mathematical toolbox documentation
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!