Why does the "fsolve" function in Optimization Toolbox not converge when using a quadratic cost function?
이전 댓글 표시
I am using the "fsolve" function to optimize a vector of complex coefficients using a quadratic cost function.
I am able to obtain accurate results if I use a linear cost function. However, when I use the quadratic cost function, the solver does not converge. Why does using linear cost converge but using quadratic cost does not converge?
채택된 답변
추가 답변 (1개)
Very often, quadratic functions have no roots to find, e.g.,
fsolve(@(x) abs(x).^2+1, [1+1i;0+3i])
카테고리
도움말 센터 및 File Exchange에서 Quadratic Programming and Cone Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!