Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Can any one check why quasi-newton is not working for my function ?
조회 수: 1 (최근 30일)
이전 댓글 표시
function V = PRSopt_QN(radius,alpha,beta)
%% Calling the function
fun = @(x)PRSopt_QN(x(1),x(2),x(3));
x0 = [0.25, deg2rad(120),deg2rad(120)]';
x = fminunc(fun,x0,options)
댓글 수: 1
Walter Roberson
2020년 11월 4일
options is not defined.
The call to fminunc needs to go somewhere else, not inside that function. That function needs to give the formula for the value instead
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!