{"blocked":null,"sec_per_sim":0.14614477569141116,"n_params":5,"evaluations":193,"log":[{"params":[0.11631295120422121,1.5669165190157992,1.2280015825665371,0.20027383673099697,0.06978202568680764],"n":32,"mean_diff":-36.670386476898884},{"params":[0.14868402098281255,0.6295022676014032,1.4009714918954836,0.5838516511227975,0.056426795051923245],"n":32,"mean_diff":-15.607440736148732},{"params":[0.05371192671039658,1.3772319607625882,0.4918466799688497,0.46253071196159784,0.03946569301794248],"n":32,"mean_diff":-13.387816395107611},{"params":[0.21556551845860963,1.0274082541623448,0.7982048418340888,0.32016105365792635,0.04438034954247767],"n":32,"mean_diff":-75.086251241854},{"params":[0.051122775849893526,0.8098339953434344,1.892904031934763,0.7315465925203327,0.01923890016540641],"n":32,"mean_diff":-38.83877540621803},{"params":[0.0005028332476258063,0.8794072564819382,0.708688616012316,0.5491378894246806,0.05474848419284302],"n":32,"mean_diff":-5.177279395321438},{"params":[1.8168814762574865,0.2327056737423258,0.7394525450823712,0.9698374697232359,0.06413046046701036],"n":32,"mean_diff":-277.3871495307493},{"params":[0.2520699341745671,0.6453356035356506,0.13717186789040037,0.5385168911712305,0.052381957818900815],"n":32,"mean_diff":-19.343219880482607},{"params":[0.0025203538959928527,0.5285736033714119,0.9502898609882129,0.28270712669602116,0.04785280120242905],"n":32,"mean_diff":-7.335117800662507},{"params":[0.06324424946498412,1.024554503568285,0.6506587557631227,0.6365620565107393,0.06947199795106888],"n":32,"mean_diff":-4.670822863786958},{"params":[0.002428840563229386,0.7453079834213898,0.990760759234684,0.6646154015806301,0.0799049854870228],"n":32,"mean_diff":-1.362456152266562},{"params":[0.13614120489875364,0.6397634478210599,0.02701141033394272,0.6348155865645019,0.06290387387867162],"n":32,"mean_diff":-6.2216132184786375},{"params":[0.018616029343915232,1.433582455521229,0.1540996661943742,0.6797942847525739,0.06425878206346897],"n":32,"mean_diff":-3.6915470790742173},{"params":[0.052006090756014596,0.5693075717099467,0.34900941672436187,0.6971111464346774,0.08343121007212127],"n":32,"mean_diff":-1.5705881402508624},{"params":[0.001481891884863564,1.652731539950255,0.9858989969056065,0.44854318846497054,0.05453189490635097],"n":32,"mean_diff":-5.270122785943469},{"params":[0.01129748014248281,1.9390929601897275,0.7989125084106052,0.5899968337398557,0.049566923088187484],"n":32,"mean_diff":-7.0519312882829865},{"params":[0.0038131380595396174,1.9374511232257086,0.010876816673386774,0.6978020617149575,0.06997434108874534],"n":32,"mean_diff":-2.4723821724670447},{"params":[0.0016415327724293518,1.1236946193855,1.09092927065219,0.5338486596937703,0.062330022949296744],"n":32,"mean_diff":-3.6489653044629424},{"params":[0.0016525762526853017,1.2468014690957947,0.4802339898274707,0.5034946259720342,0.07682181598028177],"n":32,"mean_diff":-1.6607405587574675},{"params":[0.04073343966343504,0.12350710823752498,0.017872828082708514,0.8983925714147316,0.05833238999730904],"n":32,"mean_diff":-4.43498513978429},{"params":[0.0002521562411373205,1.055359728955068,0.7882156686015647,0.8464662643074368,0.09014388492079692],"n":32,"mean_diff":-0.5365467032838112},{"params":[0.0002891007155767822,0.02476059084776755,1.009744565621995,0.39675780959556467,0.07158030034138899],"n":32,"mean_diff":-2.1820376916622486},{"params":[0.0008735925460332512,0.8003915113939817,0.76146034007381,0.6998625196061629,0.06794687152313557],"n":32,"mean_diff":-2.6884828117415243},{"params":[0.020521102689859363,0.7254274115059282,0.08506318954643266,0.7473369405126978,0.09519234346736141],"n":32,"mean_diff":-0.3712245270124459},{"params":[0.00013485203996719853,0.6326143852761485,0.7576840938694696,0.4971252885976472,0.06370820390119798],"n":32,"mean_diff":-3.384000125902789},{"params":[0.0528500153413323,0.4970748325090618,0.01839619981271337,0.7621724381345214,0.06368066900310979],"n":32,"mean_diff":-3.7825975447704714},{"params":[0.003038212202689845,0.9277229057216754,1.0385400309012596,0.6869876642526724,0.07277646485448781],"n":32,"mean_diff":-2.113676771393779},{"params":[0.015769989130903897,0.3624490292308548,1.118477712517425,0.6542925179645852,0.05452063783132284],"n":32,"mean_diff":-5.296435340012765},{"params":[0.0016810432230432435,1.3097584242049336,1.0841067076860766,0.9335862331028251,0.07986032709744098],"n":32,"mean_diff":-1.3888767704312208},{"params":[0.012884622896270693,0.9765615312192285,0.5779018797057132,0.5820893204137045,0.0523148695454632],"n":32,"mean_diff":-5.996686384198485},{"params":[0.03779932802458081,0.6320984271077141,0.9267699099958224,0.9755482503725558,0.0789742477213606],"n":32,"mean_diff":-2.0724012437053627},{"params":[0.17765272652836753,0.2216851104967279,0.2730287616182525,0.996218238014859,0.09094700761055241],"n":32,"mean_diff":-1.7785467869048865},{"params":[0.0009818334825220766,0.6648911221785503,0.6333496584750778,0.9598258064163783,0.09117150864891355],"n":32,"mean_diff":-0.46450831311281604},{"params":[0.007016837289019374,1.4401046882653148,0.43121460238697806,0.8845794526060549,0.0734626281992674],"n":32,"mean_diff":-2.0819811748265433},{"params":[0.015805971557451542,1.048768451914367,0.8619236334666843,0.5587059113070425,0.05752497805766427],"n":32,"mean_diff":-4.827725494592785},{"params":[0.0002754296228783077,0.6756968888814174,0.9265264009909053,0.84147970515421,0.098660797929319],"n":32,"mean_diff":-0.08254232703837516},{"params":[0.0018838156710785361,1.1383772629544116,1.102155267959252,0.9655334657784942,0.08122948076813286],"n":32,"mean_diff":-1.248812351232468},{"params":[0.06937892319019479,0.8545585280793424,0.6611098029363834,0.7263594611532871,0.08410877061015681],"n":32,"mean_diff":-2.9354241998041726},{"params":[0.37147687144146774,1.2087172455311475,0.6734999947001732,0.7634256690837433,0.0951508691723633],"n":32,"mean_diff":-335.29509136398565},{"params":[0.0038407876674225044,1.89797124558475,0.6247705138892996,0.46283016058091736,0.07699926680953344],"n":32,"mean_diff":-1.6765436473491349},{"params":[0.0038361481861112303,2.335010601222464,1.6162604710290167,0.8106076735517158,0.08864815074426749],"n":32,"mean_diff":-0.7277753325514951},{"params":[0.001310942230859162,0.13467661776886153,0.033437495750177404,0.5579047770614385,0.09890673189682143],"n":32,"mean_diff":-0.05671731878045172},{"params":[0.003747870240982355,0.5985447321597531,0.9576089974832356,0.8189585457243144,0.09964603641755661],"n":32,"mean_diff":-0.06099416197214147},{"params":[0.0010962931360805781,0.36972972621698874,0.5222356417926307,0.9917698158563466,0.08342242650108046],"n":32,"mean_diff":-1.025419257010542},{"params":[0.0028049726187341435,1.2224881770900802,0.7679342476376891,0.8634326748464697,0.07494879155320941],"n":32,"mean_diff":-1.8702277053188094},{"params":[0.009564004402534342,0.0821654221570765,0.3411523050162645,0.7077998640319795,0.08612358507947422],"n":32,"mean_diff":-0.8275826401142048},{"params":[0.014899759783222685,1.0568601982915766,0.28003289466261344,0.9905290394304356,0.08421193980067136],"n":32,"mean_diff":-1.1631469633389386},{"params":[0.008825555437407831,0.19036129254896736,0.6740003134117459,0.5344533583072335,0.08564428682384324],"n":32,"mean_diff":-0.8777831136390333},{"params":[0.0005794876662444606,0.6110153096878554,0.10949591665107994,0.8648451034558731,0.06252279006852866],"n":32,"mean_diff":-3.6074684490613347},{"params":[0.0005247008298733385,0.128285687015387,0.5119244879599323,0.8358484570264626,0.09945939250585377],"n":32,"mean_diff":-0.018828119302840562},{"params":[0.0004268327493475717,0.03626324552737925,0.15529413567180925,0.7840938933507275,0.09147212824308935],"n":32,"mean_diff":-0.4398551911941482},{"params":[0.0005761737402568948,0.8214876148827573,0.33510891047775637,0.7404742186982383,0.0878428118952851],"n":32,"mean_diff":-0.6979403518600922},{"params":[0.029830698257032343,0.06349561535803483,0.10219748171085152,0.9215928630814464,0.09733586323889067],"n":32,"mean_diff":-0.1856601690561046},{"params":[0.001966062286264782,0.709703563127644,0.5680789214403558,0.835537665159422,0.06467439142646103],"n":32,"mean_diff":-3.2413859504847995},{"params":[0.021040260590962374,1.9565682427912914,1.2151157181017787,0.8069895324104694,0.07683880453883582],"n":32,"mean_diff":-2.6825705892650813},{"params":[0.0019807116620320538,0.7085353072942189,0.04841643081252589,0.8043256790645213,0.09106942813336087],"n":32,"mean_diff":-0.4776921438507653},{"params":[0.004524263753025528,0.9890799641143687,0.848899742841365,0.5935878539216808,0.09090352395192217],"n":32,"mean_diff":-0.5321266175829962},{"params":[0.011763282545200711,0.018947815718866695,0.1857837816406141,0.6308722912555182,0.09170358359547551],"n":32,"mean_diff":-0.4357227497946159},{"params":[0.000774952493995043,0.20689747000978553,0.8800548909078161,0.9661816881026111,0.08603330361842133],"n":32,"mean_diff":-0.835652247095199},{"params":[0.000168381609160856,1.2543419929302986,1.0971506429298676,0.7395220312396216,0.08471179791776663],"n":32,"mean_diff":-0.9133155832156739},{"params":[0.0033067748090469546,0.5502130610689272,0.20521560433479585,0.9088031519297097,0.08888701505685331],"n":32,"mean_diff":-0.6163059551940933},{"params":[0.0032145318947044725,0.607328067417348,0.2632760535962355,0.9681877040622417,0.0995530473215447],"n":32,"mean_diff":-0.0543824611465471},{"params":[0.008538533653961181,0.14675575010882785,0.8460358564868578,0.9501107117463388,0.07489480580425686],"n":32,"mean_diff":-1.8836293650150413},{"params":[0.00013839952702935962,1.051816097394209,0.20889924597972517,0.9032112525767089,0.082914661030058],"n":32,"mean_diff":-1.0549190444056702},{"params":[0.01768460355685025,0.7503491840045015,0.14524763786186345,0.8558650402389248,0.09202295459379424],"n":32,"mean_diff":-0.5623504027600461},{"params":[0.0007509681649088238,0.5679833426518882,0.30419271758610456,0.9495213158210483,0.09803518445379587],"n":32,"mean_diff":-0.12250484471316447},{"params":[0.0008144345985650938,0.40099675797854767,0.904542822815842,0.757692647452113,0.08901525132754597],"n":32,"mean_diff":-0.6155536661278358},{"params":[0.0001778283767611966,0.3608170246734138,1.0534770789371892,0.6666075309922553,0.08661298402017208],"n":32,"mean_diff":-0.7648943593277178},{"params":[0.007137770073275258,0.42707261951439895,0.22646838600787117,0.897370214593834,0.08197499027019967],"n":32,"mean_diff":-1.1730723622058612},{"params":[0.0044799260269470405,0.38875737462606386,0.5024782465286661,0.9859826535303811,0.0872188411401938],"n":32,"mean_diff":-0.7550988625541883},{"params":[0.00041682083489605137,0.6572015250169942,0.32041852269577054,0.8401484986164562,0.08334709732848944],"n":32,"mean_diff":-1.0326608760018043},{"params":[0.02209220975348679,0.43684843271742113,0.26881049654369293,0.9569710487418541,0.08607959583700421],"n":32,"mean_diff":-0.9113685379705387},{"params":[0.00849850643556536,0.5614965233537268,0.7233619051785134,0.9612894994901178,0.0994470804998261],"n":32,"mean_diff":-0.057487527501816515},{"params":[0.012122213110830166,0.5685180184501525,0.5256584329973538,0.865639991857861,0.08322022584614475],"n":32,"mean_diff":-1.1000922718577613},{"params":[0.2263069217084612,0.8669768968610814,0.06527789550472063,0.6142395852277882,0.09042230601626908],"n":32,"mean_diff":-42.42272491681662},{"params":[0.00013193181331650167,0.37360609431075664,0.41319577712309397,0.971025548676854,0.0888146800065149],"n":32,"mean_diff":-0.603608854693146},{"params":[0.028309126726290018,0.10747843149820024,0.49113514523188373,0.899709811471651,0.08517621825103584],"n":32,"mean_diff":-0.8833630384077864},{"params":[0.0032134205686251485,0.1716542792561386,0.14243489989680433,0.71339142099628,0.088713224462929],"n":32,"mean_diff":-0.6355561108045791},{"params":[0.004808332164140947,0.5588038838788426,0.7654677092369366,0.9293718871428261,0.09665897704754438],"n":32,"mean_diff":-0.20354179342007406},{"params":[0.0001307570934707267,0.6837649018152778,0.23368706117482171,0.9173633050715297,0.08652019901966405],"n":32,"mean_diff":-0.7726272489704016},{"params":[0.0657672980309998,0.03876896403476893,0.15906637450782046,0.8738135941421052,0.07538796672944886],"n":32,"mean_diff":-1.8279331663260034},{"params":[0.022067098511073822,0.036131462091221644,0.6308694485419194,0.7752743141191399,0.09481595380686317],"n":32,"mean_diff":-0.27399270823018007},{"params":[0.01399919056729637,0.4008890323161831,0.7955134237525849,0.9338828773829058,0.06292351837142934],"n":32,"mean_diff":-3.5672764230895044},{"params":[0.01773612431468076,0.2610623983762037,0.7263405064628614,0.9607730618609308,0.08982663766367606],"n":32,"mean_diff":-0.5636922470370163},{"params":[0.004087143779819516,0.31941211996259455,0.44361199164665854,0.9901766431472439,0.09932497692435607],"n":32,"mean_diff":-0.055901582964949625},{"params":[0.004693711110098841,0.23021983214419406,0.7939378589072921,0.9306245395768313,0.09909905379455014],"n":32,"mean_diff":-0.07172986250236946},{"params":[0.0012384912744496895,0.4459786328330648,0.5250564815352534,0.6586266184849531,0.09383061066594331],"n":32,"mean_diff":-0.30850677577081775},{"params":[0.0037985040171680095,0.6316592199403029,1.081185978900748,0.8636884306330426,0.07319128370801736],"n":32,"mean_diff":-2.056916336562722},{"params":[0.0008871094495858246,0.003182871076269078,0.08179145698896906,0.9415623886679638,0.09392378377608558],"n":32,"mean_diff":-0.2860614245749371},{"params":[0.0006091752708500571,0.31508713477363415,0.1997863324306293,0.882487730914461,0.07435806399133858],"n":32,"mean_diff":-1.888590146142679},{"params":[0.008425981321947823,0.5126519948304017,0.6597228765300875,0.8042838270607502,0.09546986800178765],"n":32,"mean_diff":-0.23489877117638258},{"params":[0.0003158679030634766,0.11371098025540438,0.44296295700804084,0.9209376342835834,0.09105425533956496],"n":32,"mean_diff":-0.46020990262577044},{"params":[0.004931463600033396,0.012354824826138922,0.47309873718041684,0.6787397176725151,0.09080118375726802],"n":32,"mean_diff":-0.49034332084274723},{"params":[0.0047584867514813825,0.3271188763878116,0.612591462494004,0.9441759874081168,0.09952984596242044],"n":32,"mean_diff":-0.059616089238321734},{"params":[0.0014184150850557466,0.8452289268179005,0.6592955657814115,0.9199884590945353,0.09754386894430256],"n":32,"mean_diff":-0.1378446111637146},{"params":[0.01223173093947762,0.07286969100352603,0.508724754953951,0.8151490834670532,0.09851291166659693],"n":32,"mean_diff":-0.11462858429335654},{"params":[0.00027182007978245753,0.19552821021483058,0.4412959107956209,0.9016926673034353,0.07901801056742673],"n":32,"mean_diff":-1.4035704684964792},{"params":[0.0034634833455994395,0.07743915586967276,0.80318674297075,0.7709077138406417,0.08939049216462454],"n":32,"mean_diff":-0.584543105025567},{"params":[0.0014492030293797454,0.13930308529132507,0.38945987093722356,0.9188830512497382,0.09187415074346575],"n":32,"mean_diff":-0.43868755514543345},{"params":[0.029242862520925946,0.2936431909518232,0.7011107021059149,0.8837964303358619,0.09686938012679676],"n":32,"mean_diff":-0.2619071719543449},{"params":[0.01651325169236468,0.329488506600612,1.2685444207474026,0.9499778590163347,0.08034609163198206],"n":32,"mean_diff":-1.3581528226953754},{"params":[0.004744090667713413,0.3718842607740728,0.3255180465995983,0.8235178568662744,0.0920247474894184],"n":32,"mean_diff":-0.4237522531847855},{"params":[0.0013512147358226818,0.4745188968882564,0.5789413918816615,0.7791197264267,0.08030333706819369],"n":32,"mean_diff":-1.2990771103069765},{"params":[0.015202903749531529,0.04714281393612947,0.6577119164186964,0.8122012645570446,0.0929321277379385],"n":32,"mean_diff":-0.3997540626388485},{"params":[0.007744779848626802,0.13951262089258398,0.5143203688868447,0.8791069620974077,0.07450993804562815],"n":32,"mean_diff":-1.9166517970117969},{"params":[0.003986698437538981,0.5043490679548989,0.8155401184587803,0.6924894149767153,0.07522560243241343],"n":32,"mean_diff":-1.8498567247419668},{"params":[0.006746367849312181,0.24895204377035635,0.3348838269781775,0.9967255899163009,0.0946750512476979],"n":32,"mean_diff":-0.27645409302798996},{"params":[0.0011553508625761165,0.2862628866281993,0.37277999912154025,0.9093204539366111,0.0982062094961861],"n":32,"mean_diff":-0.11332004052170319},{"params":[0.01709968835256276,0.14508591284218358,0.7258640710544304,0.9486475018434105,0.09879054035247163],"n":32,"mean_diff":-0.08330744643395782},{"params":[0.006272534215407199,0.44923428890857886,0.7402295550668768,0.9985689006936609,0.08557095120728475],"n":32,"mean_diff":-0.8989261241131832},{"params":[0.0022663059614189546,0.5459875271517739,0.6504116283706732,0.9530824531069519,0.09276077859276458],"n":32,"mean_diff":-0.37579346660201907},{"params":[0.005833874810675725,0.17328592516261307,0.7083077567183216,0.8824535203776194,0.09465700636529861],"n":32,"mean_diff":-0.28354351039451764},{"params":[0.007033237637421029,0.21640504567708363,0.48140989804923634,0.876219193594605,0.09339064679092429],"n":32,"mean_diff":-0.3751154500065166},{"params":[0.011366697722696334,0.06493693426638693,0.3733797630880522,0.7304815667537314,0.08745635234935273],"n":32,"mean_diff":-0.7417791103248152},{"params":[0.0061291669107727135,0.23522713028057685,0.7164178176542406,0.8821864119932676,0.09750232729513049],"n":32,"mean_diff":-0.1706811885967845},{"params":[0.008158608342296156,0.41182523901727364,0.3033506281100971,0.9096914434278551,0.08822910656527296],"n":32,"mean_diff":-0.6945118506830124},{"params":[0.007154283133401268,0.27440134349029344,0.471346099780539,0.8169023834777102,0.0958444090022107],"n":32,"mean_diff":-0.24761499113698981},{"params":[0.019126804255860663,0.7564059257336361,0.8073216898180933,0.9589137471857483,0.09928921397198653],"n":32,"mean_diff":-0.29790327940795436},{"params":[0.006616328473995802,0.3479304425993357,0.6278349148217992,0.9449084027249091,0.06965130504400446],"n":32,"mean_diff":-2.4776718414406886},{"params":[0.012393893780600237,0.07662956779808633,0.31088320233114003,0.7987414915032629,0.0868578129022354],"n":32,"mean_diff":-0.7836974460430017},{"params":[0.0026432489049798965,0.016236686930662936,0.5646613246188771,0.8278024453707374,0.09559872130124358],"n":32,"mean_diff":-0.1914870421496353},{"params":[0.00793548156396931,0.6405514386828515,0.8461294820320274,0.7986668011413167,0.09992354926563406],"n":32,"mean_diff":-0.02870896290452052},{"params":[0.005752683395130221,0.7708170594332094,0.6012617176442623,0.8193104236273737,0.09709976379620033],"n":32,"mean_diff":-0.20710895443159671},{"params":[0.006410565186464529,0.19029843694594506,0.4836529159554057,0.8491845858420521,0.09662485616751025],"n":32,"mean_diff":-0.20832856918091913},{"params":[0.011686575344894931,0.4375780768245756,0.8971236644376129,0.7862432974191649,0.09974640592656096],"n":32,"mean_diff":-0.031546500513750075},{"params":[0.0057386127054529544,0.11838524999834021,0.2350493525724621,0.7511756538298181,0.09961936334766822],"n":32,"mean_diff":-0.014539103630900385},{"params":[0.00676885150584075,0.26893439314542167,1.042107818546667,0.9936378777101973,0.09968726133188521],"n":32,"mean_diff":-0.0705989056988745},{"params":[0.0087773768007637,0.18696358246912004,0.52515289935989,0.9242565782132638,0.09404646270703937],"n":32,"mean_diff":-0.32245990833930804},{"params":[0.016058877355295896,0.0695046483445425,0.6480579215130183,0.8276761492243259,0.0974557924007859],"n":32,"mean_diff":-0.18566950841705143},{"params":[0.0058235129011214755,0.5476183081891932,0.514996634379759,0.965367486720973,0.09268517855866606],"n":32,"mean_diff":-0.392964034583537},{"params":[0.0037423820606363773,0.43201038915236595,0.580949298539206,0.7286059133229473,0.09682536417513929],"n":32,"mean_diff":-0.18200968275107599},{"params":[0.014096931208658528,0.26482657963251593,0.25882216862703233,0.6361739607877956,0.0892126491323331],"n":32,"mean_diff":-0.6479327742068417},{"params":[0.01096033282128566,0.4837722987610825,0.5472110282288436,0.6798318449607145,0.08144138026548911],"n":32,"mean_diff":-1.2211033272738003},{"params":[0.014876768104986613,0.13170828845030647,0.5620553435486425,0.7672535985616777,0.09014641381254535],"n":32,"mean_diff":-0.5819959368241996},{"params":[0.005726510370462273,0.8369881381621467,0.578543566312262,0.8544149188087634,0.09558697787243166],"n":32,"mean_diff":-0.23686188468264646},{"params":[0.006212536119167909,0.38351218102780527,0.7580318630231129,0.8778978347107046,0.09555880849645086],"n":32,"mean_diff":-0.22234602932609882},{"params":[0.006741398288895652,0.23541446483676842,0.23362339450431646,0.7644234206096572,0.0912848623450273],"n":32,"mean_diff":-0.4653806840218824},{"params":[0.012975112121209772,0.06415986268829574,0.5484600172449501,0.5708891225659968,0.088573574576614],"n":32,"mean_diff":-0.6708470925066781},{"params":[0.02062860170549721,0.2879209722305774,0.43059544366082475,0.784801769882181,0.09489132716186556],"n":32,"mean_diff":-0.2618708120629716},{"params":[0.002432077183213929,0.5900231828886857,0.7709531118006788,0.7090255314975712,0.09406413967116209],"n":32,"mean_diff":-0.30573449112259965},{"params":[0.012995041265154442,0.7978566677848523,1.1222535203408452,0.8921858136807892,0.08039681953863193],"n":32,"mean_diff":-1.4353683592716848},{"params":[0.0021875664244768024,0.7719190722545717,0.8191187603870949,0.9968804790456143,0.09654277265699245],"n":32,"mean_diff":-0.2010645705842098},{"params":[0.002636231169527014,0.3055907678855642,0.7217404535642657,0.6765020345181111,0.09819283416320042],"n":32,"mean_diff":-0.09696001294132728},{"params":[0.003878557857402405,0.4896098616932164,0.4521306446785178,0.8393667454485335,0.09442688129344877],"n":32,"mean_diff":-0.2981065174659001},{"params":[0.016800428051053487,0.4029043178371099,0.6867964127121897,0.7179109318056097,0.0977807469804458],"n":32,"mean_diff":-0.17154842661370573},{"params":[0.007372661862764812,0.1859680409199851,0.5746184163146348,0.8784972617446104,0.09264451332393933],"n":32,"mean_diff":-0.40802306635361774},{"params":[0.006846715606139474,0.7730813949999753,0.595744681936738,0.7197460219754759,0.09596438067069245],"n":32,"mean_diff":-0.25313043711634364},{"params":[0.019467396716516417,0.5281436074152674,0.6913778055459106,0.6972126969812348,0.09074205493824729],"n":32,"mean_diff":-0.6225946599400718},{"params":[0.0032908438745465098,0.5932296459998202,0.7054027486091351,0.8963191726361306,0.09392304948241365],"n":32,"mean_diff":-0.33661335146598503},{"params":[0.004248533426622292,0.7345434524221838,0.8467202610642327,0.7660362813153982,0.09988620511502658],"n":32,"mean_diff":-0.041794212532071384},{"params":[0.0042956108857110965,0.4971879310467425,0.5578848868206515,0.7527086210605255,0.09206468155369613],"n":32,"mean_diff":-0.45964009167352593},{"params":[0.010940425984872694,0.6611560309840345,0.8853959024971723,0.770938043298866,0.09530574710411562],"n":32,"mean_diff":-0.2612728439374319},{"params":[0.0031073076559240778,0.635849615908038,0.6829808484032474,0.8441193158520486,0.09874763800175586],"n":32,"mean_diff":-0.10483672727199966},{"params":[0.001140009674462597,0.3109935272243496,0.6720147638279773,0.8721232123579831,0.09325861876444533],"n":32,"mean_diff":-0.34964850729991603},{"params":[0.0030390015244128755,0.647089735552133,1.1457303248825743,0.8290215464856099,0.09916189933665166],"n":32,"mean_diff":-0.08863109922797818},{"params":[0.01842284897632308,0.5965752278486849,0.6126320184307057,0.9731509596996059,0.09852110088243748],"n":32,"mean_diff":-0.21385960179820884},{"params":[0.010239033437280854,0.3516689758115889,0.8137423318236812,0.7693638066132777,0.09570191012856535],"n":32,"mean_diff":-0.22736316979169757},{"params":[0.002411254658075923,0.9175492850499057,0.6059867131599542,0.633815983743952,0.09614622249609787],"n":32,"mean_diff":-0.23818249583802675},{"params":[0.010051221439651568,0.7597163217014193,0.6737140154557837,0.5792616816515737,0.09668864434376515],"n":32,"mean_diff":-0.1952974568260739},{"params":[0.018825304450905366,0.5769046999149178,0.601064929392984,0.7627623227440449,0.08912954956666852],"n":32,"mean_diff":-0.7309391884250296},{"params":[0.043350670299547,0.4525661710921523,0.7271438295935625,0.8054718984265796,0.09241219790373309],"n":32,"mean_diff":-0.8421640807986233},{"params":[0.007061583117339843,0.4370575439255041,0.8605582933722142,0.9506638912813831,0.09712769222816206],"n":32,"mean_diff":-0.2261740143388895},{"params":[0.007141458885119891,0.8003348506310204,0.9005445552493805,0.8285859834507582,0.09832917048122118],"n":32,"mean_diff":-0.11368332966442729},{"params":[0.005593642572550611,0.7067270998985558,0.7310436201179181,0.7645654890438147,0.09542230746747478],"n":32,"mean_diff":-0.2389315791019424},{"params":[0.008571960987434249,0.43392926525944264,0.8395067723402797,0.8486643579046508,0.09957720205297943],"n":32,"mean_diff":-0.06716400302316394},{"params":[0.002810561565362283,0.6994588772320917,0.8098889334460952,0.8065230004967532,0.098905975060002],"n":32,"mean_diff":-0.10179410866406258},{"params":[0.0020652392010316895,0.7898479860115593,0.8170689087856693,0.9074217672666369,0.09732116684164561],"n":32,"mean_diff":-0.15429463017050438},{"params":[0.012659646117986952,0.7347832791322402,0.8676283438594268,0.8104177892217088,0.09819477387986722],"n":32,"mean_diff":-0.19843522466250896},{"params":[0.005891704934176835,0.6313551893233009,1.001941402235187,0.8720937986863206,0.09245408601745114],"n":32,"mean_diff":-0.4417127177914999},{"params":[0.006400529759120577,0.8005762919038978,1.4095468440126706,0.6905515901818938,0.09060155852770997],"n":32,"mean_diff":-0.5179973851991342},{"params":[0.006180571528497905,0.41048988944571546,0.6737632622085914,0.7845178213701496,0.0967570486461327],"n":32,"mean_diff":-0.19745394722081677},{"params":[0.004747642144465173,0.3710875342043828,0.6029829943347897,0.7697977065038848,0.09993155273928457],"n":32,"mean_diff":-0.04441025391756348},{"params":[0.003439384314750241,0.40825807049240886,1.026298726727932,0.7795315955803541,0.08604851862508539],"n":32,"mean_diff":-0.8555893888547281},{"params":[0.002091968564037202,0.7742031668533247,0.840157700238578,0.7499945946195841,0.09735291923333059],"n":32,"mean_diff":-0.15099549061008233},{"params":[0.004622303617898729,0.7393699319130638,0.9587024526401859,0.8960313780373452,0.09028203492544079],"n":32,"mean_diff":-0.5693704489430402},{"params":[0.007870061039842526,0.7343227195068329,0.9958557443721485,0.7582901182995684,0.09616990640909345],"n":32,"mean_diff":-0.2379146041514293},{"params":[0.006263031144753891,0.6881511790274226,0.7463897546830132,0.8547650220477083,0.0968577695155365],"n":32,"mean_diff":-0.2200752719071719},{"params":[0.0017675917691957305,0.7338383255804986,1.2374700593624848,0.743889451246856,0.0974301024304252],"n":32,"mean_diff":-0.1550516565176654},{"params":[0.004055810512052039,0.9325226232122068,1.0520503365643594,0.7657401790563869,0.0942297782065769],"n":32,"mean_diff":-0.3192916412311142},{"params":[0.020192956946684618,0.4291095545170911,0.8260228417958174,0.8825519795929877,0.09442009613195802],"n":32,"mean_diff":-0.378433557308421},{"params":[0.005381467438568874,0.6237714608164202,0.8407899670754955,0.6626802213910002,0.09960899480848566],"n":32,"mean_diff":-0.07366823300148084},{"params":[0.007523118577289789,0.7914339396380671,0.868955015990398,0.7136891428832337,0.09959353766012727],"n":32,"mean_diff":-0.06134885704494408},{"params":[0.0042570572996331706,0.5935112898003327,1.0251041651470962,0.8070684867225858,0.09410797297655044],"n":32,"mean_diff":-0.30934566735291114},{"params":[0.0018367220821909162,0.8688001959232858,0.9125942800754798,0.7783825708521005,0.0933643087695617],"n":32,"mean_diff":-0.338778074166628},{"params":[0.0017873909184314295,0.6289894107353484,0.8006067296631239,0.8474982019756623,0.09994429740746599],"n":32,"mean_diff":-0.014066744646287432},{"params":[0.0016139032895362867,0.34549900529340416,0.6810700838741613,0.8016518342573099,0.09535141389615277],"n":32,"mean_diff":-0.19344074894223517},{"params":[0.004494327738394883,0.5663077745273513,0.8248473158615115,0.8385463803353876,0.09955532454751481],"n":32,"mean_diff":-0.055513651668027464},{"params":[0.005735704572177123,0.3485938852177096,0.5187314487135958,0.8161440179001771,0.09501776701628316],"n":32,"mean_diff":-0.2695470749073188},{"params":[0.0051209264018642064,0.6290122020179136,0.9174245517859239,0.7212013527736769,0.09276971437683064],"n":32,"mean_diff":-0.4223189057295773},{"params":[0.0023241810372219797,0.3626766323190239,0.7159400871834637,0.7270295249298523,0.09946147272819553],"n":32,"mean_diff":-0.02921022701380771},{"params":[0.0017873909184314295,0.6289894107353484,0.8006067296631239,0.8474982019756623,0.09994429740746599],"n":256,"mean_diff":-0.01716144308883072},{"params":[0.0057386127054529544,0.11838524999834021,0.2350493525724621,0.7511756538298181,0.09961936334766822],"n":256,"mean_diff":-0.051101532517776826},{"params":[0.0005247008298733385,0.128285687015387,0.5119244879599323,0.8358484570264626,0.09945939250585377],"n":256,"mean_diff":-0.05777924052701655}],"best_params":{"a1":0.0017873909184314295,"b0":0.6289894107353484,"b1":0.8006067296631239,"d":0.8474982019756623,"hiCap":0.09994429740746599},"code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {AMMStrategyBase} from \"./AMMStrategyBase.sol\";\nimport {TradeInfo} from \"./IAMMStrategy.sol\";\n\ncontract Strategy is AMMStrategyBase {\n    uint256 constant ARB_A = 1787390918431430;\n    uint256 constant ARB_B0 = 628989410735348480;\n    uint256 constant ARB_B1 = 800606729663123840;\n    uint256 constant ARB_D = 847498201975662336;\n    uint256 constant ARB_CAP = 99944297407466000;\n    uint256 constant ELAPSED_CAP = 8;\n    uint256 constant SIGNAL_THRESHOLD = WAD / 650;\n    uint256 constant DIR_DECAY = 750000000000000000;\n    uint256 constant ACT_DECAY = 530000000000000000;\n    uint256 constant SIZE_DECAY = 530000000000000000;\n    uint256 constant TOX_DECAY = 910000000000000000;\n    uint256 constant SIGMA_DECAY = 690000000000000000;\n    uint256 constant LAMBDA_DECAY = 990000000000000000;\n    uint256 constant SIZE_BLEND_DECAY = 828000000000000000;\n    uint256 constant TOX_BLEND_DECAY = 51000000000000000;\n    uint256 constant ACT_BLEND_DECAY = 985000000000000000;\n    uint256 constant PHAT_ALPHA = 270000000000000000;\n    uint256 constant PHAT_ALPHA_RETAIL = 60000000000000000;\n    uint256 constant PHAT_ALPHA_SAME = 120000000000000000;\n    uint256 constant REVERT_U = 0;\n    uint256 constant DIR_IMPACT_MULT = 4;\n    uint256 constant GATE_SIGMA_MULT = 7200000000000000000;\n    uint256 constant MIN_GATE = 30000000000000000;\n    uint256 constant TRADE_TOX_BOOST = 3500 * BPS;\n    uint256 constant STALE_ATTRACT_FRAC = 1050000000000000000;\n    uint256 constant RET_CAP = WAD / 35;\n    uint256 constant TOX_CAP = WAD / 5;\n    uint256 constant TRADE_RATIO_CAP = WAD / 5;\n    uint256 constant LAMBDA_CAP = 1820000000000000000;\n    uint256 constant STEP_COUNT_CAP = 64;\n    uint256 constant BASE_FEE = 4 * BPS;\n    uint256 constant SIGMA_COEF = 200000000000000000;\n    uint256 constant LAMBDA_COEF = 12 * BPS;\n    uint256 constant FLOW_SIZE_COEF = 4842 * BPS;\n    uint256 constant TOX_COEF = 300 * BPS;\n    uint256 constant TOX_QUAD_COEF = 15000 * BPS;\n    uint256 constant ACT_COEF = 91843 * BPS;\n    uint256 constant DIR_COEF = 20 * BPS;\n    uint256 constant DIR_TOX_COEF = 100 * BPS;\n    uint256 constant STALE_DIR_COEF = 6850 * BPS;\n    uint256 constant SIGMA_TOX_COEF = 500 * BPS;\n    uint256 constant TAIL_KNEE = 600 * BPS;\n    uint256 constant TAIL_SLOPE_PROTECT = 930000000000000000;\n    uint256 constant TAIL_SLOPE_ATTRACT = 850000000000000000;\n\n    function afterInitialize(uint256 initialX, uint256 initialY) external override returns (uint256, uint256) {\n        slots[0] = BASE_FEE; slots[1] = BASE_FEE; slots[3] = WAD; \n        slots[5] = initialX > 0 ? wdiv(initialY, initialX) : 100 * WAD;\n        slots[6] = 950000000000000; slots[7] = 800000000000000000; slots[8] = 2000000000000000;\n        slots[13] = 902500000000; slots[14] = slots[5]; \n        return (BASE_FEE, BASE_FEE);\n    }\n\n    function afterSwap(TradeInfo calldata trade) external override returns (uint256, uint256) {\n        uint256 prevBidFee = slots[0]; uint256 prevAskFee = slots[1]; uint256 lastTs = uint64(slots[2]);\n        uint256 dirState = slots[3]; uint256 actEma = slots[4]; uint256 pHat = slots[5];\n        uint256 sigmaHat = slots[6]; uint256 lambdaHat = slots[7]; uint256 sizeHat = slots[8];\n        uint256 toxEma = slots[9]; uint256 stepTradeCount = slots[10];\n\n        uint256 sigmaForFast = sigmaHat;\n        uint256 fastHat = slots[14];\n        uint256 uncertainty = slots[13];\n        uint256 silent = trade.timestamp > lastTs ? trade.timestamp - lastTs : 0;\n        bool isNewStep = trade.timestamp > lastTs;\n        if (isNewStep) {\n            uint256 elapsedRaw = trade.timestamp - lastTs;\n            uint256 elapsed = elapsedRaw > ELAPSED_CAP ? ELAPSED_CAP : elapsedRaw;\n            dirState = _decayCentered(dirState, DIR_DECAY, elapsed);\n            actEma = wmul(actEma, _powWad(ACT_DECAY, elapsed));\n            sizeHat = wmul(sizeHat, _powWad(SIZE_DECAY, elapsed));\n            toxEma = wmul(toxEma, _powWad(TOX_DECAY, elapsed));\n            if (stepTradeCount > 0 && elapsedRaw > 0) {\n                uint256 lambdaInst = (stepTradeCount * WAD) / elapsedRaw;\n                if (lambdaInst > LAMBDA_CAP) lambdaInst = LAMBDA_CAP;\n                lambdaHat = wmul(lambdaHat, LAMBDA_DECAY) + wmul(lambdaInst, WAD - LAMBDA_DECAY);\n            }\n            uncertainty += wmul(sigmaForFast, sigmaForFast) * elapsedRaw;\n            if (uncertainty > 100000000000000) uncertainty = 100000000000000;\n            stepTradeCount = 0;\n        }\n\n        bool firstInStep = stepTradeCount == 0;\n        uint256 spot = trade.reserveX > 0 ? wdiv(trade.reserveY, trade.reserveX) : pHat;\n        if (pHat == 0) pHat = spot;\n\n        uint256 feeUsed = trade.isBuy ? prevBidFee : prevAskFee;\n        uint256 gamma = feeUsed < WAD ? WAD - feeUsed : 0;\n        uint256 pImplied;\n        if (gamma == 0) { pImplied = spot; }\n        else { pImplied = trade.isBuy ? wmul(spot, gamma) : wdiv(spot, gamma); }\n\n        // S: infer a no-trade interval center from the last post-trade spot.\n        uint256 silenceScale = WAD;\n        if (firstInStep && silent > 1) {\n            uint256 g = silent - 1;\n            if (g > 1) g = 1;\n            uint256 w = WAD - _powWad(800000000000000000, g);\n            uint256 s = slots[2] >> 64;\n            if (s == 0) s = pHat;\n            uint256 c = (wmul(s, WAD - prevBidFee) + wdiv(s, WAD - prevAskFee)) / 2;\n            if (c >= pHat) pHat += wmul(w, c - pHat);\n            else pHat -= wmul(w, pHat - c);\n            silenceScale = WAD - wmul(300000000000000000, w);\n        }\n\n        {\n            uint256 ret = pHat > 0 ? wdiv(absDiff(pImplied, pHat), pHat) : 0;\n            uint256 alpha = firstInStep ? PHAT_ALPHA : PHAT_ALPHA_RETAIL;\n            uint256 prePhat = pHat;\n            bool secondPrint = !firstInStep && stepTradeCount == 1;\n            bool sameDir = false; bool oppDir = false;\n            if (secondPrint) {\n                bool up2 = pImplied >= pHat;\n                uint256 d1 = slots[12];\n                if (d1 != 0) { sameDir = (d1 == 1) == up2; oppDir = !sameDir; }\n                if (sameDir) alpha = PHAT_ALPHA_SAME;\n            }\n            if (firstInStep) { slots[12] = pImplied >= pHat ? 1 : 2; }\n            uint256 adaptiveGate = wmul(sigmaHat, GATE_SIGMA_MULT);\n            if (adaptiveGate < MIN_GATE) adaptiveGate = MIN_GATE;\n            alpha = wmul(alpha, silenceScale);\n            adaptiveGate = wmul(adaptiveGate, silenceScale);\n            if (ret <= adaptiveGate) { pHat = wmul(pHat, WAD - alpha) + wmul(pImplied, alpha); }\n            if (oppDir && REVERT_U > 0) {\n                uint256 pre = slots[11];\n                if (pre > pHat) pHat = pHat + wmul(pre - pHat, REVERT_U);\n                else pHat = pHat - wmul(pHat - pre, REVERT_U);\n            }\n            if (firstInStep) {\n                if (ret > RET_CAP) ret = RET_CAP;\n                sigmaHat = wmul(sigmaHat, SIGMA_DECAY) + wmul(ret, WAD - SIGMA_DECAY);\n            }\n        }\n\n        // Interior retail routing equalizes fee-adjusted marginal prices.\n        // Subsequent trades in a step cannot be the initial arbitrage trade.\n        if (!firstInStep && feeUsed > 30 * BPS && gamma > 0) {\n            uint256 normalSpot = trade.isBuy\n                ? wdiv(wmul(spot, gamma), WAD - 30 * BPS)\n                : wdiv(wmul(spot, WAD - 30 * BPS), gamma);\n            pHat = wmul(pHat, 90 * WAD / 100) + wmul(normalSpot, 10 * WAD / 100);\n        }\n\n        {\n            uint256 ret = fastHat > 0 ? wdiv(absDiff(pImplied, fastHat), fastHat) : 0;\n            uint256 alpha;\n            if (firstInStep) {\n                uint256 processSigma = sigmaForFast;\n                uint256 obsVar = uncertainty + wmul(processSigma, processSigma);\n                uint256 probArb;\n                uint256 z2 = wdiv(wmul(ret, ret), obsVar);\n                uint256 density = _powWad(wdiv(WAD, WAD + z2 / 16), 8);\n                uint256 sigmaObs = _isqrt(obsVar * WAD);\n                uint256 odds = wmul(density, wdiv(6700000000000000, sigmaObs));\n                bool arbFlag = ret <= wmul(sigmaForFast, 1220000000000000000);\n                uint256 prior = arbFlag ? 650000000000000000 : 400000000000000000;\n                uint256 tr = trade.reserveY > 0 ? wdiv(trade.amountY, trade.reserveY) : 0;\n                if (tr > 3000000000000000) prior = wmul(prior, 6 * WAD / 10);\n                if (silent > 1) prior = wmul(prior, 8 * WAD / 10);\n                odds = wmul(odds, wdiv(prior, WAD - prior));\n                probArb = wdiv(odds, WAD + odds);\n                // Pack classifier and first-print volatility scale in one free slot.\n                uint256 arbScale = wmul(sigmaHat, _isqrt((1 + silent) * WAD * WAD));\n                slots[16] = probArb | (arbScale << 64);\n                alpha = wmul(probArb, 600000000000000000) + wmul(WAD - probArb, 80000000000000000);\n                slots[15] = pImplied >= fastHat ? 1 : 2;\n                uncertainty = wmul(uncertainty, WAD - alpha);\n            } else {\n                if ((slots[15] == 1) == (pImplied >= fastHat)) alpha = PHAT_ALPHA_RETAIL;\n            }\n            uint256 gate = wmul(sigmaHat, GATE_SIGMA_MULT);\n            if (gate < MIN_GATE) gate = MIN_GATE;\n            if (ret <= gate) fastHat = wmul(fastHat, WAD - alpha) + wmul(pImplied, alpha);\n            slots[13] = uncertainty;\n        }\n\n        if (!firstInStep && feeUsed > 30 * BPS && gamma > 0) {\n            uint256 normalObs = trade.isBuy\n                ? wdiv(wmul(spot, gamma), WAD - 30 * BPS)\n                : wdiv(wmul(spot, WAD - 30 * BPS), gamma);\n            if ((slots[15] == 1) == (normalObs >= fastHat)) {\n                fastHat = wmul(fastHat, 9 * WAD / 10) + wmul(normalObs, WAD / 10);\n            }\n        }\n        slots[14] = fastHat;\n        uint256 tradeRatio = trade.reserveY > 0 ? wdiv(trade.amountY, trade.reserveY) : 0;\n        if (tradeRatio > TRADE_RATIO_CAP) tradeRatio = TRADE_RATIO_CAP;\n\n        if (tradeRatio > SIGNAL_THRESHOLD) {\n            uint256 push = tradeRatio * DIR_IMPACT_MULT;\n            if (push > WAD / 4) push = WAD / 4;\n            if (trade.isBuy) {\n                dirState = dirState + push;\n                if (dirState > 2 * WAD) dirState = 2 * WAD;\n            } else {\n                dirState = dirState > push ? dirState - push : 0;\n            }\n            actEma = wmul(actEma, ACT_BLEND_DECAY) + wmul(tradeRatio, WAD - ACT_BLEND_DECAY);\n            sizeHat = wmul(sizeHat, SIZE_BLEND_DECAY) + wmul(tradeRatio, WAD - SIZE_BLEND_DECAY);\n            if (sizeHat > WAD) sizeHat = WAD;\n        }\n\n        uint256 tox = pHat > 0 ? wdiv(absDiff(spot, pHat), pHat) : 0;\n        if (tox > TOX_CAP) tox = TOX_CAP;\n        toxEma = wmul(toxEma, TOX_BLEND_DECAY) + wmul(tox, WAD - TOX_BLEND_DECAY);\n        uint256 toxSignal = toxEma;\n\n        stepTradeCount = stepTradeCount + 1;\n        if (stepTradeCount > STEP_COUNT_CAP) stepTradeCount = STEP_COUNT_CAP;\n\n        uint256 flowSize = wmul(lambdaHat, sizeHat);\n        uint256 fBase = BASE_FEE + wmul(SIGMA_COEF, sigmaHat) + wmul(LAMBDA_COEF, lambdaHat) + wmul(FLOW_SIZE_COEF, flowSize);\n        uint256 fMid = fBase + wmul(TOX_COEF, toxSignal) + wmul(TOX_QUAD_COEF, wmul(toxSignal, toxSignal)) + wmul(ACT_COEF, actEma);\n        fMid = fMid + wmul(SIGMA_TOX_COEF, wmul(sigmaHat, toxSignal));\n\n        uint256 dirDev; bool sellPressure;\n        if (dirState >= WAD) { dirDev = dirState - WAD; sellPressure = true; }\n        else { dirDev = WAD - dirState; sellPressure = false; }\n\n        uint256 skew = wmul(DIR_COEF, dirDev) + wmul(DIR_TOX_COEF, wmul(dirDev, toxSignal));\n        uint256 bidFee; uint256 askFee;\n        if (sellPressure) {\n            bidFee = fMid + skew;\n            askFee = fMid > skew ? fMid - skew : 0;\n        } else {\n            askFee = fMid + skew;\n            bidFee = fMid > skew ? fMid - skew : 0;\n        }\n\n        {\n            uint256 staleHat = wmul(pHat, 700000000000000000) + wmul(fastHat, 300000000000000000);\n            uint256 staleTox = wdiv(absDiff(spot, staleHat), staleHat);\n            if (staleTox > TOX_CAP) staleTox = TOX_CAP;\n            uint256 staleShift = wmul(STALE_DIR_COEF, staleTox);\n            uint256 attractShift = wmul(staleShift, STALE_ATTRACT_FRAC);\n            if (spot >= staleHat) {\n                bidFee = bidFee + staleShift;\n                askFee = askFee > attractShift ? askFee - attractShift : 0;\n            } else {\n                askFee = askFee + staleShift;\n                bidFee = bidFee > attractShift ? bidFee - attractShift : 0;\n            }\n        }\n\n        {\n            bool tradeAligned = (trade.isBuy && spot >= pHat) || (!trade.isBuy && spot < pHat);\n            if (tradeAligned) {\n                uint256 tradeBoost = wmul(TRADE_TOX_BOOST, tradeRatio);\n                if (!firstInStep && tradeBoost > 16 * BPS) tradeBoost = 16 * BPS;\n                if (trade.isBuy) { bidFee = bidFee + tradeBoost; }\n                else { askFee = askFee + tradeBoost; }\n            }\n        }\n\n        if (sellPressure) {\n            bidFee = clampFee(_compressTailWithSlope(bidFee, TAIL_SLOPE_PROTECT));\n            askFee = clampFee(_compressTailWithSlope(askFee, TAIL_SLOPE_ATTRACT));\n        } else {\n            askFee = clampFee(_compressTailWithSlope(askFee, TAIL_SLOPE_PROTECT));\n            bidFee = clampFee(_compressTailWithSlope(bidFee, TAIL_SLOPE_ATTRACT));\n        }\n\n        if (firstInStep) {\n            if (askFee > bidFee && bidFee > 30 * BPS) bidFee = 30 * BPS;\n            else if (bidFee > askFee && askFee > 30 * BPS) askFee = 30 * BPS;\n        }\n\n        if (bidFee > askFee && askFee > 36 * BPS) askFee = 36 * BPS;\n        else if (askFee > bidFee && bidFee > 36 * BPS) bidFee = 36 * BPS;\n\n        // Preserve STACK's attracting quote; add a decaying band-edge cushion\n        // only to its exposed (higher-fee) quote.\n        {\n            uint256 packedArb = slots[16];\n            uint256 premium = wmul(ARB_A, wmul(packedArb >> 64,\n                ARB_B0 + wmul(ARB_B1, uint64(packedArb))));\n            premium = wmul(premium, _powWad(ARB_D, stepTradeCount - 1));\n            if (bidFee >= askFee) {\n                bidFee = clampFee(bidFee + premium > ARB_CAP ? ARB_CAP : bidFee + premium);\n            } else {\n                askFee = clampFee(askFee + premium > ARB_CAP ? ARB_CAP : askFee + premium);\n            }\n        }\n        slots[0] = bidFee; slots[1] = askFee; slots[2] = (spot << 64) | trade.timestamp;\n        slots[3] = dirState; slots[4] = actEma; slots[5] = pHat;\n        slots[6] = sigmaHat; slots[7] = lambdaHat; slots[8] = sizeHat;\n        slots[9] = toxEma; slots[10] = stepTradeCount;\n\n        return (bidFee, askFee);\n    }\n\n    function _compressTailWithSlope(uint256 fee, uint256 slope) internal pure returns (uint256) {\n        if (fee <= TAIL_KNEE) return fee;\n        return TAIL_KNEE + wmul(fee - TAIL_KNEE, slope);\n    }\n\n    function _powWad(uint256 factor, uint256 exp) internal pure returns (uint256 result) {\n        result = WAD;\n        while (exp > 0) {\n            if (exp & 1 == 1) result = wmul(result, factor);\n            factor = wmul(factor, factor);\n            exp >>= 1;\n        }\n    }\n\n    function _decayCentered(uint256 centered, uint256 decayFactor, uint256 elapsed) internal pure returns (uint256) {\n        uint256 mul = _powWad(decayFactor, elapsed);\n        if (centered >= WAD) { return WAD + wmul(centered - WAD, mul); }\n        uint256 below = wmul(WAD - centered, mul);\n        return below < WAD ? WAD - below : 0;\n    }\n\n    // Floor square root: bit-length seed and seven Newton steps (all uint256).\n    function _isqrt(uint256 x) internal pure returns (uint256 r) {\n        if (x == 0) return 0;\n        unchecked {\n            uint256 y = x;\n            r = 1;\n            if (y >> 128 != 0) { y >>= 128; r <<= 64; }\n            if (y >> 64 != 0) { y >>= 64; r <<= 32; }\n            if (y >> 32 != 0) { y >>= 32; r <<= 16; }\n            if (y >> 16 != 0) { y >>= 16; r <<= 8; }\n            if (y >> 8 != 0) { y >>= 8; r <<= 4; }\n            if (y >> 4 != 0) { y >>= 4; r <<= 2; }\n            if (y >> 2 != 0) { r <<= 1; }\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            uint256 t = x / r;\n            return r < t ? r : t;\n        }\n    }\n\n    function getName() external pure override returns (string memory) { return \"STACK_ARB_CMA1\"; }\n}\n","sha256":"8274e4615c33bba86ebdaf44d8b1b2ba8895c2548fd52c85272453f0a5eae3ec","seeds_kind":"tuning","paired":{"n":512,"mean_diff":-0.024030512124604497,"se":0.007341628224760941,"worst":[{"seed":210020,"diff":-1.8040017088139848},{"seed":210401,"diff":-0.9519964003261521},{"seed":210168,"diff":-0.7124881705047983},{"seed":210342,"diff":-0.6938659415769166},{"seed":210272,"diff":-0.6682938187012155}]},"retail_edge_delta":{"mean":-0.121960624576537,"se":0.007312988999897048},"arb_edge_delta":{"mean":0.0979301124519322,"se":0.002529238391012772},"gas":{"max_ok":235618,"oog":0,"init":220950},"notes":["CMA-ES implemented with numpy; RNG seed 1; population 10, best 5 parents, full covariance, reflected unit-box bounds. Five free parameters: the five new ARB parameters only; all STACK coefficients frozen.","Search bounds: log10(a1) in [-4,0.6], b0 and b1 in [0,3], d in [0,1], total exposed-side hiCap in [0.005,0.1]. Constants converted to WAD with round(value*1e18).","At each first print, save STACK classifier probability and sigmaHat*sqrt(1+silent) packed in free slot 16. Add a1*scale*(b0+b1*probArbLast)*d^(prints since first) to the higher STACK fee, then cap the total at hiCap and clamp. Lower STACK fee untouched; equality chooses bid. Scale is frozen across later prints in the same step. The cap can reduce the exposed STACK fee.","CRN objective: mean paired edge delta on all seeds 200000..200031. Each candidate alone against VanillaStrategy, run_batch workers=8, split into 16-seed calls to bound memory. No negatives dropped. Top three rechecked on previously unused tuning block 201000..201255, then frozen before held-out 210000..210511 evaluated once. No seed >=5000000 used. seeds_kind follows the requested literal; paired reports the specified held-out block.","Search wall seconds=1380.542479; optimizer evaluations=190; plus three 256-seed rechecks. Log contains optimizer entries followed by three rechecks. sec_per_sim is winning recheck wall seconds/256 (8 workers, includes config/result handling and initial normalizer setup where applicable; excludes candidate compilation).","CH calibration on seeds 0..999: mean edge 525.5258821780834, exactly equal to the supplied reference. Initial single 1000-seed call was killed for memory before returning; complete check succeeded using 16-seed calls. Zero-surcharge, hiCap=0.1 variant matched STACK on all 32 CRN seeds (max absolute edge difference 0.0).","Simulator exposes total edge but not edge by flow. Arb edge reconstructed from each prior end-step spot and fee, constant k=initialX*initialY, next fair price, and the cited arbitrage sizing formulas; retail edge=total-arb. Reconstructed arb Y volume checked against simulator arb_volume_y to absolute tolerance 1e-3 for every held-out seed. A partial baseline attempt stopped on an overly tight 1e-5 assertion and was rerun without changing the frozen candidate or using holdout results for selection.","amm-match validate scratch/Frozen.sol passed. Gas covers the frozen candidate 256-seed recheck and 512-seed holdout; max_ok is afterSwap gas, init is afterInitialize gas. OOG=0; other callback failures=0. All search candidates were checked via gas_stats and those with any failures excluded.","Held-out mean edges: candidate=525.440434892252; STACK=525.464465404377. Paired SE uses sample SD/sqrt(512); worst lists all five smallest per-seed deltas.","No leaderboard submission made. This result does not establish the approximately +5 gain needed for top ten.","Maximum absolute arb Y-volume reconstruction discrepancy on the 512 paired seeds: 7.967033161548898e-05"]}