필터 지우기
필터 지우기

Basics of fminsearch to be explained in laymens terms

조회 수: 7 (최근 30일)
Nuchto
Nuchto 2014년 1월 26일
댓글: Nuchto 2014년 1월 27일
Could someone explain me in layman's terms this function? For instance, in the example:
X = fminsearch(@sin,3)
Thank you, Gaha

채택된 답변

Amit
Amit 2014년 1월 26일
In layman's term, fminsearch tries to find the minima of the function starting with the point given. Like in your case, fminsearch(@sin,3) or fminsearch(@(x) sin(x),3) tries to find the minima for sin function. The output will be the point where the minima is found. As you know, sin has minima at -1, it will find one of those values for x.
It can optimize for multivariable scenario as well. However, in fminsearch, you can not input the bounds for the variables.
Hope this is clear!
  댓글 수: 9
Jos (10584)
Jos (10584) 2014년 1월 27일
편집: Jos (10584) 2014년 1월 27일
The search is done via a method called "Nelder-Mead simplex direct search". Here is some more information: http://www.scholarpedia.org/article/Nelder-Mead_algorithm
This method does not take derivatives (slopes) but just evaluates function values. In that sense, the word "downhill" in John's great example is a little misleading. The search is not taking the slope of the function into account, it just looks whether a level is lower or higher than another level.
Nuchto
Nuchto 2014년 1월 27일
That's great, thank you very much to all of you!.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by