how can I use Newton's method to find the extremum with error < 10^-4 ?

1 回表示 (過去 30 日間)
Geir
Geir 2013 年 10 月 15 日
編集済み: Nishitha Ayyalapu 2013 年 10 月 15 日
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 ;

回答 (1 件)

Nishitha Ayyalapu
Nishitha Ayyalapu 2013 年 10 月 15 日
編集済み: Nishitha Ayyalapu 2013 年 10 月 15 日
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!!

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by