MATLAB: Fminsearch – find best x0

fminsearch optimize x0

Hi i was wondering how to best use the function fminsearch. I determine a x0 for this function and get a result but this result changes when I change my x0 parameter. How can I best optimize my x0 suggestion? Run a loop for multiple x0's and take the mean??

Best Answer

With each x0 you can have the value of the objective displayed. You would take the x0 that gave you the smallest objective value.