I have to use Nelder-Mead simplex direct search to find Max on a function. In Matlab, function fminsearch do this and it's work pretty good. The problem is that it seraching for Min, but I need Max. Can someone help me? Haw to make fminsearch to looking for Max? Thanks!