What is the benefit to supply the gradient for function minimization?
조회 수: 1 (최근 30일)
이전 댓글 표시
Do you know if is it better to supply the gradient using 'fminunc'? For better I mean the time spent for analysis, and its accuracy.
댓글 수: 0
채택된 답변
Honglei Chen
2017년 11월 7일
편집: Honglei Chen
2017년 11월 7일
I'm not an expert on this, but I believe that if you don't provide the gradient function, then it has to be numerically estimated from your function. Thus providing the gradient (if available) can help the algorithm to converge faster.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!