How to find a global minimum?

조회 수: 41 (최근 30일)
Pasquale
Pasquale 2017년 11월 6일
편집: KSSV 2021년 1월 28일
If I try to search the minimum of the function (that now I use as example) y=(1.2^-x)*sin(x), writing the following code, I obtain a local minimum, depending on the starting point choice.
fun=@(x) (1.2^-x)*sin(x)
x0=4
[xmin,fval,exitflag,output]=fminunc(fun,x0)
xmin =
4.532047925295373
fval =
-0.430572139266549
The value is correct looking at the function graph, but how can I find the global minimum? My function to minimize is more complicated, so it has a lot of local minima points, and it is impossibile to guess what is the best starting point
  댓글 수: 2
Asatur Khurshudyan
Asatur Khurshudyan 2018년 12월 3일
I am also searching for a similar algorithm. If you've found out something, please share.
Nesrine Mohamed
Nesrine Mohamed 2020년 12월 17일
i try to search the global minimum of the function with two variablesany help please

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

채택된 답변

Torsten
Torsten 2017년 11월 6일
편집: KSSV 2021년 1월 28일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Direct Search에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by