Last active
June 6, 2017 11:04
-
-
Save gustavolopess/8a00a9d86c93824d154275548b8fd822 to your computer and use it in GitHub Desktop.
Search method of bees algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 17, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"import numpy as np" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 18, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"def func(bee):\n", | |
" return np.sum(np.array(bee.vector)**2)\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 19, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"class Bee(object):\n", | |
" def __init__(self, vector, fitness=None):\n", | |
" self.vector = vector\n", | |
" self.fitness = fitness if fitness else func(self)\n", | |
"\n", | |
" def __lt__(self, other):\n", | |
" return self.fitness < other.fitness\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 20, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"def create_neigh_bee(parent, patch_size, lower_bound, upper_bound):\n", | |
" def rand():\n", | |
" r = np.random.uniform()\n", | |
" if r < 0.5: return -r\n", | |
" return r\n", | |
"\n", | |
" vector = np.array([v + rand()*patch_size for v in parent.vector])\n", | |
" vector[vector > upper_bound] = upper_bound\n", | |
" vector[vector > lower_bound] = lower_bound\n", | |
" return Bee(vector=vector)\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 21, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"def search_neigh(parent, neigh_size, patch_size, lower_bound, upper_bound):\n", | |
" neigh = []\n", | |
" for i in range(neigh_size): neigh.append(create_neigh_bee(parent, patch_size, lower_bound, upper_bound))\n", | |
" return sorted(neigh)[0]\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 22, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"def search(lower_bound, upper_bound, max_gens, problem_size, patch_size, bees_num,\n", | |
" sites_num, elite_sites_num, elite_bees_num, other_bees_num):\n", | |
" best = None\n", | |
" pop = []\n", | |
" for i in range(bees_num): pop.append(Bee(vector=np.random.uniform(lower_bound, upper_bound, problem_size)))\n", | |
" for g in range(max_gens):\n", | |
" pop = sorted(pop)\n", | |
" best = pop[0] if not best or pop[0].fitness < best.fitness else best\n", | |
" next_gen = []\n", | |
" for idx, parent in enumerate(pop[:sites_num]):\n", | |
" neigh_size = elite_bees_num if idx < elite_sites_num else other_bees_num\n", | |
" next_gen.append(search_neigh(parent, neigh_size, patch_size, lower_bound, upper_bound))\n", | |
" scouts = []\n", | |
" for s in range(bees_num-sites_num):\n", | |
" scouts.append(Bee(vector=np.random.uniform(lower_bound, upper_bound, problem_size)))\n", | |
" pop = next_gen + scouts\n", | |
" patch_size *= 0.95\n", | |
" print('it=#{}, patch_size=#{}, worse=#{}, f=#{}'.format(g, patch_size, pop[-1].fitness, best.fitness))\n", | |
" return best\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 23, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"it=#0, patch_size=#2.8499999999999996, worse=#26.750629689108337, f=#1.5666767179805396\n", | |
"it=#1, patch_size=#2.7074999999999996, worse=#20.00020291311069, f=#1.5666767179805396\n", | |
"it=#2, patch_size=#2.5721249999999993, worse=#39.491664440580905, f=#1.3943539784622812\n", | |
"it=#3, patch_size=#2.443518749999999, worse=#24.479416517687728, f=#1.3943539784622812\n", | |
"it=#4, patch_size=#2.321342812499999, worse=#9.560467325146227, f=#1.3943539784622812\n", | |
"it=#5, patch_size=#2.2052756718749986, worse=#9.775454112057945, f=#1.3943539784622812\n", | |
"it=#6, patch_size=#2.0950118882812485, worse=#4.477327151788893, f=#1.3943539784622812\n", | |
"it=#7, patch_size=#1.990261293867186, worse=#48.39218267764794, f=#1.3943539784622812\n", | |
"it=#8, patch_size=#1.8907482291738267, worse=#34.50877672171902, f=#1.3943539784622812\n", | |
"it=#9, patch_size=#1.7962108177151352, worse=#22.97086286252862, f=#1.3943539784622812\n", | |
"it=#10, patch_size=#1.7064002768293784, worse=#21.11378069707854, f=#1.3943539784622812\n", | |
"it=#11, patch_size=#1.6210802629879095, worse=#14.236007029766263, f=#1.3943539784622812\n", | |
"it=#12, patch_size=#1.540026249838514, worse=#17.36073698359169, f=#1.0585812399326353\n", | |
"it=#13, patch_size=#1.4630249373465882, worse=#46.45981866482148, f=#1.0585812399326353\n", | |
"it=#14, patch_size=#1.3898736904792588, worse=#29.358800508928027, f=#1.0585812399326353\n", | |
"it=#15, patch_size=#1.3203800059552957, worse=#7.638414519141977, f=#1.0585812399326353\n", | |
"it=#16, patch_size=#1.254361005657531, worse=#5.386090976371288, f=#1.0585812399326353\n", | |
"it=#17, patch_size=#1.1916429553746544, worse=#28.77063246899615, f=#0.5141416419026072\n", | |
"it=#18, patch_size=#1.1320608076059215, worse=#21.19057643177394, f=#0.5141416419026072\n", | |
"it=#19, patch_size=#1.0754577672256254, worse=#13.366696710131421, f=#0.5141416419026072\n", | |
"it=#20, patch_size=#1.021684878864344, worse=#32.62170259592389, f=#0.32809244362148\n", | |
"it=#21, patch_size=#0.9706006349211268, worse=#38.63952184257181, f=#0.32809244362148\n", | |
"it=#22, patch_size=#0.9220706031750704, worse=#4.395834132600823, f=#0.32809244362148\n", | |
"it=#23, patch_size=#0.8759670730163168, worse=#29.124083649008156, f=#0.32809244362148\n", | |
"it=#24, patch_size=#0.832168719365501, worse=#16.585060674259438, f=#0.32809244362148\n", | |
"it=#25, patch_size=#0.7905602833972258, worse=#13.538714288589455, f=#0.32809244362148\n", | |
"it=#26, patch_size=#0.7510322692273645, worse=#40.08689395943435, f=#0.32809244362148\n", | |
"it=#27, patch_size=#0.7134806557659963, worse=#25.274255719637132, f=#0.32809244362148\n", | |
"it=#28, patch_size=#0.6778066229776964, worse=#25.924115953340966, f=#0.32809244362148\n", | |
"it=#29, patch_size=#0.6439162918288116, worse=#47.87025852546203, f=#0.32809244362148\n", | |
"it=#30, patch_size=#0.611720477237371, worse=#6.1729896352771405, f=#0.32809244362148\n", | |
"it=#31, patch_size=#0.5811344533755024, worse=#39.64895909619494, f=#0.32809244362148\n", | |
"it=#32, patch_size=#0.5520777307067273, worse=#66.21399876887811, f=#0.32809244362148\n", | |
"it=#33, patch_size=#0.5244738441713909, worse=#40.24214492097305, f=#0.32809244362148\n", | |
"it=#34, patch_size=#0.4982501519628213, worse=#23.445629654695935, f=#0.32809244362148\n", | |
"it=#35, patch_size=#0.47333764436468023, worse=#24.845343675294448, f=#0.32809244362148\n", | |
"it=#36, patch_size=#0.4496707621464462, worse=#9.146240452496315, f=#0.32809244362148\n", | |
"it=#37, patch_size=#0.42718722403912385, worse=#20.12604215919015, f=#0.32809244362148\n", | |
"it=#38, patch_size=#0.40582786283716765, worse=#7.59196675843818, f=#0.32809244362148\n", | |
"it=#39, patch_size=#0.38553646969530925, worse=#11.983787919690567, f=#0.32809244362148\n", | |
"it=#40, patch_size=#0.36625964621054374, worse=#34.544520970209064, f=#0.32809244362148\n", | |
"it=#41, patch_size=#0.34794666390001655, worse=#26.59614190780031, f=#0.32809244362148\n", | |
"it=#42, patch_size=#0.3305493307050157, worse=#10.811547912843285, f=#0.32809244362148\n", | |
"it=#43, patch_size=#0.3140218641697649, worse=#28.871233596235356, f=#0.32809244362148\n", | |
"it=#44, patch_size=#0.2983207709612766, worse=#29.945560994791993, f=#0.32809244362148\n", | |
"it=#45, patch_size=#0.2834047324132128, worse=#29.904542746752828, f=#0.32809244362148\n", | |
"it=#46, patch_size=#0.26923449579255215, worse=#44.22954943535682, f=#0.32809244362148\n", | |
"it=#47, patch_size=#0.25577277100292456, worse=#27.07861445274343, f=#0.32809244362148\n", | |
"it=#48, patch_size=#0.2429841324527783, worse=#16.456859971471005, f=#0.32809244362148\n", | |
"it=#49, patch_size=#0.23083492583013937, worse=#4.0352516153105835, f=#0.32809244362148\n", | |
"it=#50, patch_size=#0.2192931795386324, worse=#18.401863088759292, f=#0.32809244362148\n", | |
"it=#51, patch_size=#0.20832852056170076, worse=#33.80961214454679, f=#0.32809244362148\n", | |
"it=#52, patch_size=#0.19791209453361572, worse=#5.8311152905323524, f=#0.32809244362148\n", | |
"it=#53, patch_size=#0.18801648980693492, worse=#27.636474913157052, f=#0.32809244362148\n", | |
"it=#54, patch_size=#0.17861566531658815, worse=#27.23179299785818, f=#0.32809244362148\n", | |
"it=#55, patch_size=#0.16968488205075874, worse=#30.48712898490512, f=#0.32809244362148\n", | |
"it=#56, patch_size=#0.1612006379482208, worse=#15.369174895021686, f=#0.32809244362148\n", | |
"it=#57, patch_size=#0.15314060605080973, worse=#21.337056639512245, f=#0.32809244362148\n", | |
"it=#58, patch_size=#0.14548357574826923, worse=#10.42703586924608, f=#0.32809244362148\n", | |
"it=#59, patch_size=#0.13820939696085577, worse=#30.638164715194737, f=#0.32809244362148\n", | |
"it=#60, patch_size=#0.13129892711281296, worse=#35.26794217117187, f=#0.32809244362148\n", | |
"it=#61, patch_size=#0.1247339807571723, worse=#10.3278408375316, f=#0.32809244362148\n", | |
"it=#62, patch_size=#0.11849728171931369, worse=#7.678199538028537, f=#0.32809244362148\n", | |
"it=#63, patch_size=#0.112572417633348, worse=#6.097013478311325, f=#0.32809244362148\n", | |
"it=#64, patch_size=#0.10694379675168059, worse=#25.34885356001679, f=#0.32809244362148\n", | |
"it=#65, patch_size=#0.10159660691409655, worse=#21.958761352467405, f=#0.32809244362148\n", | |
"it=#66, patch_size=#0.09651677656839172, worse=#21.671269241733864, f=#0.32809244362148\n", | |
"it=#67, patch_size=#0.09169093773997213, worse=#32.91089380963004, f=#0.32809244362148\n", | |
"it=#68, patch_size=#0.08710639085297352, worse=#65.83384516035912, f=#0.32809244362148\n", | |
"it=#69, patch_size=#0.08275107131032483, worse=#24.68769971533814, f=#0.32809244362148\n", | |
"it=#70, patch_size=#0.07861351774480858, worse=#14.414537632715543, f=#0.32809244362148\n", | |
"it=#71, patch_size=#0.07468284185756816, worse=#3.0681799276732376, f=#0.32809244362148\n", | |
"it=#72, patch_size=#0.07094869976468975, worse=#16.09630691649512, f=#0.32809244362148\n", | |
"it=#73, patch_size=#0.06740126477645525, worse=#25.59628803934468, f=#0.32809244362148\n", | |
"it=#74, patch_size=#0.06403120153763249, worse=#28.238401925978618, f=#0.32809244362148\n", | |
"it=#75, patch_size=#0.060829641460750865, worse=#29.451064015852296, f=#0.32809244362148\n", | |
"it=#76, patch_size=#0.05778815938771332, worse=#24.798966244520525, f=#0.32809244362148\n", | |
"it=#77, patch_size=#0.05489875141832765, worse=#5.581149728566196, f=#0.32809244362148\n", | |
"it=#78, patch_size=#0.052153813847411266, worse=#14.540514826797377, f=#0.32809244362148\n", | |
"it=#79, patch_size=#0.0495461231550407, worse=#9.142982688861398, f=#0.32809244362148\n", | |
"it=#80, patch_size=#0.04706881699728866, worse=#45.76538341850679, f=#0.32809244362148\n", | |
"it=#81, patch_size=#0.04471537614742423, worse=#17.31941537628285, f=#0.32809244362148\n", | |
"it=#82, patch_size=#0.042479607340053016, worse=#45.606389020568486, f=#0.32809244362148\n", | |
"it=#83, patch_size=#0.04035562697305036, worse=#19.19624841530039, f=#0.32809244362148\n", | |
"it=#84, patch_size=#0.03833784562439784, worse=#55.08947495410406, f=#0.32809244362148\n", | |
"it=#85, patch_size=#0.03642095334317795, worse=#37.215556870430724, f=#0.32809244362148\n", | |
"it=#86, patch_size=#0.034599905676019053, worse=#46.46117357582925, f=#0.32809244362148\n", | |
"it=#87, patch_size=#0.0328699103922181, worse=#7.344327079718471, f=#0.32809244362148\n", | |
"it=#88, patch_size=#0.031226414872607192, worse=#17.77412303436012, f=#0.32809244362148\n", | |
"it=#89, patch_size=#0.029665094128976832, worse=#8.54051914122256, f=#0.32809244362148\n", | |
"it=#90, patch_size=#0.02818183942252799, worse=#39.7142930692752, f=#0.32809244362148\n", | |
"it=#91, patch_size=#0.02677274745140159, worse=#11.283571306735043, f=#0.32809244362148\n", | |
"it=#92, patch_size=#0.02543411007883151, worse=#14.276255582025813, f=#0.32809244362148\n", | |
"it=#93, patch_size=#0.024162404574889933, worse=#44.38545261227951, f=#0.32809244362148\n", | |
"it=#94, patch_size=#0.022954284346145434, worse=#40.31139392901869, f=#0.32809244362148\n", | |
"it=#95, patch_size=#0.02180657012883816, worse=#47.52033940734326, f=#0.32809244362148\n", | |
"it=#96, patch_size=#0.020716241622396252, worse=#24.53617334150349, f=#0.32809244362148\n", | |
"it=#97, patch_size=#0.01968042954127644, worse=#15.444461594961734, f=#0.32809244362148\n", | |
"it=#98, patch_size=#0.018696408064212616, worse=#22.65702337841009, f=#0.32809244362148\n", | |
"it=#99, patch_size=#0.017761587661001985, worse=#32.447714796277566, f=#0.32809244362148\n", | |
"it=#100, patch_size=#0.016873508277951886, worse=#27.044135006353436, f=#0.32809244362148\n", | |
"it=#101, patch_size=#0.01602983286405429, worse=#33.32641133266699, f=#0.32809244362148\n", | |
"it=#102, patch_size=#0.015228341220851576, worse=#29.61910523846163, f=#0.32809244362148\n", | |
"it=#103, patch_size=#0.014466924159808997, worse=#1.544250400576744, f=#0.32809244362148\n", | |
"it=#104, patch_size=#0.013743577951818546, worse=#28.280653597830913, f=#0.32809244362148\n", | |
"it=#105, patch_size=#0.013056399054227617, worse=#17.454705565829713, f=#0.32809244362148\n", | |
"it=#106, patch_size=#0.012403579101516236, worse=#22.810533073372987, f=#0.32809244362148\n", | |
"it=#107, patch_size=#0.011783400146440423, worse=#30.99648146686898, f=#0.32809244362148\n", | |
"it=#108, patch_size=#0.011194230139118402, worse=#31.146638746031023, f=#0.32809244362148\n", | |
"it=#109, patch_size=#0.010634518632162481, worse=#27.288747787933183, f=#0.32809244362148\n", | |
"it=#110, patch_size=#0.010102792700554357, worse=#18.18883528897487, f=#0.32809244362148\n", | |
"it=#111, patch_size=#0.009597653065526639, worse=#15.410145431036934, f=#0.32809244362148\n", | |
"it=#112, patch_size=#0.009117770412250308, worse=#10.851479810729794, f=#0.32809244362148\n", | |
"it=#113, patch_size=#0.008661881891637791, worse=#31.297491325049315, f=#0.32809244362148\n", | |
"it=#114, patch_size=#0.008228787797055902, worse=#14.981862143933972, f=#0.32809244362148\n", | |
"it=#115, patch_size=#0.007817348407203106, worse=#17.67486761621797, f=#0.32809244362148\n", | |
"it=#116, patch_size=#0.00742648098684295, worse=#41.24982764078666, f=#0.32809244362148\n", | |
"it=#117, patch_size=#0.007055156937500803, worse=#20.972429467374607, f=#0.32809244362148\n", | |
"it=#118, patch_size=#0.0067023990906257625, worse=#17.10410049610766, f=#0.32809244362148\n", | |
"it=#119, patch_size=#0.006367279136094474, worse=#23.911124838227828, f=#0.32809244362148\n", | |
"it=#120, patch_size=#0.00604891517928975, worse=#4.036173575479476, f=#0.32809244362148\n" | |
] | |
}, | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"it=#121, patch_size=#0.005746469420325262, worse=#24.072607878079754, f=#0.32809244362148\n", | |
"it=#122, patch_size=#0.005459145949308999, worse=#35.230483784052346, f=#0.32809244362148\n", | |
"it=#123, patch_size=#0.005186188651843548, worse=#7.586847076459974, f=#0.32809244362148\n", | |
"it=#124, patch_size=#0.004926879219251371, worse=#24.968316856763657, f=#0.32809244362148\n", | |
"it=#125, patch_size=#0.004680535258288802, worse=#25.373780112826193, f=#0.32809244362148\n", | |
"it=#126, patch_size=#0.004446508495374362, worse=#21.74794714992635, f=#0.32809244362148\n", | |
"it=#127, patch_size=#0.004224183070605644, worse=#17.652349720536318, f=#0.32809244362148\n", | |
"it=#128, patch_size=#0.004012973917075361, worse=#20.39605297538923, f=#0.32809244362148\n", | |
"it=#129, patch_size=#0.003812325221221593, worse=#28.073778838248572, f=#0.32809244362148\n", | |
"it=#130, patch_size=#0.0036217089601605136, worse=#2.2613545506523347, f=#0.32809244362148\n", | |
"it=#131, patch_size=#0.003440623512152488, worse=#4.521722069608964, f=#0.32809244362148\n", | |
"it=#132, patch_size=#0.0032685923365448634, worse=#9.151330467843087, f=#0.32809244362148\n", | |
"it=#133, patch_size=#0.00310516271971762, worse=#17.617534885576, f=#0.32809244362148\n", | |
"it=#134, patch_size=#0.002949904583731739, worse=#39.62548701099788, f=#0.32809244362148\n", | |
"it=#135, patch_size=#0.002802409354545152, worse=#28.24861753300317, f=#0.32809244362148\n", | |
"it=#136, patch_size=#0.0026622888868178944, worse=#28.632615830180335, f=#0.32809244362148\n", | |
"it=#137, patch_size=#0.0025291744424769994, worse=#33.36884364176223, f=#0.32809244362148\n", | |
"it=#138, patch_size=#0.0024027157203531492, worse=#30.99247049296497, f=#0.32809244362148\n", | |
"it=#139, patch_size=#0.0022825799343354916, worse=#8.596761227530537, f=#0.32809244362148\n", | |
"it=#140, patch_size=#0.0021684509376187168, worse=#33.801460250289026, f=#0.32809244362148\n", | |
"it=#141, patch_size=#0.002060028390737781, worse=#23.22547881108672, f=#0.32809244362148\n", | |
"it=#142, patch_size=#0.0019570269712008916, worse=#11.677675454961467, f=#0.32809244362148\n", | |
"it=#143, patch_size=#0.0018591756226408469, worse=#13.984727574903516, f=#0.32809244362148\n", | |
"it=#144, patch_size=#0.0017662168415088044, worse=#40.22079889756346, f=#0.32809244362148\n", | |
"it=#145, patch_size=#0.0016779059994333641, worse=#18.05348806404102, f=#0.32809244362148\n", | |
"it=#146, patch_size=#0.001594010699461696, worse=#39.32425000676758, f=#0.32809244362148\n", | |
"it=#147, patch_size=#0.001514310164488611, worse=#10.75217072340675, f=#0.32809244362148\n", | |
"it=#148, patch_size=#0.0014385946562641802, worse=#32.62185679837156, f=#0.32809244362148\n", | |
"it=#149, patch_size=#0.0013666649234509711, worse=#40.442601679536295, f=#0.32809244362148\n", | |
"it=#150, patch_size=#0.0012983316772784226, worse=#42.8011842881739, f=#0.32809244362148\n", | |
"it=#151, patch_size=#0.0012334150934145015, worse=#24.200012715244817, f=#0.32809244362148\n", | |
"it=#152, patch_size=#0.0011717443387437763, worse=#15.626358335786762, f=#0.32809244362148\n", | |
"it=#153, patch_size=#0.0011131571218065874, worse=#46.781870418185314, f=#0.32809244362148\n", | |
"it=#154, patch_size=#0.001057499265716258, worse=#25.067680291430058, f=#0.32809244362148\n", | |
"it=#155, patch_size=#0.001004624302430445, worse=#16.30121602889569, f=#0.32809244362148\n", | |
"it=#156, patch_size=#0.0009543930873089227, worse=#14.274652616436263, f=#0.32809244362148\n", | |
"it=#157, patch_size=#0.0009066734329434765, worse=#22.576921281507047, f=#0.32809244362148\n", | |
"it=#158, patch_size=#0.0008613397612963026, worse=#2.8233688283495115, f=#0.32809244362148\n", | |
"it=#159, patch_size=#0.0008182727732314874, worse=#5.903445064950047, f=#0.32809244362148\n", | |
"it=#160, patch_size=#0.000777359134569913, worse=#22.975226107408538, f=#0.32809244362148\n", | |
"it=#161, patch_size=#0.0007384911778414172, worse=#20.53710946815039, f=#0.32809244362148\n", | |
"it=#162, patch_size=#0.0007015666189493464, worse=#25.592278635870123, f=#0.32809244362148\n", | |
"it=#163, patch_size=#0.000666488288001879, worse=#10.60485445915208, f=#0.32809244362148\n", | |
"it=#164, patch_size=#0.000633163873601785, worse=#6.957291071272656, f=#0.32809244362148\n", | |
"it=#165, patch_size=#0.0006015056799216958, worse=#31.358896442055574, f=#0.32809244362148\n", | |
"it=#166, patch_size=#0.0005714303959256109, worse=#27.15098254586892, f=#0.32809244362148\n", | |
"it=#167, patch_size=#0.0005428588761293303, worse=#33.161995352510644, f=#0.32809244362148\n", | |
"it=#168, patch_size=#0.0005157159323228638, worse=#6.989022013511038, f=#0.32809244362148\n", | |
"it=#169, patch_size=#0.0004899301357067206, worse=#44.8703765280658, f=#0.15076141817696365\n", | |
"it=#170, patch_size=#0.0004654336289213845, worse=#18.869914447604387, f=#0.15076141817696365\n", | |
"it=#171, patch_size=#0.00044216194747531527, worse=#20.747459787203596, f=#0.15076141817696365\n", | |
"it=#172, patch_size=#0.00042005385010154947, worse=#35.278253017020276, f=#0.12238320326037948\n", | |
"it=#173, patch_size=#0.000399051157596472, worse=#26.751101729404716, f=#0.12238320326037948\n", | |
"it=#174, patch_size=#0.0003790985997166484, worse=#37.73560321163936, f=#0.12238320326037948\n", | |
"it=#175, patch_size=#0.00036014366973081594, worse=#33.27868397294514, f=#0.12238320326037948\n", | |
"it=#176, patch_size=#0.00034213648624427514, worse=#0.3258491147413472, f=#0.12238320326037948\n", | |
"it=#177, patch_size=#0.00032502966193206136, worse=#24.802715594569175, f=#0.12238320326037948\n", | |
"it=#178, patch_size=#0.0003087781788354583, worse=#11.750503401927388, f=#0.12238320326037948\n", | |
"it=#179, patch_size=#0.00029333926989368535, worse=#19.44590974005358, f=#0.12238320326037948\n", | |
"it=#180, patch_size=#0.00027867230639900105, worse=#5.43279122366629, f=#0.12238320326037948\n", | |
"it=#181, patch_size=#0.000264738691079051, worse=#41.18662853541894, f=#0.12238320326037948\n", | |
"it=#182, patch_size=#0.00025150175652509843, worse=#39.404938872095165, f=#0.12238320326037948\n", | |
"it=#183, patch_size=#0.00023892666869884349, worse=#24.015916092353688, f=#0.12238320326037948\n", | |
"it=#184, patch_size=#0.0002269803352639013, worse=#12.797589437489632, f=#0.12238320326037948\n", | |
"it=#185, patch_size=#0.00021563131850070623, worse=#47.00186210153813, f=#0.12238320326037948\n", | |
"it=#186, patch_size=#0.00020484975257567092, worse=#25.18846678977448, f=#0.12238320326037948\n", | |
"it=#187, patch_size=#0.00019460726494688736, worse=#26.159247086503935, f=#0.12238320326037948\n", | |
"it=#188, patch_size=#0.000184876901699543, worse=#21.035347540312962, f=#0.12238320326037948\n", | |
"it=#189, patch_size=#0.00017563305661456584, worse=#16.024667708797434, f=#0.12238320326037948\n", | |
"it=#190, patch_size=#0.00016685140378383753, worse=#8.547841492360911, f=#0.12238320326037948\n", | |
"it=#191, patch_size=#0.00015850883359464564, worse=#22.5951324294209, f=#0.12238320326037948\n", | |
"it=#192, patch_size=#0.00015058339191491334, worse=#22.85969840299046, f=#0.12238320326037948\n", | |
"it=#193, patch_size=#0.00014305422231916768, worse=#27.222523321151805, f=#0.12238320326037948\n", | |
"it=#194, patch_size=#0.00013590151120320928, worse=#2.1966171322246746, f=#0.12238320326037948\n", | |
"it=#195, patch_size=#0.0001291064356430488, worse=#26.122691094338805, f=#0.12238320326037948\n", | |
"it=#196, patch_size=#0.00012265111386089634, worse=#15.64865026902627, f=#0.12238320326037948\n", | |
"it=#197, patch_size=#0.00011651855816785152, worse=#19.061277093676296, f=#0.12238320326037948\n", | |
"it=#198, patch_size=#0.00011069263025945894, worse=#3.6453661176768293, f=#0.12238320326037948\n", | |
"it=#199, patch_size=#0.00010515799874648598, worse=#25.74825043353789, f=#0.12238320326037948\n", | |
"it=#200, patch_size=#9.990009880916167e-05, worse=#33.9873510913991, f=#0.12238320326037948\n", | |
"it=#201, patch_size=#9.490509386870358e-05, worse=#34.12255983423811, f=#0.12238320326037948\n", | |
"it=#202, patch_size=#9.015983917526839e-05, worse=#24.378625603943394, f=#0.12238320326037948\n", | |
"it=#203, patch_size=#8.565184721650497e-05, worse=#39.595282892389974, f=#0.12238320326037948\n", | |
"it=#204, patch_size=#8.136925485567972e-05, worse=#38.40778257157648, f=#0.12238320326037948\n", | |
"it=#205, patch_size=#7.730079211289572e-05, worse=#27.381658558659726, f=#0.12238320326037948\n", | |
"it=#206, patch_size=#7.343575250725093e-05, worse=#8.65450488256205, f=#0.12238320326037948\n", | |
"it=#207, patch_size=#6.976396488188838e-05, worse=#41.45647624643702, f=#0.12238320326037948\n", | |
"it=#208, patch_size=#6.627576663779396e-05, worse=#22.763319667258497, f=#0.12238320326037948\n", | |
"it=#209, patch_size=#6.296197830590426e-05, worse=#66.96900533975773, f=#0.12238320326037948\n", | |
"it=#210, patch_size=#5.981387939060904e-05, worse=#32.10298766288591, f=#0.12238320326037948\n", | |
"it=#211, patch_size=#5.682318542107859e-05, worse=#34.560198794011185, f=#0.12238320326037948\n", | |
"it=#212, patch_size=#5.3982026150024657e-05, worse=#28.23428245796859, f=#0.12238320326037948\n", | |
"it=#213, patch_size=#5.128292484252342e-05, worse=#17.24063201501757, f=#0.12238320326037948\n", | |
"it=#214, patch_size=#4.8718778600397246e-05, worse=#26.23294993690885, f=#0.12238320326037948\n", | |
"it=#215, patch_size=#4.628283967037738e-05, worse=#5.479190484000569, f=#0.12238320326037948\n", | |
"it=#216, patch_size=#4.3968697686858505e-05, worse=#8.219267189599742, f=#0.12238320326037948\n", | |
"it=#217, patch_size=#4.177026280251558e-05, worse=#7.272842589002304, f=#0.12238320326037948\n", | |
"it=#218, patch_size=#3.96817496623898e-05, worse=#11.810497092756439, f=#0.12238320326037948\n", | |
"it=#219, patch_size=#3.769766217927031e-05, worse=#6.99986874350635, f=#0.12238320326037948\n", | |
"it=#220, patch_size=#3.581277907030679e-05, worse=#12.038077543982956, f=#0.12238320326037948\n", | |
"it=#221, patch_size=#3.402214011679145e-05, worse=#9.445681070981871, f=#0.12238320326037948\n", | |
"it=#222, patch_size=#3.232103311095187e-05, worse=#18.26221232825682, f=#0.12238320326037948\n", | |
"it=#223, patch_size=#3.0704981455404275e-05, worse=#31.644034257130112, f=#0.12238320326037948\n", | |
"it=#224, patch_size=#2.916973238263406e-05, worse=#37.08577353536267, f=#0.12238320326037948\n", | |
"it=#225, patch_size=#2.7711245763502356e-05, worse=#38.386930415878794, f=#0.12238320326037948\n", | |
"it=#226, patch_size=#2.6325683475327237e-05, worse=#17.29842893001065, f=#0.12238320326037948\n", | |
"it=#227, patch_size=#2.5009399301560875e-05, worse=#19.452698908764237, f=#0.12238320326037948\n", | |
"it=#228, patch_size=#2.3758929336482832e-05, worse=#17.80789464877345, f=#0.12238320326037948\n", | |
"it=#229, patch_size=#2.257098286965869e-05, worse=#27.523206285620393, f=#0.12238320326037948\n", | |
"it=#230, patch_size=#2.1442433726175756e-05, worse=#7.844936003604497, f=#0.12238320326037948\n", | |
"it=#231, patch_size=#2.0370312039866968e-05, worse=#37.590473623415384, f=#0.12238320326037948\n", | |
"it=#232, patch_size=#1.9351796437873617e-05, worse=#8.73978379395424, f=#0.12238320326037948\n", | |
"it=#233, patch_size=#1.8384206615979936e-05, worse=#24.916351389192098, f=#0.12238320326037948\n", | |
"it=#234, patch_size=#1.746499628518094e-05, worse=#13.359890364953282, f=#0.12238320326037948\n", | |
"it=#235, patch_size=#1.659174647092189e-05, worse=#29.495639558723198, f=#0.12238320326037948\n", | |
"it=#236, patch_size=#1.5762159147375795e-05, worse=#35.32745652765222, f=#0.12238320326037948\n", | |
"it=#237, patch_size=#1.4974051190007005e-05, worse=#13.043783574000546, f=#0.12238320326037948\n", | |
"it=#238, patch_size=#1.4225348630506654e-05, worse=#24.73518811669157, f=#0.12238320326037948\n", | |
"it=#239, patch_size=#1.351408119898132e-05, worse=#38.3865668875175, f=#0.12238320326037948\n", | |
"it=#240, patch_size=#1.2838377139032253e-05, worse=#28.713457618392873, f=#0.12238320326037948\n", | |
"it=#241, patch_size=#1.219645828208064e-05, worse=#16.84963524462042, f=#0.12238320326037948\n", | |
"it=#242, patch_size=#1.1586635367976607e-05, worse=#45.701291202851976, f=#0.12238320326037948\n", | |
"it=#243, patch_size=#1.1007303599577776e-05, worse=#16.745029996467462, f=#0.12238320326037948\n", | |
"it=#244, patch_size=#1.0456938419598887e-05, worse=#11.826549740713714, f=#0.12238320326037948\n", | |
"it=#245, patch_size=#9.934091498618942e-06, worse=#13.95286765404229, f=#0.12238320326037948\n", | |
"it=#246, patch_size=#9.437386923687995e-06, worse=#2.904158256321333, f=#0.12238320326037948\n", | |
"it=#247, patch_size=#8.965517577503595e-06, worse=#40.97583241652476, f=#0.12238320326037948\n", | |
"it=#248, patch_size=#8.517241698628415e-06, worse=#6.596210745629909, f=#0.12238320326037948\n", | |
"it=#249, patch_size=#8.091379613696994e-06, worse=#42.01090335143258, f=#0.12238320326037948\n", | |
"it=#250, patch_size=#7.686810633012145e-06, worse=#41.78246658291823, f=#0.12238320326037948\n", | |
"it=#251, patch_size=#7.302470101361537e-06, worse=#15.358019960988814, f=#0.12238320326037948\n", | |
"it=#252, patch_size=#6.93734659629346e-06, worse=#16.60626423075234, f=#0.12238320326037948\n", | |
"it=#253, patch_size=#6.590479266478787e-06, worse=#15.521609287462972, f=#0.12238320326037948\n", | |
"it=#254, patch_size=#6.260955303154847e-06, worse=#6.155775539228866, f=#0.12238320326037948\n", | |
"it=#255, patch_size=#5.947907537997104e-06, worse=#18.744808810930287, f=#0.12238320326037948\n", | |
"it=#256, patch_size=#5.650512161097249e-06, worse=#4.9665295529876134, f=#0.12238320326037948\n", | |
"it=#257, patch_size=#5.367986553042386e-06, worse=#2.7253754303344597, f=#0.12238320326037948\n", | |
"it=#258, patch_size=#5.099587225390267e-06, worse=#21.80954499110603, f=#0.12238320326037948\n", | |
"it=#259, patch_size=#4.844607864120754e-06, worse=#6.87979847648978, f=#0.12238320326037948\n", | |
"it=#260, patch_size=#4.602377470914716e-06, worse=#38.365197608259265, f=#0.12238320326037948\n", | |
"it=#261, patch_size=#4.37225859736898e-06, worse=#30.217553692916063, f=#0.12238320326037948\n", | |
"it=#262, patch_size=#4.153645667500531e-06, worse=#39.426934353843684, f=#0.12238320326037948\n", | |
"it=#263, patch_size=#3.945963384125504e-06, worse=#32.64041978586113, f=#0.12238320326037948\n", | |
"it=#264, patch_size=#3.748665214919229e-06, worse=#51.05362804762169, f=#0.12238320326037948\n", | |
"it=#265, patch_size=#3.5612319541732673e-06, worse=#24.690594740485125, f=#0.12238320326037948\n", | |
"it=#266, patch_size=#3.3831703564646036e-06, worse=#32.515575228785366, f=#0.12238320326037948\n", | |
"it=#267, patch_size=#3.2140118386413734e-06, worse=#25.790324735897208, f=#0.12238320326037948\n", | |
"it=#268, patch_size=#3.0533112467093045e-06, worse=#25.150278922829497, f=#0.12238320326037948\n", | |
"it=#269, patch_size=#2.900645684373839e-06, worse=#31.18685292803168, f=#0.12238320326037948\n", | |
"it=#270, patch_size=#2.755613400155147e-06, worse=#10.37729975602604, f=#0.12238320326037948\n", | |
"it=#271, patch_size=#2.6178327301473898e-06, worse=#35.728806474789565, f=#0.12238320326037948\n", | |
"it=#272, patch_size=#2.48694109364002e-06, worse=#33.88288744101547, f=#0.12238320326037948\n", | |
"it=#273, patch_size=#2.3625940389580186e-06, worse=#3.363708329934327, f=#0.12238320326037948\n", | |
"it=#274, patch_size=#2.2444643370101178e-06, worse=#37.48627512455523, f=#0.12238320326037948\n", | |
"it=#275, patch_size=#2.1322411201596117e-06, worse=#28.49703780604725, f=#0.12238320326037948\n", | |
"it=#276, patch_size=#2.025629064151631e-06, worse=#11.834844391087232, f=#0.12238320326037948\n", | |
"it=#277, patch_size=#1.924347610944049e-06, worse=#30.47300218215262, f=#0.12238320326037948\n", | |
"it=#278, patch_size=#1.8281302303968467e-06, worse=#18.33853603162729, f=#0.12238320326037948\n", | |
"it=#279, patch_size=#1.7367237188770042e-06, worse=#20.238832785169215, f=#0.12238320326037948\n", | |
"it=#280, patch_size=#1.649887532933154e-06, worse=#24.492661698362404, f=#0.12238320326037948\n", | |
"it=#281, patch_size=#1.5673931562864962e-06, worse=#24.97534936514284, f=#0.12238320326037948\n", | |
"it=#282, patch_size=#1.4890234984721713e-06, worse=#23.540049861279844, f=#0.12238320326037948\n", | |
"it=#283, patch_size=#1.4145723235485627e-06, worse=#35.69230732269927, f=#0.12238320326037948\n", | |
"it=#284, patch_size=#1.3438437073711345e-06, worse=#14.322205022469639, f=#0.12238320326037948\n", | |
"it=#285, patch_size=#1.2766515220025776e-06, worse=#34.99084578988379, f=#0.12238320326037948\n", | |
"it=#286, patch_size=#1.2128189459024487e-06, worse=#34.96166372924773, f=#0.12238320326037948\n", | |
"it=#287, patch_size=#1.1521779986073262e-06, worse=#17.28024357825683, f=#0.12238320326037948\n", | |
"it=#288, patch_size=#1.0945690986769597e-06, worse=#8.681016112348425, f=#0.12238320326037948\n", | |
"it=#289, patch_size=#1.0398406437431117e-06, worse=#54.60103830261798, f=#0.12238320326037948\n", | |
"it=#290, patch_size=#9.87848611555956e-07, worse=#13.208217700488866, f=#0.12238320326037948\n", | |
"it=#291, patch_size=#9.384561809781581e-07, worse=#7.597843529059852, f=#0.12238320326037948\n", | |
"it=#292, patch_size=#8.915333719292501e-07, worse=#14.793898736505174, f=#0.12238320326037948\n", | |
"it=#293, patch_size=#8.469567033327876e-07, worse=#7.844810124711504, f=#0.12238320326037948\n", | |
"it=#294, patch_size=#8.046088681661481e-07, worse=#24.151824421911527, f=#0.12238320326037948\n", | |
"it=#295, patch_size=#7.643784247578407e-07, worse=#33.41273916773871, f=#0.12238320326037948\n", | |
"it=#296, patch_size=#7.261595035199486e-07, worse=#30.098109295236902, f=#0.12238320326037948\n", | |
"it=#297, patch_size=#6.898515283439512e-07, worse=#9.473631016300766, f=#0.12238320326037948\n", | |
"it=#298, patch_size=#6.553589519267535e-07, worse=#22.108308839104453, f=#0.12238320326037948\n", | |
"it=#299, patch_size=#6.225910043304159e-07, worse=#13.689326164190584, f=#0.12238320326037948\n", | |
"it=#300, patch_size=#5.91461454113895e-07, worse=#18.72062906188861, f=#0.12238320326037948\n", | |
"it=#301, patch_size=#5.618883814082003e-07, worse=#21.782204968709568, f=#0.12238320326037948\n", | |
"it=#302, patch_size=#5.337939623377903e-07, worse=#34.79737037221208, f=#0.12238320326037948\n", | |
"it=#303, patch_size=#5.071042642209008e-07, worse=#20.806823945258493, f=#0.12238320326037948\n", | |
"it=#304, patch_size=#4.817490510098557e-07, worse=#9.038825258238333, f=#0.12238320326037948\n", | |
"it=#305, patch_size=#4.5766159845936286e-07, worse=#22.77263352443874, f=#0.12238320326037948\n", | |
"it=#306, patch_size=#4.347785185363947e-07, worse=#19.20957261000798, f=#0.12238320326037948\n", | |
"it=#307, patch_size=#4.1303959260957494e-07, worse=#43.942536501122994, f=#0.12238320326037948\n", | |
"it=#308, patch_size=#3.923876129790962e-07, worse=#22.36196587026276, f=#0.12238320326037948\n", | |
"it=#309, patch_size=#3.727682323301414e-07, worse=#24.654565010342814, f=#0.12238320326037948\n", | |
"it=#310, patch_size=#3.541298207136343e-07, worse=#18.419210304919417, f=#0.12238320326037948\n", | |
"it=#311, patch_size=#3.3642332967795257e-07, worse=#20.23954052356698, f=#0.12238320326037948\n", | |
"it=#312, patch_size=#3.196021631940549e-07, worse=#27.129345497370814, f=#0.12238320326037948\n", | |
"it=#313, patch_size=#3.0362205503435217e-07, worse=#9.01197646938945, f=#0.12238320326037948\n", | |
"it=#314, patch_size=#2.8844095228263453e-07, worse=#19.61348291311006, f=#0.12238320326037948\n", | |
"it=#315, patch_size=#2.740189046685028e-07, worse=#7.000562491158413, f=#0.12238320326037948\n", | |
"it=#316, patch_size=#2.603179594350777e-07, worse=#44.24312019214919, f=#0.12238320326037948\n", | |
"it=#317, patch_size=#2.473020614633238e-07, worse=#34.92001431375843, f=#0.12238320326037948\n", | |
"it=#318, patch_size=#2.349369583901576e-07, worse=#25.051184722979624, f=#0.12238320326037948\n" | |
] | |
}, | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"it=#319, patch_size=#2.231901104706497e-07, worse=#36.53296042305007, f=#0.12238320326037948\n", | |
"it=#320, patch_size=#2.1203060494711722e-07, worse=#41.08399631351552, f=#0.12238320326037948\n", | |
"it=#321, patch_size=#2.0142907469976134e-07, worse=#17.11824831604066, f=#0.12238320326037948\n", | |
"it=#322, patch_size=#1.9135762096477326e-07, worse=#32.98337509539981, f=#0.12238320326037948\n", | |
"it=#323, patch_size=#1.817897399165346e-07, worse=#2.306771746199936, f=#0.12238320326037948\n", | |
"it=#324, patch_size=#1.7270025292070784e-07, worse=#20.13865125757036, f=#0.12238320326037948\n", | |
"it=#325, patch_size=#1.6406524027467243e-07, worse=#17.240358440422334, f=#0.12238320326037948\n", | |
"it=#326, patch_size=#1.558619782609388e-07, worse=#18.382087371190764, f=#0.12238320326037948\n", | |
"it=#327, patch_size=#1.4806887934789185e-07, worse=#37.26505481304083, f=#0.12238320326037948\n", | |
"it=#328, patch_size=#1.4066543538049724e-07, worse=#5.295678763024545, f=#0.12238320326037948\n", | |
"it=#329, patch_size=#1.3363216361147237e-07, worse=#40.512093555821124, f=#0.12238320326037948\n", | |
"it=#330, patch_size=#1.2695055543089875e-07, worse=#18.69057410921703, f=#0.12238320326037948\n", | |
"it=#331, patch_size=#1.206030276593538e-07, worse=#25.969385421990882, f=#0.12238320326037948\n", | |
"it=#332, patch_size=#1.145728762763861e-07, worse=#14.956167188386189, f=#0.12238320326037948\n", | |
"it=#333, patch_size=#1.0884423246256678e-07, worse=#27.725717321397582, f=#0.12238320326037948\n", | |
"it=#334, patch_size=#1.0340202083943844e-07, worse=#25.89694066096544, f=#0.12238320326037948\n", | |
"it=#335, patch_size=#9.823191979746652e-08, worse=#45.55311676235755, f=#0.12238320326037948\n", | |
"it=#336, patch_size=#9.33203238075932e-08, worse=#38.51184206274351, f=#0.12238320326037948\n", | |
"it=#337, patch_size=#8.865430761721353e-08, worse=#10.833537522017682, f=#0.12238320326037948\n", | |
"it=#338, patch_size=#8.422159223635284e-08, worse=#41.48463696822486, f=#0.12238320326037948\n", | |
"it=#339, patch_size=#8.00105126245352e-08, worse=#32.12889594305338, f=#0.12238320326037948\n", | |
"it=#340, patch_size=#7.600998699330844e-08, worse=#27.97863565057628, f=#0.12238320326037948\n", | |
"it=#341, patch_size=#7.220948764364301e-08, worse=#17.876612135992637, f=#0.12238320326037948\n", | |
"it=#342, patch_size=#6.859901326146086e-08, worse=#26.483846249923086, f=#0.12238320326037948\n", | |
"it=#343, patch_size=#6.516906259838781e-08, worse=#32.550984444822916, f=#0.12238320326037948\n", | |
"it=#344, patch_size=#6.191060946846841e-08, worse=#15.864989531199377, f=#0.12238320326037948\n", | |
"it=#345, patch_size=#5.8815078995044986e-08, worse=#27.75461097689221, f=#0.12238320326037948\n", | |
"it=#346, patch_size=#5.5874325045292733e-08, worse=#15.599468651927715, f=#0.12238320326037948\n", | |
"it=#347, patch_size=#5.3080608793028097e-08, worse=#41.21432173335273, f=#0.12238320326037948\n", | |
"it=#348, patch_size=#5.042657835337669e-08, worse=#40.68777165587727, f=#0.12238320326037948\n", | |
"it=#349, patch_size=#4.790524943570785e-08, worse=#5.469570793377003, f=#0.12238320326037948\n", | |
"it=#350, patch_size=#4.550998696392246e-08, worse=#34.632830500713375, f=#0.12238320326037948\n", | |
"it=#351, patch_size=#4.3234487615726336e-08, worse=#33.33541232550646, f=#0.12238320326037948\n", | |
"it=#352, patch_size=#4.107276323494002e-08, worse=#33.170015525357854, f=#0.12238320326037948\n", | |
"it=#353, patch_size=#3.901912507319302e-08, worse=#35.69346670600146, f=#0.12238320326037948\n", | |
"it=#354, patch_size=#3.7068168819533366e-08, worse=#44.112959868833, f=#0.12238320326037948\n", | |
"it=#355, patch_size=#3.52147603785567e-08, worse=#31.865367405484122, f=#0.12238320326037948\n", | |
"it=#356, patch_size=#3.345402235962886e-08, worse=#4.779385719482225, f=#0.12238320326037948\n", | |
"it=#357, patch_size=#3.1781321241647414e-08, worse=#16.260330581077977, f=#0.12238320326037948\n", | |
"it=#358, patch_size=#3.0192255179565044e-08, worse=#33.683919076180636, f=#0.12238320326037948\n", | |
"it=#359, patch_size=#2.868264242058679e-08, worse=#11.062369346214647, f=#0.12238320326037948\n", | |
"it=#360, patch_size=#2.7248510299557448e-08, worse=#36.70635642266976, f=#0.12238320326037948\n", | |
"it=#361, patch_size=#2.5886084784579575e-08, worse=#32.54071153783748, f=#0.12238320326037948\n", | |
"it=#362, patch_size=#2.4591780545350595e-08, worse=#21.613121134992866, f=#0.12238320326037948\n", | |
"it=#363, patch_size=#2.3362191518083062e-08, worse=#19.3957459967471, f=#0.12238320326037948\n", | |
"it=#364, patch_size=#2.2194081942178907e-08, worse=#23.84240221993077, f=#0.12238320326037948\n", | |
"it=#365, patch_size=#2.108437784506996e-08, worse=#11.802343788945773, f=#0.12238320326037948\n", | |
"it=#366, patch_size=#2.0030158952816462e-08, worse=#16.577009267173125, f=#0.12238320326037948\n", | |
"it=#367, patch_size=#1.902865100517564e-08, worse=#8.108193168936031, f=#0.12238320326037948\n", | |
"it=#368, patch_size=#1.8077218454916856e-08, worse=#27.574784175016177, f=#0.12238320326037948\n", | |
"it=#369, patch_size=#1.7173357532171014e-08, worse=#21.18776285532126, f=#0.12238320326037948\n", | |
"it=#370, patch_size=#1.631468965556246e-08, worse=#23.248402002976473, f=#0.12238320326037948\n", | |
"it=#371, patch_size=#1.5498955172784336e-08, worse=#36.716864068812974, f=#0.12238320326037948\n", | |
"it=#372, patch_size=#1.4724007414145118e-08, worse=#18.89937279757611, f=#0.12238320326037948\n", | |
"it=#373, patch_size=#1.3987807043437862e-08, worse=#29.44344919559304, f=#0.12238320326037948\n", | |
"it=#374, patch_size=#1.3288416691265969e-08, worse=#20.294185146554128, f=#0.12238320326037948\n", | |
"it=#375, patch_size=#1.262399585670267e-08, worse=#30.088564723660145, f=#0.12238320326037948\n", | |
"it=#376, patch_size=#1.1992796063867536e-08, worse=#24.366510239196217, f=#0.12238320326037948\n", | |
"it=#377, patch_size=#1.139315626067416e-08, worse=#27.87481493003456, f=#0.12238320326037948\n", | |
"it=#378, patch_size=#1.082349844764045e-08, worse=#2.637379139107806, f=#0.12238320326037948\n", | |
"it=#379, patch_size=#1.0282323525258428e-08, worse=#1.8010266123142062, f=#0.12238320326037948\n", | |
"it=#380, patch_size=#9.768207348995506e-09, worse=#2.695085167960875, f=#0.12238320326037948\n", | |
"it=#381, patch_size=#9.27979698154573e-09, worse=#5.206441670898642, f=#0.12238320326037948\n", | |
"it=#382, patch_size=#8.815807132468443e-09, worse=#28.248789640057723, f=#0.12238320326037948\n", | |
"it=#383, patch_size=#8.37501677584502e-09, worse=#16.537105411623063, f=#0.12238320326037948\n", | |
"it=#384, patch_size=#7.956265937052769e-09, worse=#25.146561122170684, f=#0.12238320326037948\n", | |
"it=#385, patch_size=#7.55845264020013e-09, worse=#13.54732475106698, f=#0.12238320326037948\n", | |
"it=#386, patch_size=#7.1805300081901235e-09, worse=#26.507808868426295, f=#0.12238320326037948\n", | |
"it=#387, patch_size=#6.821503507780617e-09, worse=#6.242828339090181, f=#0.12238320326037948\n", | |
"it=#388, patch_size=#6.4804283323915855e-09, worse=#26.173454580701325, f=#0.12238320326037948\n", | |
"it=#389, patch_size=#6.156406915772006e-09, worse=#24.102133433775396, f=#0.12238320326037948\n", | |
"it=#390, patch_size=#5.848586569983405e-09, worse=#28.186909506734146, f=#0.12238320326037948\n", | |
"it=#391, patch_size=#5.556157241484235e-09, worse=#4.759100012690449, f=#0.12238320326037948\n", | |
"it=#392, patch_size=#5.278349379410023e-09, worse=#36.83416736522212, f=#0.12238320326037948\n", | |
"it=#393, patch_size=#5.014431910439521e-09, worse=#9.483676845456563, f=#0.12238320326037948\n", | |
"it=#394, patch_size=#4.763710314917545e-09, worse=#33.98284205054109, f=#0.12238320326037948\n", | |
"it=#395, patch_size=#4.525524799171667e-09, worse=#24.73268551964376, f=#0.12238320326037948\n", | |
"it=#396, patch_size=#4.299248559213084e-09, worse=#15.062341695672426, f=#0.12238320326037948\n", | |
"it=#397, patch_size=#4.084286131252429e-09, worse=#43.92787428671069, f=#0.12238320326037948\n", | |
"it=#398, patch_size=#3.880071824689807e-09, worse=#18.837556688987945, f=#0.12238320326037948\n", | |
"it=#399, patch_size=#3.6860682334553167e-09, worse=#13.838210236521086, f=#0.12238320326037948\n", | |
"it=#400, patch_size=#3.5017648217825507e-09, worse=#10.559789882281644, f=#0.12238320326037948\n", | |
"it=#401, patch_size=#3.326676580693423e-09, worse=#22.465777479520646, f=#0.12238320326037948\n", | |
"it=#402, patch_size=#3.160342751658752e-09, worse=#33.95163408656519, f=#0.12238320326037948\n", | |
"it=#403, patch_size=#3.002325614075814e-09, worse=#28.26900709982683, f=#0.12238320326037948\n", | |
"it=#404, patch_size=#2.8522093333720234e-09, worse=#39.53183503639221, f=#0.12238320326037948\n", | |
"it=#405, patch_size=#2.709598866703422e-09, worse=#12.452849088974048, f=#0.12238320326037948\n", | |
"it=#406, patch_size=#2.574118923368251e-09, worse=#17.06390085673333, f=#0.12238320326037948\n", | |
"it=#407, patch_size=#2.4454129771998383e-09, worse=#34.038383327252276, f=#0.12238320326037948\n", | |
"it=#408, patch_size=#2.323142328339846e-09, worse=#8.957746415798352, f=#0.12238320326037948\n", | |
"it=#409, patch_size=#2.2069852119228537e-09, worse=#29.22981038680421, f=#0.12238320326037948\n", | |
"it=#410, patch_size=#2.096635951326711e-09, worse=#25.725185027685658, f=#0.12238320326037948\n", | |
"it=#411, patch_size=#1.9918041537603756e-09, worse=#4.479304632615962, f=#0.12238320326037948\n", | |
"it=#412, patch_size=#1.8922139460723567e-09, worse=#23.831246566310668, f=#0.12238320326037948\n", | |
"it=#413, patch_size=#1.7976032487687386e-09, worse=#7.881634896233381, f=#0.12238320326037948\n", | |
"it=#414, patch_size=#1.7077230863303016e-09, worse=#35.62882798432968, f=#0.12238320326037948\n", | |
"it=#415, patch_size=#1.6223369320137865e-09, worse=#24.522271332671966, f=#0.12238320326037948\n", | |
"it=#416, patch_size=#1.5412200854130971e-09, worse=#46.96412629032588, f=#0.12238320326037948\n", | |
"it=#417, patch_size=#1.4641590811424422e-09, worse=#9.221803261288656, f=#0.12238320326037948\n", | |
"it=#418, patch_size=#1.39095112708532e-09, worse=#36.24182078795184, f=#0.12238320326037948\n", | |
"it=#419, patch_size=#1.321403570731054e-09, worse=#42.44196763726751, f=#0.12238320326037948\n", | |
"it=#420, patch_size=#1.2553333921945011e-09, worse=#18.731664265473405, f=#0.12238320326037948\n", | |
"it=#421, patch_size=#1.192566722584776e-09, worse=#23.746356180366853, f=#0.12238320326037948\n", | |
"it=#422, patch_size=#1.1329383864555372e-09, worse=#34.14687762907788, f=#0.12238320326037948\n", | |
"it=#423, patch_size=#1.0762914671327603e-09, worse=#34.06800279425123, f=#0.12238320326037948\n", | |
"it=#424, patch_size=#1.0224768937761223e-09, worse=#34.84026717951171, f=#0.12238320326037948\n", | |
"it=#425, patch_size=#9.713530490873161e-10, worse=#19.610554096489796, f=#0.12238320326037948\n", | |
"it=#426, patch_size=#9.227853966329502e-10, worse=#28.996793660023435, f=#0.12238320326037948\n", | |
"it=#427, patch_size=#8.766461268013027e-10, worse=#23.211548425918362, f=#0.12238320326037948\n", | |
"it=#428, patch_size=#8.328138204612376e-10, worse=#40.85336776047308, f=#0.12238320326037948\n", | |
"it=#429, patch_size=#7.911731294381757e-10, worse=#15.902761618341712, f=#0.12238320326037948\n", | |
"it=#430, patch_size=#7.516144729662669e-10, worse=#22.994853741937188, f=#0.12238320326037948\n", | |
"it=#431, patch_size=#7.140337493179535e-10, worse=#11.511345591181101, f=#0.12238320326037948\n", | |
"it=#432, patch_size=#6.783320618520558e-10, worse=#21.676217817728062, f=#0.12238320326037948\n", | |
"it=#433, patch_size=#6.44415458759453e-10, worse=#20.956985751412844, f=#0.12238320326037948\n", | |
"it=#434, patch_size=#6.121946858214803e-10, worse=#18.76615387580297, f=#0.12238320326037948\n", | |
"it=#435, patch_size=#5.815849515304062e-10, worse=#37.994149973678596, f=#0.12238320326037948\n", | |
"it=#436, patch_size=#5.525057039538859e-10, worse=#28.362365833422814, f=#0.12238320326037948\n", | |
"it=#437, patch_size=#5.248804187561915e-10, worse=#11.293254021414693, f=#0.12238320326037948\n", | |
"it=#438, patch_size=#4.986363978183819e-10, worse=#32.33567371894234, f=#0.12238320326037948\n", | |
"it=#439, patch_size=#4.737045779274627e-10, worse=#12.426074801995986, f=#0.12238320326037948\n", | |
"it=#440, patch_size=#4.500193490310896e-10, worse=#44.08915455070152, f=#0.12238320326037948\n", | |
"it=#441, patch_size=#4.275183815795351e-10, worse=#20.06333161804906, f=#0.12238320326037948\n", | |
"it=#442, patch_size=#4.061424625005583e-10, worse=#12.118822952712595, f=#0.12238320326037948\n", | |
"it=#443, patch_size=#3.858353393755304e-10, worse=#32.0708899652065, f=#0.12238320326037948\n", | |
"it=#444, patch_size=#3.6654357240675384e-10, worse=#16.495549357790143, f=#0.12238320326037948\n", | |
"it=#445, patch_size=#3.482163937864161e-10, worse=#14.883062857224528, f=#0.12238320326037948\n", | |
"it=#446, patch_size=#3.308055740970953e-10, worse=#8.441336954952464, f=#0.12238320326037948\n", | |
"it=#447, patch_size=#3.1426529539224054e-10, worse=#12.485013837780295, f=#0.12238320326037948\n", | |
"it=#448, patch_size=#2.985520306226285e-10, worse=#8.647353611794182, f=#0.12238320326037948\n", | |
"it=#449, patch_size=#2.83624429091497e-10, worse=#30.90015819930831, f=#0.12238320326037948\n", | |
"it=#450, patch_size=#2.6944320763692214e-10, worse=#13.518033130859726, f=#0.12238320326037948\n", | |
"it=#451, patch_size=#2.55971047255076e-10, worse=#5.5885914152647365, f=#0.12238320326037948\n", | |
"it=#452, patch_size=#2.4317249489232223e-10, worse=#12.60041708512263, f=#0.12238320326037948\n", | |
"it=#453, patch_size=#2.310138701477061e-10, worse=#33.797362731383046, f=#0.12238320326037948\n", | |
"it=#454, patch_size=#2.194631766403208e-10, worse=#33.40125860625122, f=#0.12238320326037948\n", | |
"it=#455, patch_size=#2.0849001780830476e-10, worse=#38.52017303490962, f=#0.12238320326037948\n", | |
"it=#456, patch_size=#1.9806551691788951e-10, worse=#19.255383989811275, f=#0.12238320326037948\n", | |
"it=#457, patch_size=#1.8816224107199503e-10, worse=#13.369881393791395, f=#0.12238320326037948\n", | |
"it=#458, patch_size=#1.7875412901839526e-10, worse=#17.23757112315243, f=#0.12238320326037948\n", | |
"it=#459, patch_size=#1.6981642256747548e-10, worse=#39.09098178776182, f=#0.12238320326037948\n", | |
"it=#460, patch_size=#1.613256014391017e-10, worse=#16.354043291429374, f=#0.12238320326037948\n", | |
"it=#461, patch_size=#1.532593213671466e-10, worse=#13.827685164250317, f=#0.12238320326037948\n", | |
"it=#462, patch_size=#1.4559635529878926e-10, worse=#11.642747492760545, f=#0.12238320326037948\n", | |
"it=#463, patch_size=#1.3831653753384978e-10, worse=#30.87446821314512, f=#0.12238320326037948\n", | |
"it=#464, patch_size=#1.314007106571573e-10, worse=#22.824427302031665, f=#0.12238320326037948\n", | |
"it=#465, patch_size=#1.2483067512429943e-10, worse=#21.224922671725647, f=#0.12238320326037948\n", | |
"it=#466, patch_size=#1.1858914136808445e-10, worse=#53.60182366411374, f=#0.12238320326037948\n", | |
"it=#467, patch_size=#1.1265968429968022e-10, worse=#31.134372640311383, f=#0.12238320326037948\n", | |
"it=#468, patch_size=#1.0702670008469621e-10, worse=#44.14973490760099, f=#0.12238320326037948\n", | |
"it=#469, patch_size=#1.016753650804614e-10, worse=#44.89717515177939, f=#0.12238320326037948\n", | |
"it=#470, patch_size=#9.659159682643832e-11, worse=#5.665145562548545, f=#0.12238320326037948\n", | |
"it=#471, patch_size=#9.17620169851164e-11, worse=#25.126876854515956, f=#0.12238320326037948\n", | |
"it=#472, patch_size=#8.717391613586058e-11, worse=#15.226595423979983, f=#0.12238320326037948\n", | |
"it=#473, patch_size=#8.281522032906755e-11, worse=#17.70017315998358, f=#0.12238320326037948\n", | |
"it=#474, patch_size=#7.867445931261418e-11, worse=#30.042998718723094, f=#0.12238320326037948\n", | |
"it=#475, patch_size=#7.474073634698346e-11, worse=#8.285402451039626, f=#0.12238320326037948\n", | |
"it=#476, patch_size=#7.100369952963428e-11, worse=#18.26380732959644, f=#0.12238320326037948\n", | |
"it=#477, patch_size=#6.745351455315256e-11, worse=#16.78969776857086, f=#0.12238320326037948\n", | |
"it=#478, patch_size=#6.408083882549493e-11, worse=#18.70090164069565, f=#0.12238320326037948\n", | |
"it=#479, patch_size=#6.087679688422018e-11, worse=#56.75103189979309, f=#0.12238320326037948\n", | |
"it=#480, patch_size=#5.783295704000917e-11, worse=#21.99827413504976, f=#0.12238320326037948\n", | |
"it=#481, patch_size=#5.494130918800871e-11, worse=#43.421434077234544, f=#0.12238320326037948\n", | |
"it=#482, patch_size=#5.2194243728608274e-11, worse=#24.984037535034066, f=#0.12238320326037948\n", | |
"it=#483, patch_size=#4.9584531542177856e-11, worse=#14.014221017899443, f=#0.12238320326037948\n", | |
"it=#484, patch_size=#4.710530496506896e-11, worse=#33.671785588100974, f=#0.12238320326037948\n", | |
"it=#485, patch_size=#4.475003971681551e-11, worse=#46.31850304909327, f=#0.12238320326037948\n", | |
"it=#486, patch_size=#4.251253773097473e-11, worse=#12.135412805862014, f=#0.12238320326037948\n", | |
"it=#487, patch_size=#4.038691084442599e-11, worse=#44.491964790663005, f=#0.12238320326037948\n", | |
"it=#488, patch_size=#3.8367565302204694e-11, worse=#20.600895622510805, f=#0.12238320326037948\n", | |
"it=#489, patch_size=#3.644918703709446e-11, worse=#29.559807934297837, f=#0.12238320326037948\n", | |
"it=#490, patch_size=#3.462672768523973e-11, worse=#24.205539129323817, f=#0.12238320326037948\n", | |
"it=#491, patch_size=#3.289539130097774e-11, worse=#14.727746579291349, f=#0.12238320326037948\n", | |
"it=#492, patch_size=#3.125062173592886e-11, worse=#27.366743066854077, f=#0.12238320326037948\n", | |
"it=#493, patch_size=#2.9688090649132415e-11, worse=#21.894881713313833, f=#0.12238320326037948\n" | |
] | |
}, | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"it=#494, patch_size=#2.8203686116675792e-11, worse=#42.30516493329152, f=#0.12238320326037948\n", | |
"it=#495, patch_size=#2.6793501810842002e-11, worse=#4.286297140305528, f=#0.12238320326037948\n", | |
"it=#496, patch_size=#2.54538267202999e-11, worse=#26.497113803016404, f=#0.12238320326037948\n", | |
"it=#497, patch_size=#2.4181135384284903e-11, worse=#16.124659440554165, f=#0.12238320326037948\n", | |
"it=#498, patch_size=#2.2972078615070656e-11, worse=#41.2274083176176, f=#0.12238320326037948\n", | |
"it=#499, patch_size=#2.1823474684317122e-11, worse=#23.851893836340352, f=#0.12238320326037948\n", | |
"Solution: f=#0.12238320326037948, s=#[ 0.18102855 0.07173055 0.29063137]\n" | |
] | |
} | |
], | |
"source": [ | |
"if __name__ == '__main__':\n", | |
" problem_size = 3\n", | |
" max_gens = 500\n", | |
" bees_num = 45\n", | |
" sites_num = 3\n", | |
" elite_sites_num = 1\n", | |
" patch_size = 3.0\n", | |
" elite_bees_num = 7\n", | |
" other_bees_num = 2\n", | |
" best = search(-5, 5, max_gens, problem_size, patch_size, bees_num, \n", | |
" sites_num, elite_sites_num, elite_bees_num, other_bees_num)\n", | |
" print('Solution: f=#{}, s=#{}'.format(best.fitness, best.vector))\n", | |
" " | |
] | |
} | |
], | |
"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.5.2" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment