Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
HN
HN am 3 Nov. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentar
Walter Roberson
Walter Roberson am 4 Nov. 2020
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

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by