Is there any MATLAB toolbox that can find the local MAX of a piece-wise multi-variable function?

조회 수: 1 (최근 30일)
I have a piece-wise function f(x,y,z) which is not linear necessarily. Is there any toolbox that can find the local maximums of this function in MATLAB?
Thanks

답변 (2개)

Gouri Chennuru
Gouri Chennuru 2020년 9월 25일
Hi Niloufar,
You can use “islocalmin” function in order to find the local minima which returns a logical array whose elements are 1 (true) when a local minimum is detected in the corresponding element of an array, table, or timetable.
Similarly you can make use of “islocalmax” function in order to find the local maxima which returns a logical array whose elements are 1 (true) when a local maximum is detected in the corresponding element of an array, table, or timetable.
You can also use “findpeaks” returns a vector with the local maxima (peaks) of the input signal vector, data which is available in the signal processing toolbox.
Hope this Helps!
  댓글 수: 2
Niloufar Mirzavand Boroujeni
Niloufar Mirzavand Boroujeni 2020년 10월 1일
Thanks for the help, Gouri. By the way, my problem size is large and I my function is discontinuos, I found simulated aneealing solver, a ggod option to so this.

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


Bruno Luong
Bruno Luong 2020년 9월 25일
fmincon and friends if you have the toolbox.
  댓글 수: 3
Walter Roberson
Walter Roberson 2020년 10월 1일
fmincon cannot handle discontinuities over the range it is testing.
You can, though, test one range at a time, if the boundaries of the ranges can reasonably be determined.
Bruno Luong
Bruno Luong 2020년 10월 1일
Piecewise function is not necessary discontinue, e.g., a spline.

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

카테고리

Help CenterFile Exchange에서 Data Preprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by