Optimizing the Himmelblau's function: function ([x, y]) { n++; return pow(x * x + y - 11, 2) + pow(x + y * y - 7, 2); } starting simplex: s[ 0 ]= 4,3 f= 100 s[ 1 ]= 2,1 f= 52 s[ 2 ]= 4,1 f= 40 calling amoeba with eps= 0.001 ... ...done! optimized simplex: s[ 0 ]= 3.0001182585256174,2.0003085486823693 f= 0.000002865943082396303 s[ 1 ]= 3.0002871994802263,1.9997890060476493 f= 0.000002596957478084969 s[ 2 ]= 2.9997389900963753,2.0000636556651443 f= 0.000002257053091598921 number of function calls: 225 exact solution: [x,y]= 3,2