Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Can any one check why quasi-newton is not working for my function ?

1 回表示 (過去 30 日間)
HN
HN 2020 年 11 月 3 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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
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!

Translated by