How to access parameter guesses made by MATLAB in lsqnonlin?
조회 수: 1 (최근 30일)
이전 댓글 표시
Suppose I have defined some non-linear function f(x) where x is a vector of parameters. I then use lsqnonlin to solve for the x that minimizes this function.
options = optimoptions('lsqnonlin','Display','iter');
sol=lsqnonlin(f,x0,options);
How can I get a hold of all of the values of x that lsqnonlin checked when finding the minimum? I imagine that at some level lsqnonlin is conducting a grid search over various combinations of the parameter values. I would like the values of all of the grid points used in the search. sol only gives me the final answer.
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!