how can I use Newton's method to find the extremum with error < 10^-4 ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
f = @(x) 20.*exp(-(x-4).^4) + 6.*sin((pi./7).*x) + 0.4.*x + 20 ;
df = -80.*exp(-(x-4).^4).*((x-4).^3) + ((6./7).*pi).*cos((pi./7).*x) + 0.4 ;
0 Kommentare
Antworten (1)
Nishitha Ayyalapu
am 15 Okt. 2013
Bearbeitet: Nishitha Ayyalapu
am 15 Okt. 2013
These functions can do the job: Derivative-free approach:
fminsearch
Derivate based approach
fminunc
You can find more about the available optimization tools here:
Hope this helps!!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Nonlinear Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!