{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Simulated annealing\n",
    "\n",
    "Mediante esta técnica de búsqueda heurística intentaremos aproximarnos al mínimo de la siguiente función:\n",
    "\n",
    "$$\n",
    "f(x,y) = 0.2 + x^2 + y^2 - 0.1 \\cdot \\cos(6 \\pi x) - 0.1 \\cdot \\cos(6 \\pi y)\n",
    "$$\n",
    "\n",
    "<img src=\"imgs/function_min.jpg\" width=70%>\n",
    "\n",
    "Su mínimo se encuentra en el punto $(0,0)$."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "iteration Number =  1   best_so_far =  [20.01512611 34.41318942]   new_best = 1584.96815\n",
      "iteration Number =  2   best_so_far =  [20.01607753 34.36600137]   new_best = 1581.68692\n",
      "iteration Number =  3   best_so_far =  [20.04810618 34.32667921]   new_best = 1580.28601\n",
      "iteration Number =  4   best_so_far =  [20.07854968 34.28012862]   new_best = 1578.41309\n",
      "iteration Number =  5   best_so_far =  [20.1274608  34.24328271]   new_best = 1578.00476\n",
      "iteration Number =  6   best_so_far =  [20.11252417 34.22025335]   new_best = 1575.84548\n",
      "iteration Number =  7   best_so_far =  [20.05808452 34.19146481]   new_best = 1571.62633\n",
      "iteration Number =  8   best_so_far =  [19.97393948 34.20292407]   new_best = 1568.98935\n",
      "iteration Number =  9   best_so_far =  [19.88610822 34.2451557 ]   new_best = 1568.45439\n",
      "iteration Number =  13   best_so_far =  [19.8532846  34.23508042]   new_best = 1566.51663\n",
      "iteration Number =  15   best_so_far =  [19.85198081 34.1935925 ]   new_best = 1563.68547\n",
      "iteration Number =  16   best_so_far =  [19.8668085  34.17795853]   new_best = 1563.20245\n",
      "iteration Number =  17   best_so_far =  [19.83624344 34.13687095]   new_best = 1559.18603\n",
      "iteration Number =  20   best_so_far =  [19.82682222 34.13479649]   new_best = 1558.66772\n",
      "iteration Number =  21   best_so_far =  [19.77758262 34.0671824 ]   new_best = 1551.94264\n",
      "iteration Number =  25   best_so_far =  [19.78144372 34.06398283]   new_best = 1551.87795\n",
      "iteration Number =  27   best_so_far =  [19.75888168 33.98461051]   new_best = 1545.48747\n",
      "iteration Number =  28   best_so_far =  [19.66543891 33.98962937]   new_best = 1542.02674\n",
      "iteration Number =  30   best_so_far =  [19.65910547 33.94277286]   new_best = 1538.64786\n",
      "iteration Number =  39   best_so_far =  [19.61158404 33.93991903]   new_best = 1536.64178\n",
      "iteration Number =  41   best_so_far =  [19.56588609 33.91067157]   new_best = 1533.00402\n",
      "iteration Number =  42   best_so_far =  [19.5366899  33.91031248]   new_best = 1531.88307\n",
      "iteration Number =  43   best_so_far =  [19.43954157 33.89930237]   new_best = 1527.33322\n",
      "iteration Number =  44   best_so_far =  [19.36101569 33.88998902]   new_best = 1523.54290\n",
      "iteration Number =  45   best_so_far =  [19.37433653 33.85953325]   new_best = 1522.04950\n",
      "iteration Number =  47   best_so_far =  [19.36975926 33.81468666]   new_best = 1518.83581\n",
      "iteration Number =  51   best_so_far =  [19.32626865 33.77546079]   new_best = 1514.43194\n",
      "iteration Number =  57   best_so_far =  [19.37045003 33.67585611]   new_best = 1509.30161\n",
      "iteration Number =  58   best_so_far =  [19.36744669 33.63670597]   new_best = 1506.56185\n",
      "iteration Number =  59   best_so_far =  [19.28676552 33.54685595]   new_best = 1497.57271\n",
      "iteration Number =  61   best_so_far =  [19.35690824 33.50042825]   new_best = 1497.17784\n",
      "iteration Number =  62   best_so_far =  [19.37063865 33.42392178]   new_best = 1492.51501\n",
      "iteration Number =  63   best_so_far =  [19.42826799 33.37875186]   new_best = 1491.75238\n",
      "iteration Number =  66   best_so_far =  [19.39775878 33.39292395]   new_best = 1491.47958\n",
      "iteration Number =  69   best_so_far =  [19.36483892 33.41160315]   new_best = 1491.43736\n",
      "iteration Number =  70   best_so_far =  [19.30843043 33.40417908]   new_best = 1488.74085\n",
      "iteration Number =  71   best_so_far =  [19.24930093 33.36869001]   new_best = 1484.12771\n",
      "iteration Number =  72   best_so_far =  [19.11129437 33.38284382]   new_best = 1479.84421\n",
      "iteration Number =  74   best_so_far =  [19.10088066 33.34951369]   new_best = 1477.16925\n",
      "iteration Number =  76   best_so_far =  [19.08324795 33.29868019]   new_best = 1473.09296\n",
      "iteration Number =  83   best_so_far =  [19.12021387 33.24585188]   new_best = 1471.14213\n",
      "iteration Number =  85   best_so_far =  [19.056593   33.23051605]   new_best = 1467.60934\n",
      "iteration Number =  89   best_so_far =  [19.03218453 33.24330776]   new_best = 1467.47322\n",
      "iteration Number =  91   best_so_far =  [19.03603788 33.19188439]   new_best = 1464.28321\n",
      "iteration Number =  93   best_so_far =  [18.99633682 33.20844928]   new_best = 1463.83409\n",
      "iteration Number =  94   best_so_far =  [19.07183413 33.13740583]   new_best = 1462.08417\n",
      "iteration Number =  95   best_so_far =  [19.0327433  33.11456562]   new_best = 1458.99160\n",
      "iteration Number =  96   best_so_far =  [19.05112849 33.03874276]   new_best = 1454.57040\n",
      "iteration Number =  99   best_so_far =  [18.96392339 32.95352485]   new_best = 1445.62550\n",
      "iteration Number =  102   best_so_far =  [18.95153138 32.86912756]   new_best = 1439.75905\n",
      "iteration Number =  105   best_so_far =  [18.97453545 32.81618233]   new_best = 1437.14083\n",
      "iteration Number =  107   best_so_far =  [18.81475993 32.81301919]   new_best = 1431.07505\n",
      "iteration Number =  108   best_so_far =  [18.85535512 32.74015488]   new_best = 1427.71385\n",
      "iteration Number =  109   best_so_far =  [18.84026318 32.68668513]   new_best = 1423.58056\n",
      "iteration Number =  115   best_so_far =  [18.89110765 32.65540423]   new_best = 1423.39928\n",
      "iteration Number =  117   best_so_far =  [18.88390327 32.60834064]   new_best = 1420.12065\n",
      "iteration Number =  118   best_so_far =  [18.88203001 32.60568141]   new_best = 1419.88387\n",
      "iteration Number =  120   best_so_far =  [18.82778451 32.60105656]   new_best = 1417.58263\n",
      "iteration Number =  121   best_so_far =  [18.86720666 32.56483724]   new_best = 1416.75689\n",
      "iteration Number =  123   best_so_far =  [18.82876201 32.50633063]   new_best = 1411.58283\n",
      "iteration Number =  124   best_so_far =  [18.73489376 32.41629565]   new_best = 1401.98088\n",
      "iteration Number =  125   best_so_far =  [18.71753677 32.40959768]   new_best = 1400.85484\n",
      "iteration Number =  127   best_so_far =  [18.64184505 32.41470946]   new_best = 1398.33751\n",
      "iteration Number =  129   best_so_far =  [18.58876372 32.39543356]   new_best = 1395.15645\n",
      "iteration Number =  131   best_so_far =  [18.57610887 32.37711331]   new_best = 1393.49474\n",
      "iteration Number =  133   best_so_far =  [18.56652594 32.38094437]   new_best = 1393.40982\n",
      "iteration Number =  134   best_so_far =  [18.57040309 32.31686551]   new_best = 1389.37014\n",
      "iteration Number =  136   best_so_far =  [18.52307879 32.31462912]   new_best = 1387.53760\n",
      "iteration Number =  138   best_so_far =  [18.51581564 32.31744875]   new_best = 1387.45380\n",
      "iteration Number =  139   best_so_far =  [18.51306735 32.31483141]   new_best = 1387.18587\n",
      "iteration Number =  140   best_so_far =  [18.48974965 32.2847771 ]   new_best = 1384.41609\n",
      "iteration Number =  141   best_so_far =  [18.48930353 32.20904487]   new_best = 1379.64571\n",
      "iteration Number =  143   best_so_far =  [18.49311475 32.1841038 ]   new_best = 1378.20606\n",
      "iteration Number =  144   best_so_far =  [18.40413184 32.13063951]   new_best = 1371.34234\n",
      "iteration Number =  145   best_so_far =  [18.32738797 32.1132253 ]   new_best = 1367.30503\n",
      "iteration Number =  146   best_so_far =  [18.28634802 32.08865487]   new_best = 1364.21805\n",
      "iteration Number =  150   best_so_far =  [18.23045002 32.11754027]   new_best = 1364.18133\n",
      "iteration Number =  151   best_so_far =  [18.21020528 32.05075214]   new_best = 1359.07213\n",
      "iteration Number =  155   best_so_far =  [18.1032264  32.01982093]   new_best = 1353.13769\n",
      "iteration Number =  156   best_so_far =  [18.10196671 31.96416048]   new_best = 1349.54530\n",
      "iteration Number =  157   best_so_far =  [18.13027996 31.81953192]   new_best = 1341.56257\n",
      "iteration Number =  158   best_so_far =  [18.20508267 31.77018328]   new_best = 1341.08064\n",
      "iteration Number =  159   best_so_far =  [18.25400953 31.67887593]   new_best = 1336.85576\n",
      "iteration Number =  160   best_so_far =  [18.1827201  31.64422286]   new_best = 1332.17346\n",
      "iteration Number =  161   best_so_far =  [18.21261888 31.62169257]   new_best = 1331.83163\n",
      "iteration Number =  162   best_so_far =  [18.21476922 31.56893772]   new_best = 1328.66656\n",
      "iteration Number =  165   best_so_far =  [18.19871352 31.52739821]   new_best = 1325.54070\n",
      "iteration Number =  167   best_so_far =  [18.22527836 31.50248983]   new_best = 1324.91343\n",
      "iteration Number =  169   best_so_far =  [18.30684919 31.42115632]   new_best = 1322.54920\n",
      "iteration Number =  175   best_so_far =  [18.35658561 31.39066199]   new_best = 1322.39831\n",
      "iteration Number =  176   best_so_far =  [18.3721041  31.29912804]   new_best = 1317.21562\n",
      "iteration Number =  178   best_so_far =  [18.27768045 31.33112489]   new_best = 1315.76421\n",
      "iteration Number =  181   best_so_far =  [18.24397427 31.24346372]   new_best = 1309.22297\n",
      "iteration Number =  182   best_so_far =  [18.25402817 31.15041476]   new_best = 1303.84612\n",
      "iteration Number =  183   best_so_far =  [18.19607166 31.17755748]   new_best = 1303.52091\n",
      "iteration Number =  185   best_so_far =  [18.22209107 31.12697954]   new_best = 1301.25666\n",
      "iteration Number =  187   best_so_far =  [18.15794768 31.12423108]   new_best = 1298.79573\n",
      "iteration Number =  193   best_so_far =  [18.14176316 31.11368226]   new_best = 1297.52619\n",
      "iteration Number =  194   best_so_far =  [18.20464575 31.04378186]   new_best = 1295.33254\n",
      "iteration Number =  195   best_so_far =  [18.13318702 31.08086717]   new_best = 1295.10654\n",
      "iteration Number =  196   best_so_far =  [18.09656986 31.07135112]   new_best = 1293.11434\n",
      "iteration Number =  198   best_so_far =  [18.07596477 31.03819084]   new_best = 1290.21864\n",
      "iteration Number =  199   best_so_far =  [18.07200615 31.01395029]   new_best = 1288.54335\n",
      "iteration Number =  200   best_so_far =  [18.08135134 31.00338763]   new_best = 1288.24068\n",
      "iteration Number =  201   best_so_far =  [18.06928119 30.93937049]   new_best = 1283.87649\n",
      "iteration Number =  203   best_so_far =  [18.09372904 30.83665998]   new_best = 1278.60101\n",
      "iteration Number =  206   best_so_far =  [18.10082569 30.79617795]   new_best = 1276.35124\n",
      "iteration Number =  207   best_so_far =  [18.15196869 30.68163285]   new_best = 1271.05596\n",
      "iteration Number =  208   best_so_far =  [18.13754885 30.67941557]   new_best = 1270.38448\n",
      "iteration Number =  209   best_so_far =  [18.18825707 30.61934606]   new_best = 1268.58782\n",
      "iteration Number =  213   best_so_far =  [18.14580485 30.60937249]   new_best = 1266.45027\n",
      "iteration Number =  215   best_so_far =  [18.15505802 30.54991751]   new_best = 1263.26125\n",
      "iteration Number =  216   best_so_far =  [18.2177046  30.51051398]   new_best = 1263.13260\n",
      "iteration Number =  217   best_so_far =  [18.19875911 30.43463376]   new_best = 1257.77621\n",
      "iteration Number =  220   best_so_far =  [18.25439451 30.37349387]   new_best = 1255.89095\n",
      "iteration Number =  221   best_so_far =  [18.23778745 30.3458614 ]   new_best = 1253.61439\n",
      "iteration Number =  227   best_so_far =  [18.24001848 30.25068836]   new_best = 1248.02250\n",
      "iteration Number =  228   best_so_far =  [18.214353   30.16072296]   new_best = 1241.79408\n",
      "iteration Number =  229   best_so_far =  [18.18288206 30.1523347 ]   new_best = 1240.17206\n",
      "iteration Number =  230   best_so_far =  [18.24292497 30.10774094]   new_best = 1239.53757\n",
      "iteration Number =  232   best_so_far =  [18.2236593  30.05613662]   new_best = 1235.67113\n",
      "iteration Number =  233   best_so_far =  [18.19261386 29.99447297]   new_best = 1230.82908\n",
      "iteration Number =  234   best_so_far =  [18.10973793 29.98950456]   new_best = 1227.48214\n",
      "iteration Number =  236   best_so_far =  [18.0966493  29.96725727]   new_best = 1225.66851\n",
      "iteration Number =  237   best_so_far =  [18.15739203 29.8678894 ]   new_best = 1222.16052\n",
      "iteration Number =  238   best_so_far =  [18.15121413 29.82509611]   new_best = 1219.39695\n",
      "iteration Number =  239   best_so_far =  [18.16683282 29.79116449]   new_best = 1217.91614\n",
      "iteration Number =  240   best_so_far =  [18.22191802 29.7297958 ]   new_best = 1216.11172\n",
      "iteration Number =  242   best_so_far =  [18.20755877 29.63783529]   new_best = 1210.10419\n",
      "iteration Number =  243   best_so_far =  [18.24637878 29.61452432]   new_best = 1210.10413\n",
      "iteration Number =  245   best_so_far =  [18.13624252 29.54042463]   new_best = 1201.91690\n",
      "iteration Number =  247   best_so_far =  [18.07047416 29.47306776]   new_best = 1195.46536\n",
      "iteration Number =  250   best_so_far =  [18.02344013 29.47343224]   new_best = 1193.72370\n",
      "iteration Number =  253   best_so_far =  [18.00199568 29.45224902]   new_best = 1191.66772\n",
      "iteration Number =  254   best_so_far =  [17.97068468 29.398958  ]   new_best = 1187.32535\n",
      "iteration Number =  255   best_so_far =  [17.81548888 29.2964603 ]   new_best = 1175.89255\n",
      "iteration Number =  256   best_so_far =  [17.72283616 29.29788499]   new_best = 1172.53766\n",
      "iteration Number =  257   best_so_far =  [17.68602257 29.29573754]   new_best = 1171.06702\n",
      "iteration Number =  258   best_so_far =  [17.67759029 29.19213269]   new_best = 1164.86916\n",
      "iteration Number =  259   best_so_far =  [17.63355691 29.11813639]   new_best = 1158.98733\n",
      "iteration Number =  260   best_so_far =  [17.51943211 29.16583745]   new_best = 1157.97024\n",
      "iteration Number =  262   best_so_far =  [17.43740422 29.15992653]   new_best = 1154.70056\n",
      "iteration Number =  264   best_so_far =  [17.4275255  29.12691663]   new_best = 1152.38740\n",
      "iteration Number =  265   best_so_far =  [17.45333212 29.06788921]   new_best = 1149.79373\n",
      "iteration Number =  266   best_so_far =  [17.48363135 29.04848247]   new_best = 1149.72434\n",
      "iteration Number =  269   best_so_far =  [17.45976563 29.03748102]   new_best = 1148.21354\n",
      "iteration Number =  272   best_so_far =  [17.46515007 28.97684497]   new_best = 1144.87767\n",
      "iteration Number =  273   best_so_far =  [17.41893082 28.95718882]   new_best = 1142.07324\n",
      "iteration Number =  276   best_so_far =  [17.37517205 28.973311  ]   new_best = 1141.39137\n",
      "iteration Number =  277   best_so_far =  [17.35499798 28.96690897]   new_best = 1140.30540\n",
      "iteration Number =  278   best_so_far =  [17.33681481 28.94651188]   new_best = 1138.51389\n",
      "iteration Number =  279   best_so_far =  [17.24509967 28.9137236 ]   new_best = 1133.61420\n",
      "iteration Number =  281   best_so_far =  [17.17867644 28.8857908 ]   new_best = 1129.84980\n",
      "iteration Number =  283   best_so_far =  [17.15890783 28.84683846]   new_best = 1126.96416\n",
      "iteration Number =  287   best_so_far =  [17.20631072 28.74583282]   new_best = 1122.64460\n",
      "iteration Number =  288   best_so_far =  [17.16981481 28.66408565]   new_best = 1116.63243\n",
      "iteration Number =  290   best_so_far =  [17.07941415 28.71356548]   new_best = 1116.30227\n",
      "iteration Number =  296   best_so_far =  [17.02564421 28.71540576]   new_best = 1114.49616\n",
      "iteration Number =  297   best_so_far =  [16.90689551 28.68191013]   new_best = 1108.61798\n",
      "iteration Number =  298   best_so_far =  [16.90478229 28.61840225]   new_best = 1104.94761\n",
      "iteration Number =  300   best_so_far =  [16.85050686 28.58185667]   new_best = 1101.16158\n",
      "iteration Number =  301   best_so_far =  [16.85821595 28.56059746]   new_best = 1100.23979\n",
      "iteration Number =  303   best_so_far =  [16.8211927  28.55791589]   new_best = 1098.85176\n",
      "iteration Number =  307   best_so_far =  [16.85251908 28.53738018]   new_best = 1098.76053\n",
      "iteration Number =  308   best_so_far =  [16.88356364 28.41182989]   new_best = 1092.53531\n",
      "iteration Number =  309   best_so_far =  [16.86123753 28.41317629]   new_best = 1091.88872\n",
      "iteration Number =  311   best_so_far =  [16.8523753  28.39340221]   new_best = 1090.43791\n",
      "iteration Number =  312   best_so_far =  [16.84096705 28.34522855]   new_best = 1087.27141\n",
      "iteration Number =  316   best_so_far =  [16.85949652 28.22563202]   new_best = 1081.26318\n",
      "iteration Number =  320   best_so_far =  [16.87883459 28.16905799]   new_best = 1078.75697\n",
      "iteration Number =  321   best_so_far =  [16.84157781 28.15058791]   new_best = 1076.48824\n",
      "iteration Number =  324   best_so_far =  [16.8008058 28.1591239]   new_best = 1075.58334\n",
      "iteration Number =  326   best_so_far =  [16.82716031 28.13154743]   new_best = 1074.91440\n",
      "iteration Number =  328   best_so_far =  [16.82799589 28.0916972 ]   new_best = 1072.63845\n",
      "iteration Number =  329   best_so_far =  [16.83086985 28.08101359]   new_best = 1072.11542\n",
      "iteration Number =  331   best_so_far =  [16.83595726 28.05555736]   new_best = 1070.81233\n",
      "iteration Number =  333   best_so_far =  [16.88020175 28.02632387]   new_best = 1070.59154\n",
      "iteration Number =  334   best_so_far =  [16.8364592  27.95136631]   new_best = 1064.98551\n",
      "iteration Number =  336   best_so_far =  [16.86414877 27.89994361]   new_best = 1063.12295\n",
      "iteration Number =  340   best_so_far =  [16.85165457 27.87778375]   new_best = 1061.51155\n",
      "iteration Number =  342   best_so_far =  [16.84338327 27.85235809]   new_best = 1059.84596\n",
      "iteration Number =  343   best_so_far =  [16.81504062 27.83958003]   new_best = 1058.18108\n",
      "iteration Number =  344   best_so_far =  [16.76794343 27.80928382]   new_best = 1054.84171\n",
      "iteration Number =  345   best_so_far =  [16.74802432 27.79052506]   new_best = 1053.07300\n",
      "iteration Number =  346   best_so_far =  [16.76390541 27.74952134]   new_best = 1051.28703\n",
      "iteration Number =  348   best_so_far =  [16.79830511 27.72667123]   new_best = 1051.18580\n",
      "iteration Number =  352   best_so_far =  [16.8226768 27.6853165]   new_best = 1049.68260\n",
      "iteration Number =  353   best_so_far =  [16.86271465 27.62718585]   new_best = 1047.82557\n",
      "iteration Number =  355   best_so_far =  [16.77080798 27.61327639]   new_best = 1043.93821\n",
      "iteration Number =  357   best_so_far =  [16.75670488 27.61687364]   new_best = 1043.63270\n",
      "iteration Number =  359   best_so_far =  [16.80201473 27.56362735]   new_best = 1042.38152\n",
      "iteration Number =  361   best_so_far =  [16.8039205  27.52411571]   new_best = 1040.32372\n",
      "iteration Number =  362   best_so_far =  [16.77647274 27.49734893]   new_best = 1037.90106\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "iteration Number =  363   best_so_far =  [16.7225534 27.4454463]   new_best = 1033.09636\n",
      "iteration Number =  365   best_so_far =  [16.66921843 27.42799328]   new_best = 1030.27743\n",
      "iteration Number =  366   best_so_far =  [16.61197848 27.43394515]   new_best = 1028.75911\n",
      "iteration Number =  368   best_so_far =  [16.62997857 27.37408585]   new_best = 1025.94736\n",
      "iteration Number =  369   best_so_far =  [16.56041693 27.36910133]   new_best = 1023.47876\n",
      "iteration Number =  370   best_so_far =  [16.56039    27.35024743]   new_best = 1022.42987\n",
      "iteration Number =  372   best_so_far =  [16.47292428 27.29166375]   new_best = 1016.40932\n",
      "iteration Number =  373   best_so_far =  [16.50599863 27.25843132]   new_best = 1015.75520\n",
      "iteration Number =  378   best_so_far =  [16.50348345 27.22252427]   new_best = 1013.78145\n",
      "iteration Number =  379   best_so_far =  [16.42139767 27.15404674]   new_best = 1007.30937\n",
      "iteration Number =  380   best_so_far =  [16.39540611 27.13493427]   new_best = 1005.35593\n",
      "iteration Number =  390   best_so_far =  [16.4139417  27.08146054]   new_best = 1003.01191\n",
      "iteration Number =  392   best_so_far =  [16.43291428 27.04244019]   new_best = 1001.49278\n",
      "iteration Number =  393   best_so_far =  [16.379394   26.99499494]   new_best = 997.04959\n",
      "iteration Number =  394   best_so_far =  [16.31192735 27.00673078]   new_best = 995.45150\n",
      "iteration Number =  401   best_so_far =  [16.33293791 26.98156033]   new_best = 994.77597\n",
      "iteration Number =  403   best_so_far =  [16.26796918 26.92986518]   new_best = 990.00892\n",
      "iteration Number =  410   best_so_far =  [16.22703107 26.90415827]   new_best = 987.41785\n",
      "iteration Number =  412   best_so_far =  [16.23198299 26.89574248]   new_best = 987.13220\n",
      "iteration Number =  413   best_so_far =  [16.21966936 26.8261952 ]   new_best = 983.07617\n",
      "iteration Number =  415   best_so_far =  [16.27948097 26.70208824]   new_best = 978.09160\n",
      "iteration Number =  416   best_so_far =  [16.30140506 26.68311103]   new_best = 977.74663\n",
      "iteration Number =  418   best_so_far =  [16.29059222 26.67387241]   new_best = 976.91099\n",
      "iteration Number =  420   best_so_far =  [16.32266713 26.60219705]   new_best = 974.17513\n",
      "iteration Number =  424   best_so_far =  [16.37479691 26.5487807 ]   new_best = 973.16190\n",
      "iteration Number =  425   best_so_far =  [16.41529716 26.47620397]   new_best = 970.73732\n",
      "iteration Number =  427   best_so_far =  [16.41450133 26.47438813]   new_best = 970.61197\n",
      "iteration Number =  428   best_so_far =  [16.4212015  26.43121031]   new_best = 968.49802\n",
      "iteration Number =  431   best_so_far =  [16.4556492  26.38779567]   new_best = 967.31749\n",
      "iteration Number =  432   best_so_far =  [16.4182212  26.35446247]   new_best = 964.22497\n",
      "iteration Number =  433   best_so_far =  [16.50348819 26.27369453]   new_best = 962.93012\n",
      "iteration Number =  434   best_so_far =  [16.52947367 26.23622841]   new_best = 961.87570\n",
      "iteration Number =  437   best_so_far =  [16.42171384 26.22845738]   new_best = 957.85409\n",
      "iteration Number =  443   best_so_far =  [16.44899517 26.15928752]   new_best = 955.23307\n",
      "iteration Number =  444   best_so_far =  [16.40188939 26.17383991]   new_best = 954.36277\n",
      "iteration Number =  445   best_so_far =  [16.48918678 26.087665  ]   new_best = 952.76400\n",
      "iteration Number =  446   best_so_far =  [16.45519583 26.05757538]   new_best = 949.98848\n",
      "iteration Number =  448   best_so_far =  [16.33443389 25.97791644]   new_best = 941.67501\n",
      "iteration Number =  450   best_so_far =  [16.28722517 25.97810341]   new_best = 940.18069\n",
      "iteration Number =  451   best_so_far =  [16.20040287 25.92820733]   new_best = 934.98580\n",
      "iteration Number =  453   best_so_far =  [16.11147541 25.98126258]   new_best = 934.76215\n",
      "iteration Number =  454   best_so_far =  [16.09272186 25.98149839]   new_best = 934.13720\n",
      "iteration Number =  455   best_so_far =  [16.1602744  25.84934538]   new_best = 929.73819\n",
      "iteration Number =  456   best_so_far =  [16.13153962 25.834377  ]   new_best = 928.01992\n",
      "iteration Number =  457   best_so_far =  [16.1017819 25.8251693]   new_best = 926.53857\n",
      "iteration Number =  458   best_so_far =  [16.12016851 25.73131862]   new_best = 922.18806\n",
      "iteration Number =  459   best_so_far =  [16.08344758 25.71048539]   new_best = 919.83684\n",
      "iteration Number =  461   best_so_far =  [16.04296416 25.64385792]   new_best = 915.02425\n",
      "iteration Number =  462   best_so_far =  [16.0185319  25.56399907]   new_best = 910.25412\n",
      "iteration Number =  465   best_so_far =  [16.02301644 25.55972126]   new_best = 910.18963\n",
      "iteration Number =  468   best_so_far =  [16.02448601 25.54546701]   new_best = 909.53164\n",
      "iteration Number =  469   best_so_far =  [15.95224446 25.55241064]   new_best = 907.59457\n",
      "iteration Number =  472   best_so_far =  [15.88732042 25.51560903]   new_best = 903.80265\n",
      "iteration Number =  474   best_so_far =  [15.83728451 25.53786386]   new_best = 903.37837\n",
      "iteration Number =  477   best_so_far =  [15.84730757 25.48851442]   new_best = 901.19565\n",
      "iteration Number =  478   best_so_far =  [15.75088324 25.46339572]   new_best = 896.75185\n",
      "iteration Number =  481   best_so_far =  [15.71397922 25.44866737]   new_best = 894.75589\n",
      "iteration Number =  482   best_so_far =  [15.65474687 25.35594416]   new_best = 888.00609\n",
      "iteration Number =  484   best_so_far =  [15.60249216 25.30211454]   new_best = 883.71785\n",
      "iteration Number =  486   best_so_far =  [15.57194976 25.28342904]   new_best = 881.90176\n",
      "iteration Number =  491   best_so_far =  [15.50541619 25.2419971 ]   new_best = 877.89233\n",
      "iteration Number =  493   best_so_far =  [15.49102734 25.24265973]   new_best = 877.47740\n",
      "iteration Number =  495   best_so_far =  [15.48720121 25.21048109]   new_best = 875.78747\n",
      "iteration Number =  496   best_so_far =  [15.43063374 25.20839386]   new_best = 873.86439\n",
      "iteration Number =  498   best_so_far =  [15.37139321 25.20428994]   new_best = 871.73685\n",
      "iteration Number =  499   best_so_far =  [15.28324172 25.16250947]   new_best = 866.97099\n",
      "iteration Number =  501   best_so_far =  [15.34199185 25.11434081]   new_best = 866.26203\n",
      "iteration Number =  503   best_so_far =  [15.30132845 24.9903933 ]   new_best = 858.67044\n",
      "iteration Number =  504   best_so_far =  [15.3261886  24.96632644]   new_best = 858.23084\n",
      "iteration Number =  505   best_so_far =  [15.35982178 24.89464452]   new_best = 855.82084\n",
      "iteration Number =  506   best_so_far =  [15.33772858 24.89332211]   new_best = 855.06752\n",
      "iteration Number =  507   best_so_far =  [15.31067818 24.88677492]   new_best = 853.93234\n",
      "iteration Number =  509   best_so_far =  [15.32808181 24.8739857 ]   new_best = 853.83884\n",
      "iteration Number =  510   best_so_far =  [15.37365007 24.76727378]   new_best = 849.92457\n",
      "iteration Number =  511   best_so_far =  [15.36811514 24.72865364]   new_best = 847.76507\n",
      "iteration Number =  512   best_so_far =  [15.31135429 24.71283223]   new_best = 845.20494\n",
      "iteration Number =  513   best_so_far =  [15.23399525 24.66675821]   new_best = 840.65410\n",
      "iteration Number =  516   best_so_far =  [15.29826528 24.58185976]   new_best = 838.43048\n",
      "iteration Number =  518   best_so_far =  [15.29663772 24.49477618]   new_best = 834.20409\n",
      "iteration Number =  519   best_so_far =  [15.23727807 24.51143771]   new_best = 833.30776\n",
      "iteration Number =  520   best_so_far =  [15.27036081 24.48303175]   new_best = 832.86060\n",
      "iteration Number =  521   best_so_far =  [15.24241076 24.47866459]   new_best = 831.84268\n",
      "iteration Number =  522   best_so_far =  [15.15819651 24.34602242]   new_best = 822.70085\n",
      "iteration Number =  532   best_so_far =  [15.12523079 24.33422221]   new_best = 821.09740\n",
      "iteration Number =  533   best_so_far =  [15.10604397 24.26536096]   new_best = 817.21380\n",
      "iteration Number =  534   best_so_far =  [15.12698614 24.22728121]   new_best = 816.10235\n",
      "iteration Number =  535   best_so_far =  [15.10723731 24.16805149]   new_best = 812.66612\n",
      "iteration Number =  537   best_so_far =  [15.09454678 24.15105263]   new_best = 811.43415\n",
      "iteration Number =  543   best_so_far =  [15.02949062 24.10693539]   new_best = 807.18636\n",
      "iteration Number =  546   best_so_far =  [15.08104626 23.98334984]   new_best = 802.73918\n",
      "iteration Number =  547   best_so_far =  [15.03403625 23.98177743]   new_best = 801.17358\n",
      "iteration Number =  548   best_so_far =  [15.03679763 23.94584891]   new_best = 799.58040\n",
      "iteration Number =  550   best_so_far =  [15.0122383  23.92191617]   new_best = 797.71928\n",
      "iteration Number =  552   best_so_far =  [15.02643964 23.90964682]   new_best = 797.59138\n",
      "iteration Number =  555   best_so_far =  [14.95488332 23.84629633]   new_best = 792.52639\n",
      "iteration Number =  558   best_so_far =  [14.99234633 23.70494529]   new_best = 786.72010\n",
      "iteration Number =  559   best_so_far =  [14.97738476 23.67234142]   new_best = 784.71154\n",
      "iteration Number =  562   best_so_far =  [14.92818588 23.65484779]   new_best = 782.48460\n",
      "iteration Number =  563   best_so_far =  [14.85428248 23.61628323]   new_best = 778.61404\n",
      "iteration Number =  564   best_so_far =  [14.85853422 23.58383759]   new_best = 777.26310\n",
      "iteration Number =  565   best_so_far =  [14.83527347 23.56190967]   new_best = 775.58938\n",
      "iteration Number =  566   best_so_far =  [14.77136727 23.51889311]   new_best = 771.66424\n",
      "iteration Number =  567   best_so_far =  [14.70097871 23.56345244]   new_best = 771.51259\n",
      "iteration Number =  569   best_so_far =  [14.65080871 23.57392543]   new_best = 770.49976\n",
      "iteration Number =  572   best_so_far =  [14.62029266 23.54278146]   new_best = 768.22212\n",
      "iteration Number =  573   best_so_far =  [14.58239908 23.47677358]   new_best = 764.09784\n",
      "iteration Number =  574   best_so_far =  [14.61268526 23.41440311]   new_best = 761.90742\n",
      "iteration Number =  575   best_so_far =  [14.59791732 23.32594332]   new_best = 757.27362\n",
      "iteration Number =  576   best_so_far =  [14.57828514 23.32272787]   new_best = 756.58860\n",
      "iteration Number =  578   best_so_far =  [14.54039605 23.31283594]   new_best = 755.09224\n",
      "iteration Number =  579   best_so_far =  [14.59078737 23.27655632]   new_best = 754.82910\n",
      "iteration Number =  580   best_so_far =  [14.51276487 23.27449151]   new_best = 752.57623\n",
      "iteration Number =  583   best_so_far =  [14.5131798  23.22789207]   new_best = 750.50614\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "iteration Number =  589   best_so_far =  [14.56919718 23.18690756]   new_best = 750.21458\n",
      "iteration Number =  590   best_so_far =  [14.58056756 23.09466682]   new_best = 746.18255\n",
      "iteration Number =  591   best_so_far =  [14.52485094 23.03763841]   new_best = 741.91697\n",
      "iteration Number =  592   best_so_far =  [14.51525355 22.99227157]   new_best = 739.53451\n",
      "iteration Number =  593   best_so_far =  [14.4966415  22.96376016]   new_best = 737.70989\n",
      "iteration Number =  594   best_so_far =  [14.53177653 22.93437739]   new_best = 737.40968\n",
      "iteration Number =  596   best_so_far =  [14.43308721 22.91498147]   new_best = 733.64453\n",
      "iteration Number =  597   best_so_far =  [14.41442798 22.86339929]   new_best = 730.79078\n",
      "iteration Number =  598   best_so_far =  [14.38658233 22.83225405]   new_best = 728.53113\n",
      "iteration Number =  604   best_so_far =  [14.36418456 22.82672047]   new_best = 727.60403\n",
      "iteration Number =  606   best_so_far =  [14.33009325 22.80107857]   new_best = 725.42234\n",
      "iteration Number =  608   best_so_far =  [14.25827087 22.74872232]   new_best = 720.98424\n",
      "iteration Number =  611   best_so_far =  [14.20650785 22.63295426]   new_best = 714.26940\n",
      "iteration Number =  615   best_so_far =  [14.24044682 22.60397189]   new_best = 713.91180\n",
      "iteration Number =  617   best_so_far =  [14.28261001 22.56719228]   new_best = 713.44525\n",
      "iteration Number =  618   best_so_far =  [14.30139922 22.54487949]   new_best = 712.98687\n",
      "iteration Number =  621   best_so_far =  [14.2404945  22.54645822]   new_best = 711.41806\n",
      "iteration Number =  622   best_so_far =  [14.14437355 22.43796937]   new_best = 703.85468\n",
      "iteration Number =  623   best_so_far =  [14.15455048 22.42205201]   new_best = 703.40583\n",
      "iteration Number =  628   best_so_far =  [14.14473632 22.35851037]   new_best = 700.17830\n",
      "iteration Number =  630   best_so_far =  [14.10731271 22.3380227 ]   new_best = 698.14679\n",
      "iteration Number =  631   best_so_far =  [14.05668249 22.34563143]   new_best = 696.97113\n",
      "iteration Number =  632   best_so_far =  [13.94816055 22.34997946]   new_best = 694.12198\n",
      "iteration Number =  634   best_so_far =  [13.94049122 22.33763183]   new_best = 693.36461\n",
      "iteration Number =  635   best_so_far =  [13.89332731 22.35797471]   new_best = 693.05691\n",
      "iteration Number =  636   best_so_far =  [13.87702785 22.30775904]   new_best = 690.38851\n",
      "iteration Number =  639   best_so_far =  [13.89531357 22.24979491]   new_best = 688.37462\n",
      "iteration Number =  640   best_so_far =  [13.85213385 22.26123184]   new_best = 687.71830\n",
      "iteration Number =  644   best_so_far =  [13.89535421 22.22769153]   new_best = 687.43290\n",
      "iteration Number =  646   best_so_far =  [13.91690909 22.20133347]   new_best = 686.86003\n",
      "iteration Number =  649   best_so_far =  [13.83558067 22.14625745]   new_best = 682.27217\n",
      "iteration Number =  652   best_so_far =  [13.82650082 22.08195454]   new_best = 679.08009\n",
      "iteration Number =  653   best_so_far =  [13.81959185 22.06247038]   new_best = 677.99073\n",
      "iteration Number =  655   best_so_far =  [13.79225796 22.06813305]   new_best = 677.47040\n",
      "iteration Number =  656   best_so_far =  [13.68750118 22.10734228]   new_best = 676.23221\n",
      "iteration Number =  658   best_so_far =  [13.67835367 22.11017503]   new_best = 676.10684\n",
      "iteration Number =  659   best_so_far =  [13.69439729 22.09076504]   new_best = 675.66414\n",
      "iteration Number =  660   best_so_far =  [13.66865068 22.0711357 ]   new_best = 674.04310\n",
      "iteration Number =  661   best_so_far =  [13.6575005  21.97825161]   new_best = 669.58127\n",
      "iteration Number =  662   best_so_far =  [13.73137003 21.92315672]   new_best = 669.32922\n",
      "iteration Number =  665   best_so_far =  [13.55943451 21.98608405]   new_best = 667.39412\n",
      "iteration Number =  666   best_so_far =  [13.52427087 21.99791652]   new_best = 667.00441\n",
      "iteration Number =  670   best_so_far =  [13.51039171 21.98176526]   new_best = 665.93319\n",
      "iteration Number =  671   best_so_far =  [13.5054238  21.95605436]   new_best = 664.69764\n",
      "iteration Number =  672   best_so_far =  [13.39830126 21.96246841]   new_best = 661.95466\n",
      "iteration Number =  673   best_so_far =  [13.35128351 21.95661867]   new_best = 660.38781\n",
      "iteration Number =  676   best_so_far =  [13.37565566 21.94012663]   new_best = 660.36527\n",
      "iteration Number =  677   best_so_far =  [13.39162297 21.88546811]   new_best = 658.51963\n",
      "iteration Number =  680   best_so_far =  [13.2918237  21.88283772]   new_best = 655.72127\n",
      "iteration Number =  683   best_so_far =  [13.33216559 21.79989856]   new_best = 653.16233\n",
      "iteration Number =  684   best_so_far =  [13.36277838 21.75270445]   new_best = 651.86251\n",
      "iteration Number =  688   best_so_far =  [13.34955466 21.69397275]   new_best = 648.85585\n",
      "iteration Number =  690   best_so_far =  [13.34234422 21.68834237]   new_best = 648.41142\n",
      "iteration Number =  691   best_so_far =  [13.29456766 21.67352595]   new_best = 646.51397\n",
      "iteration Number =  692   best_so_far =  [13.36234083 21.62340976]   new_best = 646.17052\n",
      "iteration Number =  693   best_so_far =  [13.36288632 21.57902486]   new_best = 644.34508\n",
      "iteration Number =  694   best_so_far =  [13.37440568 21.55114182]   new_best = 643.51243\n",
      "iteration Number =  695   best_so_far =  [13.3776686  21.49425971]   new_best = 641.19688\n",
      "iteration Number =  696   best_so_far =  [13.29392249 21.50793964]   new_best = 639.54575\n",
      "iteration Number =  698   best_so_far =  [13.28783383 21.49824376]   new_best = 638.97605\n",
      "iteration Number =  700   best_so_far =  [13.28600543 21.41643595]   new_best = 635.31784\n",
      "iteration Number =  703   best_so_far =  [13.30394285 21.32925635]   new_best = 631.94781\n",
      "iteration Number =  705   best_so_far =  [13.25485861 21.34401065]   new_best = 631.35144\n",
      "iteration Number =  706   best_so_far =  [13.23461589 21.27034545]   new_best = 627.77563\n",
      "iteration Number =  710   best_so_far =  [13.19311319 21.28847377]   new_best = 627.48009\n",
      "iteration Number =  711   best_so_far =  [13.19507423 21.23976544]   new_best = 625.54432\n",
      "iteration Number =  713   best_so_far =  [13.16563059 21.23861607]   new_best = 624.73505\n",
      "iteration Number =  715   best_so_far =  [13.10311658 21.2455311 ]   new_best = 623.30960\n",
      "iteration Number =  716   best_so_far =  [13.07394349 21.24245581]   new_best = 622.36695\n",
      "iteration Number =  717   best_so_far =  [13.08817708 21.15619942]   new_best = 619.19137\n",
      "iteration Number =  718   best_so_far =  [13.08123108 21.09313125]   new_best = 616.25131\n",
      "iteration Number =  719   best_so_far =  [13.07563742 21.08074289]   new_best = 615.54879\n",
      "iteration Number =  722   best_so_far =  [13.06340102 21.07323203]   new_best = 614.87611\n",
      "iteration Number =  726   best_so_far =  [13.03813294 21.00893466]   new_best = 611.39374\n",
      "iteration Number =  727   best_so_far =  [13.04646348 20.99088752]   new_best = 610.86465\n",
      "iteration Number =  730   best_so_far =  [12.98980666 20.85366042]   new_best = 603.80539\n",
      "iteration Number =  731   best_so_far =  [12.88522775 20.86820132]   new_best = 601.84724\n",
      "iteration Number =  732   best_so_far =  [12.86368899 20.84183215]   new_best = 600.23982\n",
      "iteration Number =  736   best_so_far =  [12.86006434 20.77253706]   new_best = 597.20763\n",
      "iteration Number =  737   best_so_far =  [12.82502284 20.69241548]   new_best = 592.86695\n",
      "iteration Number =  741   best_so_far =  [12.74036612 20.72495119]   new_best = 591.97527\n",
      "iteration Number =  742   best_so_far =  [12.74917801 20.64505479]   new_best = 588.86621\n",
      "iteration Number =  748   best_so_far =  [12.69356462 20.65673346]   new_best = 587.84143\n",
      "iteration Number =  750   best_so_far =  [12.63838855 20.62457329]   new_best = 585.14680\n",
      "iteration Number =  753   best_so_far =  [12.60559734 20.60605227]   new_best = 583.62989\n",
      "iteration Number =  754   best_so_far =  [12.64352188 20.50750764]   new_best = 580.62534\n",
      "iteration Number =  755   best_so_far =  [12.62766086 20.48522908]   new_best = 579.32456\n",
      "iteration Number =  756   best_so_far =  [12.6909738  20.34656092]   new_best = 575.05618\n",
      "iteration Number =  759   best_so_far =  [12.562327   20.30320555]   new_best = 570.18774\n",
      "iteration Number =  760   best_so_far =  [12.53303595 20.26769643]   new_best = 568.10647\n",
      "iteration Number =  761   best_so_far =  [12.57810951 20.22372818]   new_best = 567.46705\n",
      "iteration Number =  762   best_so_far =  [12.57186335 20.21445859]   new_best = 566.96119\n",
      "iteration Number =  763   best_so_far =  [12.47735802 20.15821346]   new_best = 562.42732\n",
      "iteration Number =  764   best_so_far =  [12.47475863 20.13364452]   new_best = 561.35241\n",
      "iteration Number =  766   best_so_far =  [12.51224462 20.10709872]   new_best = 561.19149\n",
      "iteration Number =  767   best_so_far =  [12.53514085 20.0357043 ]   new_best = 558.75960\n",
      "iteration Number =  770   best_so_far =  [12.41618447 19.98765034]   new_best = 553.76916\n",
      "iteration Number =  771   best_so_far =  [12.45064544 19.9636991 ]   new_best = 553.75027\n",
      "iteration Number =  777   best_so_far =  [12.37604376 19.93815198]   new_best = 550.78818\n",
      "iteration Number =  779   best_so_far =  [12.37892993 19.92009952]   new_best = 550.17711\n",
      "iteration Number =  783   best_so_far =  [12.34208874 19.90141702]   new_best = 548.52421\n",
      "iteration Number =  784   best_so_far =  [12.29791588 19.87964049]   new_best = 546.62584\n",
      "iteration Number =  787   best_so_far =  [12.33055424 19.79397301]   new_best = 544.01708\n",
      "iteration Number =  789   best_so_far =  [12.36140503 19.7497665 ]   new_best = 542.96940\n",
      "iteration Number =  794   best_so_far =  [12.36069214 19.7335914 ]   new_best = 542.28253\n",
      "iteration Number =  795   best_so_far =  [12.31753482 19.6888753 ]   new_best = 539.38627\n",
      "iteration Number =  796   best_so_far =  [12.36187245 19.60999929]   new_best = 537.43452\n",
      "iteration Number =  797   best_so_far =  [12.35876117 19.58827507]   new_best = 536.54223\n",
      "iteration Number =  798   best_so_far =  [12.26215639 19.62197166]   new_best = 535.49446\n",
      "iteration Number =  799   best_so_far =  [12.2001279  19.62832312]   new_best = 534.32108\n",
      "iteration Number =  801   best_so_far =  [12.15675382 19.64732414]   new_best = 534.00911\n",
      "iteration Number =  803   best_so_far =  [12.11435309 19.62407644]   new_best = 532.04788\n",
      "iteration Number =  805   best_so_far =  [12.11238552 19.51353366]   new_best = 527.83640\n",
      "iteration Number =  810   best_so_far =  [12.09001806 19.48431372]   new_best = 526.11426\n",
      "iteration Number =  812   best_so_far =  [12.14674652 19.43579725]   new_best = 525.62072\n",
      "iteration Number =  815   best_so_far =  [12.1367154  19.40895371]   new_best = 524.27591\n",
      "iteration Number =  818   best_so_far =  [12.09409932 19.41378553]   new_best = 523.37530\n",
      "iteration Number =  821   best_so_far =  [12.1140727 19.343927 ]   new_best = 521.09424\n",
      "iteration Number =  824   best_so_far =  [12.03859778 19.33064396]   new_best = 518.62670\n",
      "iteration Number =  826   best_so_far =  [12.0410603  19.32872514]   new_best = 518.61524\n",
      "iteration Number =  828   best_so_far =  [12.06448551 19.28896949]   new_best = 517.71452\n",
      "iteration Number =  829   best_so_far =  [11.99430701 19.28333626]   new_best = 515.75319\n",
      "iteration Number =  832   best_so_far =  [11.97375357 19.22136069]   new_best = 512.99610\n",
      "iteration Number =  833   best_so_far =  [11.99667096 19.19622183]   new_best = 512.60073\n",
      "iteration Number =  834   best_so_far =  [11.89958782 19.20204483]   new_best = 510.63021\n",
      "iteration Number =  836   best_so_far =  [11.84929938 19.09301812]   new_best = 505.26204\n",
      "iteration Number =  840   best_so_far =  [11.77590571 18.98323331]   new_best = 499.18672\n",
      "iteration Number =  842   best_so_far =  [11.82249538 18.90261214]   new_best = 497.40512\n",
      "iteration Number =  845   best_so_far =  [11.85764642 18.87501765]   new_best = 497.23147\n",
      "iteration Number =  846   best_so_far =  [11.79102085 18.89462431]   new_best = 496.34570\n",
      "iteration Number =  849   best_so_far =  [11.80423444 18.8822559 ]   new_best = 496.22577\n",
      "iteration Number =  851   best_so_far =  [11.83560991 18.84351906]   new_best = 495.55816\n",
      "iteration Number =  853   best_so_far =  [11.80708029 18.83269336]   new_best = 494.46515\n",
      "iteration Number =  856   best_so_far =  [11.75222202 18.80275591]   new_best = 491.94516\n",
      "iteration Number =  857   best_so_far =  [11.66698568 18.78644502]   new_best = 489.21168\n",
      "iteration Number =  858   best_so_far =  [11.55686951 18.79164081]   new_best = 487.00533\n",
      "iteration Number =  861   best_so_far =  [11.55256543 18.76609501]   new_best = 485.91230\n",
      "iteration Number =  862   best_so_far =  [11.51285382 18.67034218]   new_best = 481.32488\n",
      "iteration Number =  863   best_so_far =  [11.46160217 18.6952952 ]   new_best = 481.07058\n",
      "iteration Number =  865   best_so_far =  [11.43059688 18.6808491 ]   new_best = 479.76129\n",
      "iteration Number =  867   best_so_far =  [11.42408714 18.65049723]   new_best = 478.46905\n",
      "iteration Number =  868   best_so_far =  [11.37580005 18.65964863]   new_best = 477.62224\n",
      "iteration Number =  871   best_so_far =  [11.34302199 18.63979326]   new_best = 476.12066\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "iteration Number =  876   best_so_far =  [11.36219764 18.60052527]   new_best = 475.16233\n",
      "iteration Number =  877   best_so_far =  [11.37105823 18.58777409]   new_best = 474.92280\n",
      "iteration Number =  878   best_so_far =  [11.41931069 18.54717067]   new_best = 474.66635\n",
      "iteration Number =  879   best_so_far =  [11.44150542 18.5209502 ]   new_best = 474.27090\n",
      "iteration Number =  881   best_so_far =  [11.37854712 18.52917024]   new_best = 473.02098\n",
      "iteration Number =  882   best_so_far =  [11.39920957 18.48172193]   new_best = 471.77688\n",
      "iteration Number =  887   best_so_far =  [11.36755426 18.43875804]   new_best = 469.36831\n",
      "iteration Number =  888   best_so_far =  [11.32854708 18.4049715 ]   new_best = 467.15656\n",
      "iteration Number =  889   best_so_far =  [11.34423399 18.34025049]   new_best = 465.05913\n",
      "iteration Number =  891   best_so_far =  [11.33964822 18.28655284]   new_best = 463.02348\n",
      "iteration Number =  892   best_so_far =  [11.33874973 18.2869242 ]   new_best = 463.01597\n",
      "iteration Number =  895   best_so_far =  [11.29463379 18.31321101]   new_best = 462.97581\n",
      "iteration Number =  899   best_so_far =  [11.27157276 18.30471403]   new_best = 462.18666\n",
      "iteration Number =  900   best_so_far =  [11.26568412 18.20784477]   new_best = 458.68478\n",
      "iteration Number =  902   best_so_far =  [11.24994193 18.17039142]   new_best = 457.02487\n",
      "iteration Number =  903   best_so_far =  [11.18381097 18.12724495]   new_best = 454.04261\n",
      "iteration Number =  904   best_so_far =  [11.18275814 18.11676409]   new_best = 453.62495\n",
      "iteration Number =  906   best_so_far =  [11.17976286 18.07917994]   new_best = 452.13214\n",
      "iteration Number =  908   best_so_far =  [11.10970561 18.09239003]   new_best = 451.02328\n",
      "iteration Number =  909   best_so_far =  [11.13501205 18.07191864]   new_best = 450.84278\n",
      "iteration Number =  910   best_so_far =  [11.13235039 18.05080051]   new_best = 449.98168\n",
      "iteration Number =  911   best_so_far =  [11.15789805 17.98342435]   new_best = 448.10593\n",
      "iteration Number =  912   best_so_far =  [11.13048653 17.9494964 ]   new_best = 446.29220\n",
      "iteration Number =  913   best_so_far =  [11.00723052 17.98039971]   new_best = 444.46186\n",
      "iteration Number =  915   best_so_far =  [10.9496927  17.91468668]   new_best = 440.97868\n",
      "iteration Number =  916   best_so_far =  [10.96957564 17.88996745]   new_best = 440.54795\n",
      "iteration Number =  917   best_so_far =  [10.93040379 17.8319569 ]   new_best = 437.72733\n",
      "iteration Number =  918   best_so_far =  [10.85180869 17.86454349]   new_best = 437.28160\n",
      "iteration Number =  920   best_so_far =  [10.85571776 17.78968831]   new_best = 434.67839\n",
      "iteration Number =  924   best_so_far =  [10.80644105 17.76568154]   new_best = 432.71392\n",
      "iteration Number =  926   best_so_far =  [10.74116603 17.68590695]   new_best = 428.25295\n",
      "iteration Number =  927   best_so_far =  [10.74597026 17.61804069]   new_best = 426.00298\n",
      "iteration Number =  929   best_so_far =  [10.6833942  17.54546651]   new_best = 422.14926\n",
      "iteration Number =  930   best_so_far =  [10.64460319 17.51307758]   new_best = 420.22144\n",
      "iteration Number =  932   best_so_far =  [10.61089656 17.50513881]   new_best = 419.27149\n",
      "iteration Number =  933   best_so_far =  [10.62165262 17.47944619]   new_best = 418.57709\n",
      "iteration Number =  936   best_so_far =  [10.61974837 17.47004997]   new_best = 418.20274\n",
      "iteration Number =  938   best_so_far =  [10.60678906 17.43823317]   new_best = 416.79235\n",
      "iteration Number =  940   best_so_far =  [10.62073221 17.39834436]   new_best = 415.60323\n",
      "iteration Number =  941   best_so_far =  [10.61994188 17.38008885]   new_best = 414.92310\n",
      "iteration Number =  943   best_so_far =  [10.61747898 17.30459048]   new_best = 412.23500\n",
      "iteration Number =  945   best_so_far =  [10.59113564 17.23376953]   new_best = 409.39193\n",
      "iteration Number =  946   best_so_far =  [10.48371944 17.23168705]   new_best = 407.16930\n",
      "iteration Number =  950   best_so_far =  [10.45464292 17.20873479]   new_best = 405.77615\n",
      "iteration Number =  951   best_so_far =  [10.44013548 17.16130712]   new_best = 403.84856\n",
      "iteration Number =  952   best_so_far =  [10.41771618 17.12797971]   new_best = 402.17183\n",
      "iteration Number =  954   best_so_far =  [10.42122427 17.05162631]   new_best = 399.51083\n",
      "iteration Number =  957   best_so_far =  [10.35161184 17.0691958 ]   new_best = 398.59175\n",
      "iteration Number =  959   best_so_far =  [10.40207283 16.99375855]   new_best = 397.06404\n",
      "iteration Number =  960   best_so_far =  [10.41402482 16.92447045]   new_best = 395.07033\n",
      "iteration Number =  961   best_so_far =  [10.4464147  16.86401678]   new_best = 393.85957\n",
      "iteration Number =  962   best_so_far =  [10.49795867 16.79507356]   new_best = 392.65602\n",
      "iteration Number =  963   best_so_far =  [10.48618637 16.79492922]   new_best = 392.40053\n",
      "iteration Number =  965   best_so_far =  [10.52006052 16.75067357]   new_best = 391.55023\n",
      "iteration Number =  976   best_so_far =  [10.433652   16.74407901]   new_best = 389.44414\n",
      "iteration Number =  978   best_so_far =  [10.34475202 16.74817288]   new_best = 387.61300\n",
      "iteration Number =  979   best_so_far =  [10.35714002 16.63992263]   new_best = 384.17992\n",
      "iteration Number =  981   best_so_far =  [10.35518649 16.60189445]   new_best = 382.92751\n",
      "iteration Number =  982   best_so_far =  [10.33542654 16.60428281]   new_best = 382.58569\n",
      "iteration Number =  984   best_so_far =  [10.23928936 16.59313862]   new_best = 380.37844\n",
      "iteration Number =  985   best_so_far =  [10.22003018 16.50557813]   new_best = 377.23668\n",
      "iteration Number =  986   best_so_far =  [10.32515358 16.40863381]   new_best = 375.93735\n",
      "iteration Number =  987   best_so_far =  [10.28713347 16.37885284]   new_best = 374.16188\n",
      "iteration Number =  988   best_so_far =  [10.35255193 16.2648654 ]   new_best = 371.80068\n",
      "iteration Number =  989   best_so_far =  [10.33970606 16.21069289]   new_best = 369.86490\n",
      "iteration Number =  990   best_so_far =  [10.37216625 16.18776853]   new_best = 369.84345\n",
      "iteration Number =  992   best_so_far =  [10.30845415 16.09502261]   new_best = 365.44602\n",
      "iteration Number =  996   best_so_far =  [10.28414455 16.06350026]   new_best = 363.90277\n",
      "iteration Number =  997   best_so_far =  [10.30438243 16.03545776]   new_best = 363.35199\n",
      "iteration Number =  998   best_so_far =  [10.21326977 16.03096231]   new_best = 361.48297\n",
      "iteration Number =  1002   best_so_far =  [10.24098397 15.95517098]   new_best = 359.59700\n",
      "iteration Number =  1003   best_so_far =  [10.2722845  15.91334983]   new_best = 358.92140\n",
      "iteration Number =  1005   best_so_far =  [10.2997876  15.86583996]   new_best = 358.01249\n",
      "iteration Number =  1006   best_so_far =  [10.245741   15.83311402]   new_best = 355.97129\n",
      "iteration Number =  1007   best_so_far =  [10.20893242 15.82967932]   new_best = 355.17106\n",
      "iteration Number =  1011   best_so_far =  [10.1482049 15.8247509]   new_best = 353.80116\n",
      "iteration Number =  1013   best_so_far =  [10.03905326 15.86923883]   new_best = 352.81936\n",
      "iteration Number =  1014   best_so_far =  [ 9.91172694 15.89392745]   new_best = 351.11147\n",
      "iteration Number =  1015   best_so_far =  [ 9.90860291 15.88865006]   new_best = 350.89645\n",
      "iteration Number =  1019   best_so_far =  [ 9.82825941 15.86306347]   new_best = 348.61612\n",
      "iteration Number =  1021   best_so_far =  [ 9.77413123 15.75653605]   new_best = 344.05693\n",
      "iteration Number =  1022   best_so_far =  [ 9.71086507 15.74528425]   new_best = 342.33747\n",
      "iteration Number =  1023   best_so_far =  [ 9.69508183 15.74070879]   new_best = 341.85997\n",
      "iteration Number =  1024   best_so_far =  [ 9.71296675 15.6818629 ]   new_best = 340.30169\n",
      "iteration Number =  1025   best_so_far =  [ 9.68450542 15.6711357 ]   new_best = 339.37985\n",
      "iteration Number =  1027   best_so_far =  [ 9.67356739 15.61391857]   new_best = 337.41935\n",
      "iteration Number =  1029   best_so_far =  [ 9.71823555 15.56587927]   new_best = 336.91702\n",
      "iteration Number =  1030   best_so_far =  [ 9.6599686  15.58134933]   new_best = 336.19891\n",
      "iteration Number =  1035   best_so_far =  [ 9.71405589 15.47298361]   new_best = 333.99989\n",
      "iteration Number =  1038   best_so_far =  [ 9.70127934 15.47991558]   new_best = 333.95542\n",
      "iteration Number =  1039   best_so_far =  [ 9.6628588  15.47685796]   new_best = 333.09454\n",
      "iteration Number =  1042   best_so_far =  [ 9.68578664 15.42728448]   new_best = 331.94084\n",
      "iteration Number =  1044   best_so_far =  [ 9.73793074 15.36281633]   new_best = 330.93494\n",
      "iteration Number =  1045   best_so_far =  [ 9.62671744 15.25642543]   new_best = 325.54837\n",
      "iteration Number =  1046   best_so_far =  [ 9.59272894 15.26436163]   new_best = 325.17817\n",
      "iteration Number =  1048   best_so_far =  [ 9.49337877 15.24609407]   new_best = 322.87498\n",
      "iteration Number =  1049   best_so_far =  [ 9.48771409 15.23970249]   new_best = 322.58258\n",
      "iteration Number =  1050   best_so_far =  [ 9.45651189 15.25934141]   new_best = 322.52429\n",
      "iteration Number =  1051   best_so_far =  [ 9.49220714 15.18386863]   new_best = 321.04576\n",
      "iteration Number =  1052   best_so_far =  [ 9.4008662  15.13301307]   new_best = 317.63457\n",
      "iteration Number =  1053   best_so_far =  [ 9.32543281 15.13587819]   new_best = 316.24285\n",
      "iteration Number =  1056   best_so_far =  [ 9.24596441 15.16584026]   new_best = 315.79865\n",
      "iteration Number =  1058   best_so_far =  [ 9.19140922 15.1897755 ]   new_best = 315.59185\n",
      "iteration Number =  1059   best_so_far =  [ 9.16550748 15.18597222]   new_best = 315.01399\n",
      "iteration Number =  1060   best_so_far =  [ 9.14103708 15.1737895 ]   new_best = 314.18997\n",
      "iteration Number =  1063   best_so_far =  [ 9.05483419 15.12998791]   new_best = 311.13145\n",
      "iteration Number =  1066   best_so_far =  [ 9.06550691 15.10476143]   new_best = 310.54231\n",
      "iteration Number =  1067   best_so_far =  [ 9.01174617 15.13608453]   new_best = 310.49833\n",
      "iteration Number =  1071   best_so_far =  [ 8.98601646 15.02004807]   new_best = 306.36067\n",
      "iteration Number =  1074   best_so_far =  [ 8.96373221 15.00409874]   new_best = 305.49450\n",
      "iteration Number =  1079   best_so_far =  [ 8.87364562 14.99667502]   new_best = 303.81493\n",
      "iteration Number =  1082   best_so_far =  [ 8.80084787 14.96909804]   new_best = 301.72732\n",
      "iteration Number =  1085   best_so_far =  [ 8.79670666 14.92506728]   new_best = 300.40152\n",
      "iteration Number =  1086   best_so_far =  [ 8.79906647 14.913929  ]   new_best = 300.13439\n",
      "iteration Number =  1090   best_so_far =  [ 8.85017884 14.86365636]   new_best = 299.63365\n",
      "iteration Number =  1092   best_so_far =  [ 8.91653693 14.76304149]   new_best = 297.67630\n",
      "iteration Number =  1095   best_so_far =  [ 8.9250079  14.75458784]   new_best = 297.54628\n",
      "iteration Number =  1096   best_so_far =  [ 8.97244769 14.70910609]   new_best = 296.90580\n",
      "iteration Number =  1097   best_so_far =  [ 8.95654917 14.71292632]   new_best = 296.75709\n",
      "iteration Number =  1098   best_so_far =  [ 8.93226359 14.68578355]   new_best = 295.53521\n",
      "iteration Number =  1101   best_so_far =  [ 8.95575386 14.6695662 ]   new_best = 295.43499\n",
      "iteration Number =  1102   best_so_far =  [ 8.90574317 14.6403445 ]   new_best = 293.78533\n",
      "iteration Number =  1103   best_so_far =  [ 8.90646466 14.55679678]   new_best = 291.49371\n",
      "iteration Number =  1107   best_so_far =  [ 8.88711537 14.54009466]   new_best = 290.72178\n",
      "iteration Number =  1109   best_so_far =  [ 8.88921503 14.48278223]   new_best = 289.11354\n",
      "iteration Number =  1110   best_so_far =  [ 8.91570787 14.42522512]   new_best = 287.79454\n",
      "iteration Number =  1111   best_so_far =  [ 8.91630723 14.36466872]   new_best = 285.96192\n",
      "iteration Number =  1112   best_so_far =  [ 8.86442427 14.28456087]   new_best = 282.85028\n",
      "iteration Number =  1114   best_so_far =  [ 8.88412372 14.22331489]   new_best = 281.53721\n",
      "iteration Number =  1115   best_so_far =  [ 8.79911218 14.1468741 ]   new_best = 277.93087\n",
      "iteration Number =  1116   best_so_far =  [ 8.74761298 14.12357806]   new_best = 276.25942\n",
      "iteration Number =  1118   best_so_far =  [ 8.75835944 14.1025078 ]   new_best = 275.83942\n",
      "iteration Number =  1119   best_so_far =  [ 8.74680908 14.05717723]   new_best = 274.25639\n",
      "iteration Number =  1120   best_so_far =  [ 8.7258216  14.04613839]   new_best = 273.52442\n",
      "iteration Number =  1121   best_so_far =  [ 8.66782069 14.03012189]   new_best = 271.99072\n",
      "iteration Number =  1129   best_so_far =  [ 8.62151143 14.00377444]   new_best = 270.47081\n",
      "iteration Number =  1132   best_so_far =  [ 8.69851613 13.94505887]   new_best = 270.19573\n",
      "iteration Number =  1133   best_so_far =  [ 8.64983003 13.95401162]   new_best = 269.57502\n",
      "iteration Number =  1134   best_so_far =  [ 8.71981929 13.89185625]   new_best = 269.21041\n",
      "iteration Number =  1136   best_so_far =  [ 8.71840436 13.89247614]   new_best = 269.19970\n",
      "iteration Number =  1138   best_so_far =  [ 8.71549407 13.86691323]   new_best = 268.47126\n",
      "iteration Number =  1142   best_so_far =  [ 8.7477637 13.8383995]   new_best = 268.31959\n",
      "iteration Number =  1143   best_so_far =  [ 8.81106269 13.77925672]   new_best = 267.84560\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "iteration Number =  1146   best_so_far =  [ 8.78623343 13.7209944 ]   new_best = 265.67368\n",
      "iteration Number =  1148   best_so_far =  [ 8.85519438 13.66217641]   new_best = 265.26178\n",
      "iteration Number =  1149   best_so_far =  [ 8.74838539 13.62105349]   new_best = 262.19913\n",
      "iteration Number =  1151   best_so_far =  [ 8.70217513 13.64254958]   new_best = 261.87878\n",
      "iteration Number =  1153   best_so_far =  [ 8.68367404 13.64559745]   new_best = 261.62155\n",
      "iteration Number =  1155   best_so_far =  [ 8.65571315 13.66298631]   new_best = 261.60108\n",
      "iteration Number =  1158   best_so_far =  [ 8.60765512 13.62950829]   new_best = 259.93543\n",
      "iteration Number =  1159   best_so_far =  [ 8.53829933 13.6403821 ]   new_best = 259.15033\n",
      "iteration Number =  1160   best_so_far =  [ 8.52149504 13.59061934]   new_best = 257.59996\n",
      "iteration Number =  1161   best_so_far =  [ 8.50944887 13.56286664]   new_best = 256.69890\n",
      "iteration Number =  1164   best_so_far =  [ 8.43944715 13.59643014]   new_best = 256.30468\n",
      "iteration Number =  1165   best_so_far =  [ 8.48236199 13.54456257]   new_best = 255.76732\n",
      "iteration Number =  1166   best_so_far =  [ 8.4433364  13.49172534]   new_best = 253.66302\n",
      "iteration Number =  1170   best_so_far =  [ 8.35390293 13.5132708 ]   new_best = 252.60050\n",
      "iteration Number =  1171   best_so_far =  [ 8.24723481 13.54394401]   new_best = 251.72913\n",
      "iteration Number =  1175   best_so_far =  [ 8.29850413 13.37780294]   new_best = 247.88442\n",
      "iteration Number =  1177   best_so_far =  [ 8.22288426 13.33499705]   new_best = 245.58731\n",
      "iteration Number =  1185   best_so_far =  [ 8.14434748 13.30223186]   new_best = 243.48797\n",
      "iteration Number =  1186   best_so_far =  [ 8.10122054 13.28226592]   new_best = 242.22449\n",
      "iteration Number =  1189   best_so_far =  [ 8.0151516  13.26505568]   new_best = 240.28099\n",
      "iteration Number =  1191   best_so_far =  [ 8.07635456 13.16176255]   new_best = 238.74544\n",
      "iteration Number =  1192   best_so_far =  [ 8.13205529 13.09584187]   new_best = 237.93324\n",
      "iteration Number =  1195   best_so_far =  [ 8.23243472 13.00960045]   new_best = 237.15713\n",
      "iteration Number =  1198   best_so_far =  [ 8.19758086 12.97344504]   new_best = 235.70697\n",
      "iteration Number =  1199   best_so_far =  [ 8.19614616 12.93599456]   new_best = 234.76700\n",
      "iteration Number =  1203   best_so_far =  [ 8.14770794 12.90161276]   new_best = 233.15896\n",
      "iteration Number =  1204   best_so_far =  [ 8.12210653 12.88191433]   new_best = 232.24023\n",
      "iteration Number =  1205   best_so_far =  [ 8.08801505 12.90264098]   new_best = 232.12932\n",
      "iteration Number =  1206   best_so_far =  [ 8.00955438 12.83130149]   new_best = 228.99669\n",
      "iteration Number =  1210   best_so_far =  [ 8.01317564 12.76633126]   new_best = 227.32278\n",
      "iteration Number =  1212   best_so_far =  [ 7.98033999 12.72838519]   new_best = 225.76429\n",
      "iteration Number =  1213   best_so_far =  [ 7.95235616 12.72364641]   new_best = 225.22090\n",
      "iteration Number =  1214   best_so_far =  [ 7.85781862 12.75571152]   new_best = 224.75326\n",
      "iteration Number =  1215   best_so_far =  [ 7.76917804 12.66848265]   new_best = 220.98558\n",
      "iteration Number =  1216   best_so_far =  [ 7.79101953 12.63816274]   new_best = 220.60713\n",
      "iteration Number =  1217   best_so_far =  [ 7.7709836  12.61225663]   new_best = 219.64408\n",
      "iteration Number =  1218   best_so_far =  [ 7.76167805 12.61093344]   new_best = 219.45160\n",
      "iteration Number =  1221   best_so_far =  [ 7.80111999 12.56953224]   new_best = 219.15889\n",
      "iteration Number =  1222   best_so_far =  [ 7.84920399 12.44036462]   new_best = 216.71094\n",
      "iteration Number =  1224   best_so_far =  [ 7.81490928 12.40818525]   new_best = 215.31315\n",
      "iteration Number =  1225   best_so_far =  [ 7.85270523 12.35893291]   new_best = 214.61287\n",
      "iteration Number =  1227   best_so_far =  [ 7.85020276 12.34637002]   new_best = 214.25650\n",
      "iteration Number =  1228   best_so_far =  [ 7.85215039 12.33174883]   new_best = 213.92229\n",
      "iteration Number =  1229   best_so_far =  [ 7.80431099 12.34317883]   new_best = 213.44811\n",
      "iteration Number =  1230   best_so_far =  [ 7.70916115 12.30357238]   new_best = 210.85485\n",
      "iteration Number =  1231   best_so_far =  [ 7.61806529 12.2745253 ]   new_best = 208.79435\n",
      "iteration Number =  1234   best_so_far =  [ 7.57319084 12.21529162]   new_best = 206.84738\n",
      "iteration Number =  1239   best_so_far =  [ 7.62430814 12.1546608 ]   new_best = 206.09367\n",
      "iteration Number =  1240   best_so_far =  [ 7.59074391 12.09921724]   new_best = 204.22580\n",
      "iteration Number =  1241   best_so_far =  [ 7.49842312 12.10816882]   new_best = 203.17856\n",
      "iteration Number =  1243   best_so_far =  [ 7.44314957 12.06592424]   new_best = 201.20165\n",
      "iteration Number =  1244   best_so_far =  [ 7.47820888 12.04291228]   new_best = 201.17735\n",
      "iteration Number =  1246   best_so_far =  [ 7.45481498 12.00838213]   new_best = 199.94221\n",
      "iteration Number =  1251   best_so_far =  [ 7.40001699 11.97633757]   new_best = 198.27172\n",
      "iteration Number =  1252   best_so_far =  [ 7.33599522 11.95213256]   new_best = 196.70895\n",
      "iteration Number =  1253   best_so_far =  [ 7.2339864  11.87627345]   new_best = 193.67601\n",
      "iteration Number =  1256   best_so_far =  [ 7.15466193 11.92358518]   new_best = 193.64608\n",
      "iteration Number =  1257   best_so_far =  [ 7.0060918  11.97667997]   new_best = 192.53659\n",
      "iteration Number =  1258   best_so_far =  [ 6.95556231 11.93694642]   new_best = 190.96722\n",
      "iteration Number =  1259   best_so_far =  [ 6.87684798 11.84971362]   new_best = 188.07070\n",
      "iteration Number =  1260   best_so_far =  [ 6.92507304 11.653334  ]   new_best = 183.84474\n",
      "iteration Number =  1262   best_so_far =  [ 6.84364808 11.66024731]   new_best = 182.99589\n",
      "iteration Number =  1263   best_so_far =  [ 6.8890651  11.58459752]   new_best = 181.91042\n",
      "iteration Number =  1264   best_so_far =  [ 6.83470176 11.60901894]   new_best = 181.73647\n",
      "iteration Number =  1265   best_so_far =  [ 6.77294704 11.61368623]   new_best = 180.93850\n",
      "iteration Number =  1268   best_so_far =  [ 6.72070737 11.64672112]   new_best = 180.86847\n",
      "iteration Number =  1269   best_so_far =  [ 6.69390268 11.5607311 ]   new_best = 178.61346\n",
      "iteration Number =  1271   best_so_far =  [ 6.66934661 11.57375168]   new_best = 178.55062\n",
      "iteration Number =  1272   best_so_far =  [ 6.63209781 11.54017357]   new_best = 177.35415\n",
      "iteration Number =  1274   best_so_far =  [ 6.65073998 11.50122549]   new_best = 176.71510\n",
      "iteration Number =  1276   best_so_far =  [ 6.59609553 11.46893025]   new_best = 175.30435\n",
      "iteration Number =  1277   best_so_far =  [ 6.60139417 11.46054156]   new_best = 175.16253\n",
      "iteration Number =  1278   best_so_far =  [ 6.59900041 11.33277788]   new_best = 172.04992\n",
      "iteration Number =  1279   best_so_far =  [ 6.56032168 11.308878  ]   new_best = 171.08162\n",
      "iteration Number =  1280   best_so_far =  [ 6.51439039 11.25923978]   new_best = 169.48749\n",
      "iteration Number =  1283   best_so_far =  [ 6.47543472 11.22770468]   new_best = 168.32328\n",
      "iteration Number =  1286   best_so_far =  [ 6.41695085 11.15618429]   new_best = 165.93582\n",
      "iteration Number =  1288   best_so_far =  [ 6.4381844  11.10675499]   new_best = 165.09152\n",
      "iteration Number =  1290   best_so_far =  [ 6.40791526 11.06406161]   new_best = 163.62196\n",
      "iteration Number =  1292   best_so_far =  [ 6.29895979 11.04705806]   new_best = 161.77122\n",
      "iteration Number =  1296   best_so_far =  [ 6.33807176 10.98078905]   new_best = 160.75595\n",
      "iteration Number =  1299   best_so_far =  [ 6.35228052 10.94589931]   new_best = 160.21853\n",
      "iteration Number =  1300   best_so_far =  [ 6.30005625 10.94519558]   new_best = 159.55656\n",
      "iteration Number =  1301   best_so_far =  [ 6.24034415 10.91147744]   new_best = 158.23105\n",
      "iteration Number =  1302   best_so_far =  [ 6.22760588 10.82958091]   new_best = 156.40389\n",
      "iteration Number =  1303   best_so_far =  [ 6.35141836 10.75171305]   new_best = 156.04812\n",
      "iteration Number =  1305   best_so_far =  [ 6.34312185 10.7348929 ]   new_best = 155.54609\n",
      "iteration Number =  1306   best_so_far =  [ 6.33174354 10.66859464]   new_best = 153.90999\n",
      "iteration Number =  1307   best_so_far =  [ 6.4321164  10.56672208]   new_best = 153.28747\n",
      "iteration Number =  1311   best_so_far =  [ 6.40159338 10.48404854]   new_best = 151.16264\n",
      "iteration Number =  1314   best_so_far =  [ 6.1960181  10.47860024]   new_best = 148.56871\n",
      "iteration Number =  1316   best_so_far =  [ 6.15901777 10.40567122]   new_best = 146.48926\n",
      "iteration Number =  1318   best_so_far =  [ 6.15904919 10.38852436]   new_best = 146.10316\n",
      "iteration Number =  1320   best_so_far =  [ 6.17637311 10.36121081]   new_best = 145.71387\n",
      "iteration Number =  1322   best_so_far =  [ 6.11746069 10.31647365]   new_best = 144.01785\n",
      "iteration Number =  1324   best_so_far =  [ 6.13054561 10.30166244]   new_best = 143.90295\n",
      "iteration Number =  1325   best_so_far =  [ 6.15720623 10.2506268 ]   new_best = 143.28428\n",
      "iteration Number =  1327   best_so_far =  [ 6.15925774 10.20912277]   new_best = 142.53168\n",
      "iteration Number =  1328   best_so_far =  [ 6.19893698 10.14639219]   new_best = 141.75093\n",
      "iteration Number =  1329   best_so_far =  [ 6.21463466 10.11837337]   new_best = 141.32617\n",
      "iteration Number =  1331   best_so_far =  [ 6.10020458 10.11315176]   new_best = 139.77210\n",
      "iteration Number =  1332   best_so_far =  [ 6.04563832 10.03576988]   new_best = 137.32248\n",
      "iteration Number =  1334   best_so_far =  [ 6.01459494 10.02376508]   new_best = 136.66452\n",
      "iteration Number =  1335   best_so_far =  [5.96755282 9.95980594]   new_best = 134.85548\n",
      "iteration Number =  1336   best_so_far =  [5.96539004 9.91117713]   new_best = 133.94893\n",
      "iteration Number =  1346   best_so_far =  [5.9832317  9.84473827]   new_best = 132.92080\n",
      "iteration Number =  1347   best_so_far =  [6.01768046 9.81997295]   new_best = 132.84645\n",
      "iteration Number =  1348   best_so_far =  [5.97762846 9.80115655]   new_best = 131.98546\n",
      "iteration Number =  1349   best_so_far =  [5.95756137 9.67979503]   new_best = 129.22445\n",
      "iteration Number =  1350   best_so_far =  [5.90826794 9.61467558]   new_best = 127.51045\n",
      "iteration Number =  1352   best_so_far =  [5.83765712 9.58064089]   new_best = 126.17222\n",
      "iteration Number =  1355   best_so_far =  [5.84313494 9.56378042]   new_best = 125.94300\n",
      "iteration Number =  1357   best_so_far =  [5.84618138 9.54549515]   new_best = 125.65730\n",
      "iteration Number =  1358   best_so_far =  [5.78990612 9.45731139]   new_best = 123.30080\n",
      "iteration Number =  1366   best_so_far =  [5.79314489 9.44488789]   new_best = 123.08914\n",
      "iteration Number =  1367   best_so_far =  [5.81468709 9.4031124 ]   new_best = 122.49711\n",
      "iteration Number =  1369   best_so_far =  [5.75607647 9.38301548]   new_best = 121.32483\n",
      "iteration Number =  1372   best_so_far =  [5.7597388  9.37493155]   new_best = 121.21070\n",
      "iteration Number =  1373   best_so_far =  [5.74355889 9.36869547]   new_best = 120.86958\n",
      "iteration Number =  1375   best_so_far =  [5.79290367 9.29530357]   new_best = 120.15747\n",
      "iteration Number =  1376   best_so_far =  [5.76160273 9.27981868]   new_best = 119.47963\n",
      "iteration Number =  1377   best_so_far =  [5.70044341 9.26954217]   new_best = 118.50334\n",
      "iteration Number =  1380   best_so_far =  [5.54314668 9.24536304]   new_best = 116.48139\n",
      "iteration Number =  1388   best_so_far =  [5.54826532 9.2254872 ]   new_best = 116.19953\n",
      "iteration Number =  1390   best_so_far =  [5.53532804 9.19179273]   new_best = 115.49696\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "iteration Number =  1393   best_so_far =  [5.45619203 9.16047042]   new_best = 114.05108\n",
      "iteration Number =  1394   best_so_far =  [5.38601809 9.16814834]   new_best = 113.30925\n",
      "iteration Number =  1396   best_so_far =  [5.34459366 9.10994631]   new_best = 111.70563\n",
      "iteration Number =  1397   best_so_far =  [5.31709908 9.09987817]   new_best = 111.21426\n",
      "iteration Number =  1399   best_so_far =  [5.3075077  9.07521874]   new_best = 110.62525\n",
      "iteration Number =  1400   best_so_far =  [5.32619399 9.05447194]   new_best = 110.40056\n",
      "iteration Number =  1401   best_so_far =  [5.31132279 9.02712161]   new_best = 109.72022\n",
      "iteration Number =  1403   best_so_far =  [5.24887822 9.04291282]   new_best = 109.45801\n",
      "iteration Number =  1404   best_so_far =  [5.25007617 9.0263499 ]   new_best = 109.15029\n",
      "iteration Number =  1405   best_so_far =  [5.20806943 9.03958697]   new_best = 109.03562\n",
      "iteration Number =  1407   best_so_far =  [5.14205621 9.04007322]   new_best = 108.37982\n",
      "iteration Number =  1408   best_so_far =  [5.10203352 8.94077554]   new_best = 106.15902\n",
      "iteration Number =  1410   best_so_far =  [5.04032546 8.85943635]   new_best = 104.11019\n",
      "iteration Number =  1412   best_so_far =  [5.0069787  8.83092803]   new_best = 103.25583\n",
      "iteration Number =  1413   best_so_far =  [5.03600678 8.80784018]   new_best = 103.14985\n",
      "iteration Number =  1415   best_so_far =  [5.04036973 8.80220205]   new_best = 103.09448\n",
      "iteration Number =  1416   best_so_far =  [4.99197035 8.7652854 ]   new_best = 101.87913\n",
      "iteration Number =  1417   best_so_far =  [4.94897729 8.74159261]   new_best = 101.03457\n",
      "iteration Number =  1418   best_so_far =  [4.87799186 8.76137794]   new_best = 100.84417\n",
      "iteration Number =  1420   best_so_far =  [4.84907623 8.75845247]   new_best = 100.53512\n",
      "iteration Number =  1423   best_so_far =  [4.80285536 8.73113417]   new_best = 99.54865\n",
      "iteration Number =  1425   best_so_far =  [4.78139354 8.72217666]   new_best = 99.14316\n",
      "iteration Number =  1426   best_so_far =  [4.76671916 8.67991059]   new_best = 98.19619\n",
      "iteration Number =  1427   best_so_far =  [4.79934521 8.62798279]   new_best = 97.68156\n",
      "iteration Number =  1435   best_so_far =  [4.70464261 8.56273311]   new_best = 95.61674\n",
      "iteration Number =  1438   best_so_far =  [4.62059137 8.55049229]   new_best = 94.65479\n",
      "iteration Number =  1439   best_so_far =  [4.59171904 8.56235134]   new_best = 94.62122\n",
      "iteration Number =  1441   best_so_far =  [4.57738481 8.54686176]   new_best = 94.27656\n",
      "iteration Number =  1442   best_so_far =  [4.56394933 8.53550576]   new_best = 93.99918\n",
      "iteration Number =  1443   best_so_far =  [4.6031267  8.48783299]   new_best = 93.49315\n",
      "iteration Number =  1446   best_so_far =  [4.6435519  8.46145047]   new_best = 93.34260\n",
      "iteration Number =  1447   best_so_far =  [4.66659585 8.41337636]   new_best = 92.65535\n",
      "iteration Number =  1448   best_so_far =  [4.68684252 8.36018318]   new_best = 91.87852\n",
      "iteration Number =  1449   best_so_far =  [4.61640467 8.38591781]   new_best = 91.72148\n",
      "iteration Number =  1451   best_so_far =  [4.55935123 8.28523351]   new_best = 89.61541\n",
      "iteration Number =  1453   best_so_far =  [4.56572703 8.27787102]   new_best = 89.55208\n",
      "iteration Number =  1454   best_so_far =  [4.52530844 8.26282572]   new_best = 89.01816\n",
      "iteration Number =  1460   best_so_far =  [4.56684119 8.23529084]   new_best = 88.93470\n",
      "iteration Number =  1461   best_so_far =  [4.50311587 8.18875815]   new_best = 87.72529\n",
      "iteration Number =  1462   best_so_far =  [4.58436895 8.12673174]   new_best = 87.33118\n",
      "iteration Number =  1465   best_so_far =  [4.63261891 8.08284752]   new_best = 86.91227\n",
      "iteration Number =  1467   best_so_far =  [4.54667678 8.0814641 ]   new_best = 86.24228\n",
      "iteration Number =  1470   best_so_far =  [4.46449397 8.04215259]   new_best = 84.81582\n",
      "iteration Number =  1471   best_so_far =  [4.49048307 8.02100424]   new_best = 84.70686\n",
      "iteration Number =  1472   best_so_far =  [4.38952108 8.01523252]   new_best = 83.56664\n",
      "iteration Number =  1473   best_so_far =  [4.31673544 7.96679414]   new_best = 82.12816\n",
      "iteration Number =  1476   best_so_far =  [4.32054209 7.96028111]   new_best = 82.06315\n",
      "iteration Number =  1477   best_so_far =  [4.22796839 7.91778886]   new_best = 80.80598\n",
      "iteration Number =  1479   best_so_far =  [4.17697601 7.8568479 ]   new_best = 79.56587\n",
      "iteration Number =  1481   best_so_far =  [4.23415699 7.78459545]   new_best = 78.81800\n",
      "iteration Number =  1482   best_so_far =  [4.27520307 7.76045726]   new_best = 78.67569\n",
      "iteration Number =  1485   best_so_far =  [4.27436081 7.75597025]   new_best = 78.59193\n",
      "iteration Number =  1486   best_so_far =  [4.27309689 7.70994668]   new_best = 77.79184\n",
      "iteration Number =  1487   best_so_far =  [4.30646299 7.68061452]   new_best = 77.55346\n",
      "iteration Number =  1488   best_so_far =  [4.240867   7.63588053]   new_best = 76.42559\n",
      "iteration Number =  1490   best_so_far =  [4.26461426 7.60578024]   new_best = 76.16718\n",
      "iteration Number =  1492   best_so_far =  [4.25514549 7.51116354]   new_best = 74.81227\n",
      "iteration Number =  1493   best_so_far =  [4.28715518 7.47776866]   new_best = 74.52363\n",
      "iteration Number =  1496   best_so_far =  [4.37003745 7.3942314 ]   new_best = 73.85331\n",
      "iteration Number =  1500   best_so_far =  [4.35673392 7.35243613]   new_best = 73.05519\n",
      "iteration Number =  1502   best_so_far =  [4.37944448 7.32468496]   new_best = 72.86720\n",
      "iteration Number =  1503   best_so_far =  [4.35824623 7.21635955]   new_best = 71.24044\n",
      "iteration Number =  1505   best_so_far =  [4.35460514 7.18062068]   new_best = 70.72840\n",
      "iteration Number =  1508   best_so_far =  [4.36250614 7.11950509]   new_best = 69.89614\n",
      "iteration Number =  1512   best_so_far =  [4.32798802 7.09845422]   new_best = 69.24780\n",
      "iteration Number =  1514   best_so_far =  [4.25347533 7.07957815]   new_best = 68.39870\n",
      "iteration Number =  1515   best_so_far =  [4.19567266 7.02045859]   new_best = 67.08325\n",
      "iteration Number =  1518   best_so_far =  [4.15783877 7.02447284]   new_best = 66.83970\n",
      "iteration Number =  1519   best_so_far =  [4.18210504 6.99031037]   new_best = 66.55204\n",
      "iteration Number =  1521   best_so_far =  [4.01397129 6.92451284]   new_best = 64.14988\n",
      "iteration Number =  1523   best_so_far =  [4.00700827 6.88764927]   new_best = 63.64901\n",
      "iteration Number =  1524   best_so_far =  [4.01097693 6.8487936 ]   new_best = 63.19189\n",
      "iteration Number =  1525   best_so_far =  [4.03438472 6.75644132]   new_best = 62.05764\n",
      "iteration Number =  1526   best_so_far =  [4.04290724 6.66973078]   new_best = 60.86135\n",
      "iteration Number =  1533   best_so_far =  [4.06252519 6.65168882]   new_best = 60.81470\n",
      "iteration Number =  1535   best_so_far =  [3.94687517 6.55387217]   new_best = 58.73037\n",
      "iteration Number =  1536   best_so_far =  [3.91644269 6.56467898]   new_best = 58.66896\n",
      "iteration Number =  1539   best_so_far =  [3.84567603 6.579874  ]   new_best = 58.38820\n",
      "iteration Number =  1541   best_so_far =  [3.82034325 6.52220884]   new_best = 57.52271\n",
      "iteration Number =  1542   best_so_far =  [3.78540006 6.47933989]   new_best = 56.66519\n",
      "iteration Number =  1545   best_so_far =  [3.79789362 6.39574273]   new_best = 55.56914\n",
      "iteration Number =  1547   best_so_far =  [3.73797623 6.40399164]   new_best = 55.13689\n",
      "iteration Number =  1550   best_so_far =  [3.75379792 6.36585909]   new_best = 54.74012\n",
      "iteration Number =  1552   best_so_far =  [3.731712   6.36647976]   new_best = 54.54244\n",
      "iteration Number =  1554   best_so_far =  [3.72974639 6.33691301]   new_best = 54.13023\n",
      "iteration Number =  1557   best_so_far =  [3.69056721 6.24324665]   new_best = 52.72134\n",
      "iteration Number =  1558   best_so_far =  [3.68086779 6.18178967]   new_best = 51.96288\n",
      "iteration Number =  1559   best_so_far =  [3.61961813 6.11816857]   new_best = 50.73137\n",
      "iteration Number =  1563   best_so_far =  [3.732365   5.97390652]   new_best = 49.69729\n",
      "iteration Number =  1564   best_so_far =  [3.69505776 5.95298089]   new_best = 49.14234\n",
      "iteration Number =  1568   best_so_far =  [3.62391539 5.94018258]   new_best = 48.50684\n",
      "iteration Number =  1571   best_so_far =  [3.58887582 5.870988  ]   new_best = 47.61436\n",
      "iteration Number =  1573   best_so_far =  [3.57884838 5.80760003]   new_best = 46.83333\n",
      "iteration Number =  1574   best_so_far =  [3.57487828 5.77750197]   new_best = 46.42462\n",
      "iteration Number =  1575   best_so_far =  [3.53271654 5.78980219]   new_best = 46.35154\n",
      "iteration Number =  1578   best_so_far =  [3.5419754  5.74069464]   new_best = 45.75384\n",
      "iteration Number =  1580   best_so_far =  [3.50965131 5.73308698]   new_best = 45.45268\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "iteration Number =  1583   best_so_far =  [3.50798186 5.73228126]   new_best = 45.43080\n",
      "iteration Number =  1584   best_so_far =  [3.46118162 5.69683274]   new_best = 44.62352\n",
      "iteration Number =  1585   best_so_far =  [3.40700913 5.66112893]   new_best = 43.73838\n",
      "iteration Number =  1586   best_so_far =  [3.32911143 5.70169519]   new_best = 43.61347\n",
      "iteration Number =  1587   best_so_far =  [3.28643414 5.7177318 ]   new_best = 43.57244\n",
      "iteration Number =  1589   best_so_far =  [3.32163639 5.69543793]   new_best = 43.48793\n",
      "iteration Number =  1590   best_so_far =  [3.3983046  5.58234765]   new_best = 42.87915\n",
      "iteration Number =  1595   best_so_far =  [3.35707963 5.58337111]   new_best = 42.55403\n",
      "iteration Number =  1596   best_so_far =  [3.34041117 5.58595177]   new_best = 42.45744\n",
      "iteration Number =  1599   best_so_far =  [3.31320932 5.58305434]   new_best = 42.25586\n",
      "iteration Number =  1600   best_so_far =  [3.28071104 5.55269296]   new_best = 41.79576\n",
      "iteration Number =  1604   best_so_far =  [3.34452474 5.46245872]   new_best = 41.20227\n",
      "iteration Number =  1606   best_so_far =  [3.38567733 5.42306645]   new_best = 41.02889\n",
      "iteration Number =  1607   best_so_far =  [3.32846319 5.37503745]   new_best = 39.99926\n",
      "iteration Number =  1608   best_so_far =  [3.29261397 5.38215657]   new_best = 39.87629\n",
      "iteration Number =  1609   best_so_far =  [3.31067745 5.32391586]   new_best = 39.31535\n",
      "iteration Number =  1611   best_so_far =  [3.30677011 5.27790101]   new_best = 38.85338\n",
      "iteration Number =  1613   best_so_far =  [3.22360712 5.21189655]   new_best = 37.86941\n",
      "iteration Number =  1614   best_so_far =  [3.20210057 5.18141677]   new_best = 37.47539\n",
      "iteration Number =  1615   best_so_far =  [3.18233521 5.17653396]   new_best = 37.31781\n",
      "iteration Number =  1617   best_so_far =  [3.25770987 5.13340843]   new_best = 37.23107\n",
      "iteration Number =  1619   best_so_far =  [3.20801671 5.0964235 ]   new_best = 36.56031\n",
      "iteration Number =  1620   best_so_far =  [3.02768639 5.07387942]   new_best = 35.00636\n",
      "iteration Number =  1622   best_so_far =  [3.02516728 5.01724384]   new_best = 34.34049\n",
      "iteration Number =  1623   best_so_far =  [3.02194352 4.98305539]   new_best = 33.97649\n",
      "iteration Number =  1624   best_so_far =  [3.0064891  4.89012998]   new_best = 33.10127\n",
      "iteration Number =  1625   best_so_far =  [2.96941617 4.84681857]   new_best = 32.52219\n",
      "iteration Number =  1628   best_so_far =  [2.92939066 4.80589567]   new_best = 31.94116\n",
      "iteration Number =  1630   best_so_far =  [2.95345302 4.78407359]   new_best = 31.80614\n",
      "iteration Number =  1631   best_so_far =  [2.92002891 4.72092443]   new_best = 30.95520\n",
      "iteration Number =  1633   best_so_far =  [2.89324217 4.69793894]   new_best = 30.60109\n",
      "iteration Number =  1634   best_so_far =  [2.87887426 4.66023963]   new_best = 30.17200\n",
      "iteration Number =  1635   best_so_far =  [2.87859791 4.56183392]   new_best = 29.40219\n",
      "iteration Number =  1638   best_so_far =  [2.87948733 4.47542488]   new_best = 28.67483\n",
      "iteration Number =  1640   best_so_far =  [2.79247758 4.4395859 ]   new_best = 27.82118\n",
      "iteration Number =  1641   best_so_far =  [2.72666904 4.43964132]   new_best = 27.34417\n",
      "iteration Number =  1642   best_so_far =  [2.60386676 4.43761589]   new_best = 26.67319\n",
      "iteration Number =  1644   best_so_far =  [2.64916468 4.37940819]   new_best = 26.23795\n",
      "iteration Number =  1646   best_so_far =  [2.62788302 4.38666943]   new_best = 26.22050\n",
      "iteration Number =  1647   best_so_far =  [2.5157589  4.32249673]   new_best = 25.21081\n",
      "iteration Number =  1648   best_so_far =  [2.5261803 4.310682 ]   new_best = 25.16078\n",
      "iteration Number =  1651   best_so_far =  [2.51525081 4.25843656]   new_best = 24.74110\n",
      "iteration Number =  1655   best_so_far =  [2.43309605 4.19432431]   new_best = 23.82949\n",
      "iteration Number =  1656   best_so_far =  [2.46731734 4.10243028]   new_best = 23.23414\n",
      "iteration Number =  1660   best_so_far =  [2.43304513 4.0887683 ]   new_best = 22.87799\n",
      "iteration Number =  1661   best_so_far =  [2.46624663 4.03551583]   new_best = 22.56956\n",
      "iteration Number =  1664   best_so_far =  [2.44989325 3.95285216]   new_best = 21.82265\n",
      "iteration Number =  1668   best_so_far =  [2.4015452  3.95099678]   new_best = 21.48944\n",
      "iteration Number =  1669   best_so_far =  [2.39752853 3.91466014]   new_best = 21.24128\n",
      "iteration Number =  1670   best_so_far =  [2.3713027  3.91661437]   new_best = 21.08771\n",
      "iteration Number =  1672   best_so_far =  [2.23129561 3.8435447 ]   new_best = 20.08436\n",
      "iteration Number =  1673   best_so_far =  [2.2955531  3.80715175]   new_best = 19.97632\n",
      "iteration Number =  1674   best_so_far =  [2.21471135 3.74119405]   new_best = 19.14657\n",
      "iteration Number =  1678   best_so_far =  [2.1577355 3.7103665]   new_best = 18.65311\n",
      "iteration Number =  1679   best_so_far =  [2.10090018 3.71201579]   new_best = 18.35945\n",
      "iteration Number =  1682   best_so_far =  [2.11406243 3.6600396 ]   new_best = 18.02059\n",
      "iteration Number =  1683   best_so_far =  [2.10633036 3.61961324]   new_best = 17.71710\n",
      "iteration Number =  1684   best_so_far =  [2.02623509 3.57389832]   new_best = 17.00819\n",
      "iteration Number =  1685   best_so_far =  [2.07779197 3.50266258]   new_best = 16.87521\n",
      "iteration Number =  1686   best_so_far =  [1.98567574 3.5174687 ]   new_best = 16.51384\n",
      "iteration Number =  1688   best_so_far =  [1.96660884 3.506491  ]   new_best = 16.38153\n",
      "iteration Number =  1691   best_so_far =  [1.90341279 3.52613227]   new_best = 16.36962\n",
      "iteration Number =  1692   best_so_far =  [1.88460545 3.48455522]   new_best = 16.04651\n",
      "iteration Number =  1694   best_so_far =  [1.85066296 3.40140128]   new_best = 15.26067\n",
      "iteration Number =  1695   best_so_far =  [1.85460008 3.35680034]   new_best = 14.90931\n",
      "iteration Number =  1698   best_so_far =  [1.91799849 3.31617052]   new_best = 14.77855\n",
      "iteration Number =  1700   best_so_far =  [1.96076148 3.29950571]   new_best = 14.77728\n",
      "iteration Number =  1701   best_so_far =  [1.97870264 3.26153329]   new_best = 14.63947\n",
      "iteration Number =  1702   best_so_far =  [1.95520457 3.2389569 ]   new_best = 14.46817\n",
      "iteration Number =  1703   best_so_far =  [1.96358797 3.19116244]   new_best = 14.25152\n",
      "iteration Number =  1711   best_so_far =  [1.9674876 3.1362751]   new_best = 13.90943\n",
      "iteration Number =  1719   best_so_far =  [1.98015053 3.0758484 ]   new_best = 13.47457\n",
      "iteration Number =  1721   best_so_far =  [1.93032353 3.02670837]   new_best = 12.97408\n",
      "iteration Number =  1723   best_so_far =  [1.83717373 3.00641324]   new_best = 12.61418\n",
      "iteration Number =  1724   best_so_far =  [1.82596895 2.96067386]   new_best = 12.32513\n",
      "iteration Number =  1725   best_so_far =  [1.8127218 2.9661332]   new_best = 12.29621\n",
      "iteration Number =  1726   best_so_far =  [1.78475991 2.87035969]   new_best = 11.76191\n",
      "iteration Number =  1727   best_so_far =  [1.85653863 2.80225474]   new_best = 11.67324\n",
      "iteration Number =  1728   best_so_far =  [1.86951709 2.77907439]   new_best = 11.54801\n",
      "iteration Number =  1729   best_so_far =  [1.87918949 2.76852491]   new_best = 11.49514\n",
      "iteration Number =  1730   best_so_far =  [1.84787845 2.73557524]   new_best = 11.16732\n",
      "iteration Number =  1735   best_so_far =  [1.87323444 2.66338914]   new_best = 10.77594\n",
      "iteration Number =  1738   best_so_far =  [1.86798107 2.65799434]   new_best = 10.73513\n",
      "iteration Number =  1739   best_so_far =  [1.84674064 2.6178518 ]   new_best = 10.49999\n",
      "iteration Number =  1740   best_so_far =  [1.92140046 2.56513102]   new_best = 10.49665\n",
      "iteration Number =  1742   best_so_far =  [1.83706524 2.59343902]   new_best = 10.38170\n",
      "iteration Number =  1746   best_so_far =  [1.88666876 2.53746745]   new_best = 10.32810\n",
      "iteration Number =  1749   best_so_far =  [1.79023803 2.63314479]   new_best = 10.32651\n",
      "iteration Number =  1752   best_so_far =  [1.80883555 2.56145464]   new_best = 10.16263\n",
      "iteration Number =  1756   best_so_far =  [1.7984475  2.55705959]   new_best = 10.09970\n",
      "iteration Number =  1758   best_so_far =  [1.82216561 2.50540839]   new_best = 9.99462\n",
      "iteration Number =  1759   best_so_far =  [1.763376   2.47968861]   new_best = 9.57591\n",
      "iteration Number =  1760   best_so_far =  [1.70168819 2.48296694]   new_best = 9.27667\n",
      "iteration Number =  1761   best_so_far =  [1.67522139 2.41632575]   new_best = 8.74550\n",
      "iteration Number =  1762   best_so_far =  [1.56513315 2.41385605]   new_best = 8.50463\n",
      "iteration Number =  1769   best_so_far =  [1.61299963 2.36606587]   new_best = 8.26542\n",
      "iteration Number =  1773   best_so_far =  [1.60740565 2.29420169]   new_best = 7.92944\n",
      "iteration Number =  1774   best_so_far =  [1.59836121 2.27918215]   new_best = 7.86940\n",
      "iteration Number =  1776   best_so_far =  [1.62818985 2.24348743]   new_best = 7.82184\n",
      "iteration Number =  1782   best_so_far =  [1.61791072 2.21520046]   new_best = 7.72525\n",
      "iteration Number =  1784   best_so_far =  [1.42298177 2.25591357]   new_best = 7.31482\n",
      "iteration Number =  1785   best_so_far =  [1.42816309 2.21936522]   new_best = 7.24135\n",
      "iteration Number =  1788   best_so_far =  [1.37762523 2.20421676]   new_best = 6.96530\n",
      "iteration Number =  1794   best_so_far =  [1.34646339 2.18209159]   new_best = 6.77335\n",
      "iteration Number =  1795   best_so_far =  [1.27822712 2.1398029 ]   new_best = 6.44934\n",
      "iteration Number =  1796   best_so_far =  [1.29948701 2.09400905]   new_best = 6.21313\n",
      "iteration Number =  1799   best_so_far =  [1.27459665 2.04580423]   new_best = 5.90018\n",
      "iteration Number =  1800   best_so_far =  [1.2716092  1.95484537]   new_best = 5.53303\n",
      "iteration Number =  1802   best_so_far =  [1.29391764 1.9395534 ]   new_best = 5.52078\n",
      "iteration Number =  1803   best_so_far =  [1.31078382 1.87735974]   new_best = 5.41914\n",
      "iteration Number =  1804   best_so_far =  [1.33207544 1.83928701]   new_best = 5.35681\n",
      "iteration Number =  1805   best_so_far =  [1.25341087 1.84630551]   new_best = 5.27058\n",
      "iteration Number =  1806   best_so_far =  [1.2867875  1.79680729]   new_best = 5.09763\n",
      "iteration Number =  1808   best_so_far =  [1.30082798 1.79015097]   new_best = 5.08362\n",
      "iteration Number =  1810   best_so_far =  [1.36081667 1.70491591]   new_best = 4.79647\n",
      "iteration Number =  1811   best_so_far =  [1.31402959 1.71112106]   new_best = 4.69421\n",
      "iteration Number =  1814   best_so_far =  [1.19323437 1.69567013]   new_best = 4.50138\n",
      "iteration Number =  1815   best_so_far =  [1.30158169 1.664457  ]   new_best = 4.48205\n",
      "iteration Number =  1820   best_so_far =  [1.24054288 1.66699072]   new_best = 4.43561\n",
      "iteration Number =  1823   best_so_far =  [1.1301546  1.68116302]   new_best = 4.28444\n",
      "iteration Number =  1824   best_so_far =  [1.1100608  1.69402216]   new_best = 4.26312\n",
      "iteration Number =  1826   best_so_far =  [1.12648233 1.64294552]   new_best = 4.15072\n",
      "iteration Number =  1827   best_so_far =  [1.15148003 1.58527791]   new_best = 4.13135\n",
      "iteration Number =  1829   best_so_far =  [1.12478129 1.56919044]   new_best = 4.02429\n",
      "iteration Number =  1830   best_so_far =  [1.10182842 1.59810034]   new_best = 3.97466\n",
      "iteration Number =  1832   best_so_far =  [1.06692542 1.5779042 ]   new_best = 3.80792\n",
      "iteration Number =  1834   best_so_far =  [0.89779261 1.63240248]   new_best = 3.62584\n",
      "iteration Number =  1835   best_so_far =  [0.89770279 1.62345114]   new_best = 3.60795\n",
      "iteration Number =  1846   best_so_far =  [0.95166664 1.52326477]   new_best = 3.45533\n",
      "iteration Number =  1848   best_so_far =  [0.90049641 1.50457872]   new_best = 3.40434\n",
      "iteration Number =  1850   best_so_far =  [0.90001731 1.42719431]   new_best = 3.09747\n",
      "iteration Number =  1851   best_so_far =  [0.93693175 1.38631241]   new_best = 2.90826\n",
      "iteration Number =  1852   best_so_far =  [0.98402539 1.36884602]   new_best = 2.86809\n",
      "iteration Number =  1854   best_so_far =  [0.99558133 1.34273798]   new_best = 2.79603\n",
      "iteration Number =  1856   best_so_far =  [0.95228138 1.23846872]   new_best = 2.60012\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "iteration Number =  1858   best_so_far =  [0.89531612 1.19166698]   new_best = 2.55000\n",
      "iteration Number =  1859   best_so_far =  [0.87902332 1.16713802]   new_best = 2.50008\n",
      "iteration Number =  1867   best_so_far =  [0.92594005 1.15761344]   new_best = 2.47863\n",
      "iteration Number =  1868   best_so_far =  [1.00109169 1.13069575]   new_best = 2.45852\n",
      "iteration Number =  1875   best_so_far =  [0.90490603 1.06525794]   new_best = 2.14219\n",
      "iteration Number =  1877   best_so_far =  [0.88357399 1.0333267 ]   new_best = 2.02598\n",
      "iteration Number =  1879   best_so_far =  [0.85381162 1.00174962]   new_best = 1.92521\n",
      "iteration Number =  1881   best_so_far =  [0.83917595 0.94947936]   new_best = 1.84719\n",
      "iteration Number =  1882   best_so_far =  [0.75739943 0.93892653]   new_best = 1.62841\n",
      "iteration Number =  1883   best_so_far =  [0.69488601 0.94818308]   new_best = 1.43978\n",
      "iteration Number =  1886   best_so_far =  [0.65024325 0.92872908]   new_best = 1.36763\n",
      "iteration Number =  1889   best_so_far =  [0.62279431 0.91431026]   new_best = 1.36064\n",
      "iteration Number =  1894   best_so_far =  [0.55219756 0.78142743]   new_best = 1.22675\n",
      "iteration Number =  1895   best_so_far =  [0.54785708 0.71115146]   new_best = 1.00102\n",
      "iteration Number =  1898   best_so_far =  [0.55085898 0.69007697]   new_best = 0.94670\n",
      "iteration Number =  1899   best_so_far =  [0.61845858 0.69714632]   new_best = 0.92309\n",
      "iteration Number =  1900   best_so_far =  [0.6174915  0.69164046]   new_best = 0.91052\n",
      "iteration Number =  1905   best_so_far =  [0.61928556 0.64812372]   new_best = 0.84697\n",
      "iteration Number =  1914   best_so_far =  [0.6325355  0.63276616]   new_best = 0.84026\n",
      "iteration Number =  1963   best_so_far =  [0.63308127 0.63014735]   new_best = 0.84007\n",
      "iteration Number =  2007   best_so_far =  [0.63818636 0.45586215]   new_best = 0.79650\n",
      "iteration Number =  2009   best_so_far =  [0.60892088 0.36885106]   new_best = 0.58206\n",
      "iteration Number =  2010   best_so_far =  [0.57558414 0.35296276]   new_best = 0.57723\n",
      "iteration Number =  2013   best_so_far =  [0.60494014 0.28330658]   new_best = 0.54791\n",
      "iteration Number =  2017   best_so_far =  [0.62036909 0.30530046]   new_best = 0.52746\n",
      "iteration Number =  2043   best_so_far =  [0.63593142 0.31690625]   new_best = 0.52594\n",
      "iteration Number =  2059   best_so_far =  [0.6318714  0.30906148]   new_best = 0.52584\n",
      "iteration Number =  2100   best_so_far =  [0.62716803 0.32034894]   new_best = 0.52543\n",
      "iteration Number =  2299   best_so_far =  [0.63175703 0.31295789]   new_best = 0.52525\n",
      "iteration Number =  2342   best_so_far =  [0.62867683 0.31325009]   new_best = 0.52503\n",
      "iteration Number =  2545   best_so_far =  [0.62760036 0.31500205]   new_best = 0.52496\n",
      "iteration Number =  2690   best_so_far =  [0.43777025 0.24988015]   new_best = 0.49304\n",
      "iteration Number =  2691   best_so_far =  [0.4255732  0.29543291]   new_best = 0.40954\n",
      "iteration Number =  2701   best_so_far =  [0.3800211  0.35831126]   new_best = 0.31995\n",
      "iteration Number =  2705   best_so_far =  [0.38401675 0.29012221]   new_best = 0.30528\n",
      "iteration Number =  2707   best_so_far =  [0.35128187 0.33909068]   new_best = 0.24463\n",
      "iteration Number =  2716   best_so_far =  [0.31098046 0.31921056]   new_best = 0.21088\n",
      "iteration Number =  2965   best_so_far =  [0.3128001  0.31066541]   new_best = 0.21076\n",
      "iteration Number =  3259   best_so_far =  [0.31575891 0.31922291]   new_best = 0.21057\n",
      "iteration Number =  3336   best_so_far =  [0.31412496 0.31357077]   new_best = 0.21036\n",
      "iteration Number =  3927   best_so_far =  [0.31670618 0.31574409]   new_best = 0.21033\n",
      "iteration Number =  5923   best_so_far =  [0.31465741 0.31394472]   new_best = 0.21032\n",
      "iteration Number =  6846   best_so_far =  [0.31662115 0.31558098]   new_best = 0.21032\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEGCAYAAACUzrmNAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAot0lEQVR4nO3de5icZX3/8feHHCAokACRQgIGMcUrKAiuFotthaAC2oYqVuwCQfg1GjzQ4k8LPaG2V39qKxTFrEbABElBBJSICLILorUKbFQOuwisCCYbMBE2gJxCwvf3x3OPGZbdmWdmZ2bn8Hld13PN89zPPfPck4F8c58VEZiZmZWy3WQXwMzMmp+DhZmZleVgYWZmZTlYmJlZWQ4WZmZW1tTJLkA97L777jFv3rzJLoaZWUtZs2bNbyNi9lj32jJYzJs3j/7+/skuhplZS5H04Hj33AxlZmZlOViYmVlZDhZmZlZW3YKFpIskbZB016j0D0v6haQBSZ8tSj9L0pCkeyS9rSj9qJQ2JOnMepXXzMzGV88O7hXA+cDFhQRJhwOLgIMi4llJL0vpC4DjgQOAvYBeSX+Y3vZF4C3AOuA2SasjYrCO5TYzs1HqVrOIiB8Aj45KXgp8OiKeTXk2pPRFwGUR8WxE/AoYAt6QjqGIuD8iNgOXpbz1sWoVzJsH222Xva5aVbdHmZm1kkb3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pjhz+ov1WYCIeF7ScxFReF6hXAIGIuKN4zyz8D22kv//00uBf06ffXUKVicDs4HXpesHyGpVxbbwwibpwv1yZbQO4j4L6xTvTv0P+5EtLnfPGHl+CHRD1o4P/DYiHk9/0X8TOIesqamwlPX3gA8X3izptRWU5x5gtqQ3pvdOk3RAmfc8AexU4v73yZrZPkgWOCBbentDChSHAy8f430PktWQtk99MwsnUEZrUw4W1il+Tba66HeBD4yuDSSfAF4n6Q7g02xb9hmypqcT2NYEBWnP59QhPgh8IG9hImIz2dLYn5F0O9lKwH9c5m03kf2lPlYHN6mZ7QqyVUhvTsmrUhnvBE4iW5V19PvWApeTrdZ6OfCzCZTR2pRXnbW2J2kFWQfuFZNdFrNW5ZqFmZmV5ZqFmZmV5ZqFmZmV5WBhZmZlOViYmVlZDhZmZlaWg4WZmZX1/wHXGE0RHmftrAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "from numpy import asarray, exp\n",
    "from numpy.random import randn, rand, seed\n",
    "from matplotlib import pyplot\n",
    "import math\n",
    "\n",
    "\n",
    "# define objective function\n",
    "def objective(step):\n",
    "    x1 = step[0]\n",
    "    x2 = step[1]\n",
    "    obj = 0.2 + x1**2 + x2**2 - 0.1*math.cos(6.0*3.1415*x1) - 0.1*math.cos(6.0*3.1415*x2)\n",
    "    return obj\n",
    "\n",
    "\n",
    "# Define simulated annealing algorithm\n",
    "def sa(objective, area, iterations, step_size, temperature):\n",
    "    # create initial point\n",
    "    start_point = area[:, 0] + rand( len( area ) ) * ( area[:, 1] - area[:, 0] )\n",
    "    \n",
    "    # evaluate initial point\n",
    "    start_point_eval = objective(start_point)\n",
    "    \n",
    "    # Assign previous and new solution to previous and new_point_eval variable \n",
    "    mia_start_point, mia_start_eval = start_point, start_point_eval\n",
    "    outputs = []\n",
    "    \n",
    "    for i in range(iterations):\n",
    "        \n",
    "        # First step by mia\n",
    "        mia_step = mia_start_point + randn( len( area ) ) * step_size  \n",
    "        mia_step_eval = objective(mia_step)\n",
    "        \n",
    "        if mia_step_eval < start_point_eval:\n",
    "            start_point, start_point_eval = mia_step, mia_step_eval\n",
    "            outputs.append(start_point_eval)  #Append the new values into the output list\n",
    "            #print('Acceptance Criteria = %.5f' % mac,\" \",'iteration Number = ',i,\" \", 'best_so_far = ',start_point,\" \" ,'new_best = %.5f' % start_point_eval)\n",
    "            print('iteration Number = ',i,\" \", 'best_so_far = ',start_point,\" \" ,'new_best = %.5f' % start_point_eval)\n",
    "          \n",
    "        difference = mia_start_eval - mia_step_eval\n",
    "        t = temperature / float(i + 1)\n",
    "        \n",
    "        # calculate Metropolis Acceptance Criterion / Acceptance Probability\n",
    "        mac = exp(difference / t)\n",
    "        \n",
    "        # check whether the new point is acceptable \n",
    "        if difference > 0 : #or rand() < mac:\n",
    "            mia_start_point, mia_start_eval = mia_step, mia_step_eval\n",
    "            \n",
    "    return [start_point, start_point_eval, outputs]\n",
    "\n",
    "seed(666)\n",
    "\n",
    "# define the area of the search space\n",
    "# area = asarray([[-6.0, 6.0]])\n",
    "area = asarray([[-50.0, 50.0],[-50.0, 50.0]])\n",
    "\n",
    "# initial temperature\n",
    "temperature = 12\n",
    "\n",
    "# define the total no. of iterations\n",
    "iterations = 12000\n",
    "\n",
    "# define maximum step_size\n",
    "step_size = 0.05\n",
    "\n",
    "# perform the simulated annealing search\n",
    "start_point, output, outputs = sa(objective, area, iterations, step_size, temperature)\n",
    "\n",
    "#plotting the values\n",
    "pyplot.plot(outputs, 'ro-')\n",
    "pyplot.xlabel('Improvement Value')\n",
    "pyplot.ylabel('Evaluation of Objective Function')\n",
    "pyplot.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Ejercicios\n",
    "\n",
    "1) Crea un código para generar 1200 muestras aleatorias (mismo número de iteraciones que el código anterior) y compara el mejor valor obtenido de forma totalmente aleatoria con el mejor valor obtenido mediante *simulated annealing*\n",
    "\n",
    "2) Qué ocurriría si la temperatura se mantuviera inalterada durante todas las iteraciones?"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}