I'm trying to minimize $ \sum_{k=1}^{6}-(k\sin[(k + 1) x + k])$ , $x\in[-10,10]$ by using the command below.
NMinimize[f[x], {x}, Method -> "SimulatedAnnealing"]
This function has 22 minimizes. 3 of them are global minimizers.
The result given by mathematica is {-16.5322, {x -> -0.5581}} (one of the global solution).
My question is, how to show all the minimizers by using "SimulatedAnnealing" or other methods such as "RandomSearch"?
Abs[dsum[x]]with these methods, but I'd worry that Mathematica won't find all local minima, henceReduceappears more appropriate to me – Apr 26 '17 at 15:36