Skip to content

Instantly share code, notes, and snippets.

@andyfaff
Last active August 29, 2015 14:06
Show Gist options
  • Save andyfaff/24c96a3d5dbc7b0272b2 to your computer and use it in GitHub Desktop.
Save andyfaff/24c96a3d5dbc7b0272b2 to your computer and use it in GitHub Desktop.
scipy.optimize benchmarks for global optimizers.
Based on http://infinity77.net/global_optimization/index.html, and others.
http://infinity77.net/global_optimization/index.html
https://github.com/andyfaff/scipy/tree/go_benchmark
python -u benchmark_global_optimizers.py
success % nfev
Problem basin de anneal basin de anneal
AMGM 100.0 100.0 100.0 1111 995 4231
Ackley01 98.0 100.0 0.0 20522 3891 1172
Ackley02 100.0 100.0 1.3 15633 565 2790
Ackley03 0.7 100.0 0.0 3222 547 1477
Adjiman 61.3 100.0 86.0 3104 613 3334
Alpine01 100.0 100.0 2.0 40068 4121 927
Alpine02 54.7 100.0 100.0 2680 567 1213
BartelsConn 100.0 80.0 5.3 25288 799 1581
Beale 56.0 98.7 8.0 7028 2713 1963
BiggsExp02 87.3 100.0 2.7 3725 2299 1400
BiggsExp03 99.3 100.0 0.0 7276 6098 1421
BiggsExp04 94.0 100.0 0.0 15190 16849 1695
BiggsExp05 23.3 11.3 0.0 19243 11280 2338
Bird 57.3 98.0 0.0 2846 606 815
Bohachevsky 100.0 100.0 0.0 4573 2484 1040
BoxBetts 100.0 100.0 86.7 10148 5736 3722
Branin01 100.0 100.0 6.7 3274 709 1234
Branin02 8.0 32.7 0.0 2744 708 1073
Brent 100.0 100.0 9.3 1219 3947 1623
Brown 100.0 100.0 34.7 2570 2153 3542
Bukin02 100.0 100.0 100.0 2468 678 4870
Bukin04 100.0 100.0 79.3 22334 3287 4123
Bukin06 0.0 0.0 0.0 28190 3319 868
CarromTable 20.7 100.0 100.0 2859 744 4249
Chichinadze 13.3 99.3 0.0 3720 608 1200
Cigar 100.0 100.0 0.0 10838 2979 1430
Cola 47.3 22.0 0.0 63118 38626 689
Colville 100.0 100.0 4.0 36603 80207 1105
Corana 68.7 100.0 0.0 3242 3454 1127
CosineMixture 100.0 100.0 100.0 584 1063 4001
CrossInTray 12.7 100.0 100.0 2086 532 2817
CrossLegTable 3.3 6.7 9.3 29610 4897 846
CrownedCross 0.0 10.7 100.0 35479 4892 3475
Csendes 100.0 100.0 100.0 3192 824 4079
Cube 100.0 100.0 0.0 11413 3332 1717
Damavandi 0.7 0.7 0.0 2085 558 1456
DeVilliersGlasse 14.0 100.0 0.0 16965 20412 2230
DeVilliersGlasse 0.0 0.0 0.0 31157 26525 1654
Deb01 99.3 100.0 33.3 7175 1335 1332
Deb02 36.0 100.0 97.3 7089 918 2135
Decanomial 100.0 100.0 0.0 12762 2051 252
Deceptive 73.3 96.7 100.0 5987 1115 3873
DeckkersAarts 96.7 99.3 0.0 3968 654 1294
DeflectedCorruga 41.3 74.7 34.0 2686 997 1991
DixonPrice 100.0 100.0 1.3 4331 2620 1664
Dolan 100.0 100.0 0.0 55623 53601 983
DropWave 100.0 64.0 9.3 3065 1206 2980
Easom 46.7 100.0 0.0 10274 3978 1045
Eckerle4 22.0 96.0 0.0 1532 2266 314
EggCrate 12.0 100.0 0.7 2542 2449 928
EggHolder 4.7 15.3 100.0 2759 1115 942
ElAttarVidyasaga 28.0 94.0 0.0 4064 1119 2098
Exp2 82.7 100.0 2.7 3485 2293 1321
Exponential 100.0 100.0 28.7 2016 279 3398
FreudensteinRoth 42.7 90.7 0.0 6610 2584 1924
Gear 2.0 100.0 100.0 607 11388 3525
Giunta 55.3 100.0 100.0 3085 449 2475
GoldsteinPrice 98.7 99.3 0.0 5955 694 1693
Griewank 0.0 35.3 0.0 2186 2558 1153
Gulf 43.3 100.0 0.0 5195 9191 265
Hansen 90.0 99.3 0.0 4323 1273 744
Hartmann3 100.0 100.0 7.3 8743 703 3963
Hartmann6 100.0 54.7 0.0 18814 2460 4007
HelicalValley 100.0 100.0 0.0 9448 7919 834
HimmelBlau 100.0 100.0 0.0 3255 2512 1152
HolderTable 13.3 100.0 100.0 2565 680 4287
Holzman 96.7 0.0 100.0 609 60166 305
Hosaki 68.7 100.0 53.3 9123 455 4690
Infinity 100.0 100.0 100.0 3207 811 4084
JennrichSampson 92.7 100.0 0.0 13860 753 848
Judge 59.3 99.3 0.0 4104 655 1356
Katsuura 100.0 58.0 100.0 1920 2190 6198
Keane 100.0 100.0 100.0 2164 2481 3770
Kowalik 51.3 94.7 0.0 17359 6227 5556
Langermann 66.7 91.3 2.7 3950 731 3986
Leon 100.0 100.0 4.0 8478 2900 2165
Levy03 56.7 100.0 75.3 3390 2228 3682
Levy05 48.0 84.7 0.0 4305 1046 793
Levy13 100.0 100.0 0.0 5925 2457 1113
Matyas 100.0 100.0 92.0 2418 2611 4256
McCormick 53.3 100.0 100.0 2758 433 2170
Meyer 0.0 0.0 0.0 42579 131 1355
Michalewicz 99.3 100.0 40.7 5409 534 933
MieleCantrell 100.0 100.0 84.0 11178 7666 5274
Mishra01 100.0 87.3 100.0 2410 513 2348
Mishra02 100.0 100.0 100.0 2279 739 2361
Mishra03 2.7 0.0 100.0 28887 2265 1144
Mishra04 4.7 0.0 98.7 29171 2278 1236
Mishra05 6.7 68.7 99.3 15025 1134 3972
Mishra06 27.3 96.0 23.3 3673 662 1461
Mishra07 100.0 100.0 14.7 1992 3081 1713
Mishra08 100.0 100.0 0.0 7109 2239 252
Mishra09 83.3 100.0 0.0 21301 10570 252
Mishra10 28.7 100.0 80.0 405 766 876
Mishra11 100.0 100.0 56.7 1961 3057 3015
MultiModal 100.0 100.0 32.7 23813 1697 2391
NeedleEye 100.0 100.0 0.7 13058 315 1133
NewFunction01 2.7 4.7 99.3 29072 2076 2437
NewFunction02 5.3 4.7 100.0 28989 1963 2320
NewFunction03 12.0 82.0 100.0 10500 891 4589
OddSquare 2.0 66.0 0.7 1721 1212 3541
Parsopoulos 100.0 100.0 98.0 2147 2455 3962
Pathological 65.3 97.3 0.0 6917 3519 301
Paviani 0.0 100.0 0.0 15962 6175 256
PenHolder 10.0 100.0 100.0 2512 517 284
Penalty01 10.0 100.0 0.0 4813 2343 2067
Penalty02 100.0 100.0 0.0 5777 2511 1512
PermFunction01 70.7 100.0 11.3 3382 2275 1500
PermFunction02 100.0 100.0 0.0 3887 2452 1169
Pinter 47.3 96.7 0.7 4298 2529 921
Plateau 71.3 100.0 100.0 405 325 724
Powell 100.0 100.0 0.0 17495 14139 1148
PowerSum 100.0 98.0 0.0 61728 78500 1448
Price01 100.0 100.0 0.0 1228 2773 969
Price02 6.0 74.7 0.0 2146 1025 2026
Price03 91.3 43.3 0.0 6870 2089 1319
Price04 100.0 100.0 0.0 8767 5077 2409
Qing 100.0 100.0 0.0 3646 2827 1314
Quadratic 100.0 100.0 0.0 2561 424 1070
Quintic 100.0 100.0 0.0 48197 4063 1506
Rana 10.0 12.7 100.0 3380 1555 996
Rastrigin 95.3 99.3 0.7 4446 2571 922
Ratkowsky01 58.7 37.3 0.0 25005 3693 1369
Ratkowsky02 96.7 46.0 0.0 23217 1995 542
Ripple01 0.0 35.3 0.7 9182 1072 2020
Ripple25 78.0 88.7 9.3 6897 711 2435
Rosenbrock 100.0 100.0 0.0 8522 3191 1559
RosenbrockModifi 3.3 19.3 0.0 7818 592 1502
RotatedEllipse01 100.0 100.0 0.0 2070 2970 1065
RotatedEllipse02 100.0 100.0 0.0 2058 2827 1048
Salomon 100.0 60.7 0.7 9237 3581 1021
Sargan 100.0 100.0 0.0 2058 2670 1012
Schaffer01 12.7 96.0 0.0 4174 3423 370
Schaffer02 20.7 98.7 0.0 8818 3302 380
Schaffer03 34.0 98.7 0.0 10005 2685 379
Schaffer04 10.0 98.7 0.0 7291 2632 347
SchmidtVetters 95.3 100.0 100.0 5629 1751 386
Schwefel01 100.0 100.0 0.0 3496 1681 1274
Schwefel02 100.0 100.0 0.0 2052 2780 1121
Schwefel04 100.0 100.0 21.3 3741 2419 2449
Schwefel06 100.0 100.0 0.0 44918 4485 875
Schwefel20 100.0 100.0 0.0 49287 3825 896
Schwefel21 100.0 100.0 0.0 38014 4108 843
Schwefel22 100.0 100.0 0.0 44801 3802 1026
Schwefel26 16.7 95.3 100.0 1860 1578 739
Schwefel36 100.0 100.0 100.0 2815 673 6618
Shekel05 41.3 53.3 16.7 5597 2339 3279
Shekel07 46.0 68.7 18.0 5999 2383 3236
Shekel10 33.3 76.7 24.7 5871 2418 3265
Shubert01 98.7 100.0 0.0 4150 1361 733
Shubert03 38.7 100.0 0.0 4146 1111 846
Shubert04 48.7 100.0 0.0 4105 1008 847
SineEnvelope 0.0 20.7 0.0 1882 2317 374
SixHumpCamel 100.0 100.0 20.7 3943 624 2006
Sodp 100.0 100.0 100.0 4810 1765 4000
Sphere 100.0 100.0 64.7 1213 2214 3258
Step 0.0 100.0 0.7 405 807 997
Stochastic 0.0 100.0 0.0 10524 40099 867
StretchedV 100.0 100.0 100.0 3942 2384 4285
StyblinskiTang 26.7 100.0 0.0 2697 436 979
TestTubeHolder 6.0 72.7 0.7 2112 887 943
ThreeHumpCamel 95.3 100.0 64.7 3129 2323 3810
Thurber 18.0 0.0 0.0 117560 30671 3849
Treccani 100.0 100.0 54.0 3484 2339 3349
Trefethen 10.0 23.3 0.0 6752 2011 1024
Trid 100.0 100.0 0.0 10633 3069 836
Trigonometric01 100.0 100.0 100.0 2345 2739 4152
Trigonometric02 91.3 100.0 0.0 8430 1179 962
Tripod 52.7 40.0 0.0 42044 2316 936
Ursem01 62.0 100.0 100.0 2537 359 4067
Ursem03 61.3 90.0 100.0 12111 858 2648
Ursem04 100.0 100.0 100.0 12697 637 3995
UrsemWaves 39.3 98.0 100.0 4364 935 4273
VenterSobiezccza 0.0 99.3 0.0 3129 771 908
Vincent 84.7 100.0 98.7 3206 750 2280
Watson 100.0 100.0 0.0 37798 21642 1420
Wavy 42.0 98.0 0.7 5375 2569 460
WayburnSeader01 100.0 100.0 0.0 9428 3124 2512
WayburnSeader02 100.0 100.0 0.0 8867 3276 1361
Weierstrass 0.0 0.0 0.7 45963 999 1115
Whitley 30.0 34.7 0.0 6629 2564 1325
Wolfe 100.0 100.0 100.0 3845 12794 4141
XinSheYang01 0.0 66.0 0.0 10313 36897 1042
XinSheYang02 8.7 94.0 7.3 5561 3761 1704
XinSheYang03 3.3 36.7 0.0 548 1698 3953
XinSheYang04 3.3 91.3 0.0 3597 1295 3915
Xor 100.0 11.3 91.3 5370 1547 2037
YaoLiu04 100.0 100.0 34.7 28697 2811 1906
YaoLiu09 95.3 91.3 0.0 4463 2529 898
Zacharov 100.0 100.0 12.0 2758 2345 2153
ZeroSum 0.0 0.0 0.0 26263 1788 890
Zettl 100.0 100.0 99.3 5542 760 3871
Zimmerman 0.0 46.0 0.0 32539 3888 1138
Zirilli 55.3 99.3 32.7 3265 620 2140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment