GeezerVison is showing tachsin.gr — Examples — genoxide 224 examples shown binary OneMaxFind the bit string with the most ones, the "hello world" of genetic algorithms. RustPython binary LeadingOnesMaximize the number of ones before the first zero of a string of 100 bits, with the (1+1) evolutionary algorithm, whose Θ(n²) time on it Droste, Jansen and Wegener proved. RustPython binary Deceptive trapMaximize 10 blocks of 4 bits, each a trap function that leads away from its optimum, with a genetic algorithm whose two-point crossover keeps the blocks together, against uniform crossover and hill climbing. RustPython binary Blocks of ones that score only when complete, alone (R1) or with their pairs, quadruples and whole (R2): plateaus that a genetic algorithm was meant to cross by crossover. Mitchell et al. (1992, 1994) RustPython binary NK landscapeMaximize a rugged NK landscape of 20 bits, each interacting with 4 others, with iterated local search, checked against the optimum found by evaluating every string. RustPython constrained 0/1 knapsackChoose the items with the highest total value whose total weight fits a capacity, on an instance of 50 items drawn from one of Pisinger's classes, checked against dynamic programming. RustPython permutation N queens on an N×N chessboard with no two in a row, a column or a diagonal: the usual 8×8 board and larger ones, solved by the same search. Bezzel (1848) RustPython permutation Travelling salesman (berlin52)The shortest round trip through 52 locations in Berlin, a TSPLIB instance. RustPython permutation Job shop scheduling (ft06)Schedule 6 jobs of 6 operations on 6 machines in the shortest time, Fisher and Thompson's 6×6 instance. RustPython continuous SphereMinimize the sum of the squares of 30 genes, and compare how fast CMA-ES, with a full and a diagonal covariance matrix, PSO and a GA close in on the minimum. RustPython continuous Axis-parallel ellipsoidMinimize a sphere stretched along each axis in 30 dimensions, where each gene has its own scale. RustPython continuous Two of the problems of Schwefel's book: a rotated ellipsoid and a deceptive function. Schwefel (1981) RustPython continuous ZakharovMinimize a sum of squares plus the square and fourth power of a weighted sum, in 30 dimensions, where one oblique direction is far steeper than the rest. RustPython continuous TridMinimize the Trid function in 10 dimensions, a convex quadratic whose genes are coupled in a chain and whose minimum and bounds grow with the dimension, and compare how fast CMA-ES, sep-CMA-ES, DE, PSO and a GA close in on it. RustPython continuous Dixon-PriceMinimize the Dixon-Price function, a chain of curved valleys whose stationary point at 2/3 stalls nearly every search in 10 dimensions, with CMA-ES with restarts, DE and PSO from 30 seeds. RustPython continuous PowellMinimize Powell's singular function in 24 dimensions, convex but with a singular Hessian at the minimum, and compare how fast CMA-ES, sep-CMA-ES, DE, PSO and a GA close in on it. RustPython continuous Sum of different powersMinimize the sum of the genes' absolute values to powers from 2 to 31 in 30 dimensions, as it is and shifted and rotated, and compare how fast CMA-ES, sep-CMA-ES, DE, PSO and a GA close in on the minimum. RustPython continuous StepMinimize a sphere of flat steps in 30 dimensions, whose gradient is 0 almost everywhere, and compare how fast CMA-ES, sep-CMA-ES, DE, PSO and a GA reach the minimum. RustPython continuous QuarticMinimize De Jong's quartic function in 30 dimensions, without noise and with noise drawn from the genome, and compare CMA-ES, sep-CMA-ES, DE, PSO and a GA. RustPython continuous Rotated hyper-ellipsoidMinimize the "rotated" hyper-ellipsoid in 30 dimensions, which is in fact axis-parallel, and then the same function truly rotated, with CMA-ES and sep-CMA-ES, DE, PSO and a GA. RustPython continuous High-conditioned ellipticMinimize an ellipsoid with a condition number of 10⁶ in 30 dimensions, as it is and shifted and rotated as CEC 2005's F3, and compare CMA-ES, sep-CMA-ES, DE, PSO and a GA. RustPython continuous Bent cigarMinimize a narrow ridge, a thousand times longer than wide, in 30 dimensions, as it is and shifted and rotated, and compare CMA-ES, sep-CMA-ES, DE, PSO and a GA. RustPython continuous DiscusMinimize a sphere squashed along one axis, a thousand times more sensitive than the others, in 30 dimensions, as it is and shifted and rotated, and compare CMA-ES, sep-CMA-ES, DE, PSO and a GA. RustPython continuous Different powersMinimize BBOB's different powers in 30 dimensions, exponents from 2 to 6 under a square root, as it is and shifted and rotated, and compare CMA-ES, sep-CMA-ES, DE, PSO and a GA. RustPython continuous RosenbrockMinimize a 30-dimensional function whose minimum lies at the end of a narrow curved valley. RustPython continuous LevyMinimize a 30-dimensional function with many local minima around a broad bowl, where a converged search needs a restart. RustPython continuous Styblinski-TangMinimize a separable 30-dimensional function whose every gene has two dips, the global one and a slightly shallower one nearly as wide. RustPython continuous MichalewiczMinimize a 10-dimensional function of steep narrow valleys on flat plateaus, where each gene must find the best of its valleys. RustPython continuous AckleyMinimize a 30-dimensional function with a deep hole in a nearly flat, rippled plain, where a swarm that follows its best particle gets stuck. RustPython continuous Rastrigin functionMinimize a 30-dimensional function with a local minimum near every integer point. RustPython continuous GriewankMinimize a wide bowl with ripples that couple the genes, and see CMA-ES reach the minimum more often in more dimensions. RustPython continuous Himmelblau's functionFind the four global minima of a two-dimensional function by restarting a local search from random points. RustPython continuous BraninFind the three global minima of Branin's function by restarting a local search from random points. RustPython continuous Goldstein-PriceFind the global minimum of the Goldstein-Price function, and the local minima that trap a search, by restarting a local search from random points. RustPython continuous Six-hump camelFind the six minima of the six-hump camel-back function, two of them global, by restarting a local search from random points. RustPython continuous Three-hump camelMinimize the three-hump camel function, a global minimum between two local ones, with CMA-ES without and with restarts and DE from 30 seeds. RustPython continuous BealeMinimize Beale's function, a flat curved valley between walls that rise to 1.8·10⁵ at the corners, with CMA-ES without and with restarts, PSO and a GA from 30 seeds. RustPython continuous BoothMinimize Booth's function, a tilted quadratic bowl, with CMA-ES, DE, PSO and a GA from 30 seeds, and compare what each pays for eight digits of precision. RustPython continuous MatyasMinimize Matyas' function, a quadratic valley 25 times flatter along the diagonal than across it, with CMA-ES, DE, PSO and a GA from 30 seeds. RustPython continuous Generalized simulated annealing for function optimization Bohachevsky et al. (1986) RustPython continuous Hartmann's function, four Gaussian wells in the unit cube, in 3 and 6 dimensions. Hartman (1973) RustPython continuous Shekel's function in 4 dimensions, with 5, 7 or 10 narrow wells. Shekel (1971) RustPython continuous Shekel's foxholesMinimize De Jong's fifth function, a plane at nearly 500 with 25 narrow holes of different depths, with CMA-ES without and with restarts, PSO and a GA from 30 seeds. RustPython continuous LangermannMinimize Langermann's function in two dimensions, rings of ripples around five centers, whose deepest well is a narrow one beside a wider one nearly as deep, with CMA-ES, PSO and DE from 30 seeds. RustPython continuous KowalikFit Kowalik and Osborne's rational model to 11 data points in 4 dimensions, a least squares problem with local minima on the bounds and poles inside them, with CMA-ES without and with restarts, DE and PSO from 30 seeds. RustPython continuous EasomMinimize Easom's function, one narrow well in a plane that is flat to within 1e-10 almost everywhere, with CMA-ES from 30 seeds, without and with restarts. RustPython continuous EggholderMinimize the eggholder function, a two-dimensional landscape of deep local minima whose deepest lies on the edge of the box, from 30 seeds with CMA-ES and particle swarms. RustPython continuous Schaffer F6Minimize Schaffer's F6, a two-dimensional function of concentric rings whose first ring of local minima surrounds the global minimum behind a ridge, with SHADE, a particle swarm and a genetic algorithm from 30 seeds. RustPython continuous Schaffer F7Minimize Schaffer's F7, rings of ripples around the minimum, in 10 dimensions, with CMA-ES without and with restarts, DE, PSO and a GA from 10 seeds each. RustPython continuous Yao, Liu and Lin's two penalized functions: a grid of shallow wells over the box, and a steep wall near its bounds. Yao et al. (1999) RustPython continuous Büche-RastriginMinimize BBOB's Büche-Rastrigin function, an asymmetric Rastrigin, in 10 dimensions, with CMA-ES without and with restarts, DE, PSO and a GA from 10 seeds each. RustPython continuous Non-continuous RastriginMinimize Rastrigin's function made flat between half-integers, in 10 dimensions, with CMA-ES without and with restarts, DE, PSO and a GA from 10 seeds each. RustPython continuous WeierstrassMinimize the Weierstrass function, rippled at every scale, in 10 dimensions, with CMA-ES without and with restarts, DE, PSO and a GA from 10 seeds each. RustPython continuous KatsuuraMinimize Katsuura's function, rugged everywhere, in 10 dimensions, with CMA-ES with IPOP restarts from 10 seeds, against CMA-ES without restarts, DE, PSO and a GA. RustPython continuous HappyCatMinimize HappyCat, a groove that curves around to the minimum, in 10 dimensions, with CMA-ES without and with restarts, DE, PSO and a GA from 10 seeds each. RustPython continuous HGBatMinimize HGBat, a groove that curves around to the minimum, in 10 dimensions, with CMA-ES without and with restarts, DE, PSO and a GA from 10 seeds each. RustPython constrained Pressure vessel designThe cheapest cylindrical pressure vessel of a given volume, a mixed discrete-continuous engineering design problem. RustPython constrained Welded beam designThe cheapest welded beam under stress, buckling and deflection limits, in the two forms of the literature. RustPython constrained Tension/compression springThe lightest coil spring whose deflection, shear stress, surge frequency and outer diameter stay within their limits. RustPython constrained Speed reducerGolinski's lightest gearbox, whose gear teeth and shafts stay within their stress and deflection limits, a mixed discrete-continuous design. RustPython constrained Three-bar trussThe least volume of a planar truss of three bars whose stresses stay within the allowed stress, with a minimum known in closed form. RustPython constrained Cantilever beamThe lightest beam of five hollow square segments that carries a load at its free end, under a limit on its deflection, a convex problem with a proven minimum. RustPython constrained Car side impactThe lightest car body whose side passes the European side-impact test, from seven panel thicknesses under ten limits on the crash dummy's injuries and the structure's velocities. RustPython constrained The constrained problems of the CEC 2006 competition: linear and nonlinear inequalities and equalities, some with a feasible region that is tiny or in pieces. Liang et al. (2006) RustPython integer Gear train designThe numbers of teeth of four gears whose ratio is closest to 1/6.931, an integer problem. RustPython multi-objective ZDT6 problemsTwo conflicting objectives, with convex, concave, disconnected, multimodal, deceptive and unevenly crowded Pareto fronts. Zitzler et al. (2000) RustPython multi-objective One variable and two objectives, from the paper of the first multi-objective genetic algorithm, VEGA. Schaffer (1985) RustPython multi-objective Fonseca-FlemingMinimize two objectives with a concave front over 3 variables in [−4, 4] with NSGA-II, as in the NSGA-II paper. RustPython multi-objective Kursawe's disconnected frontMinimize two objectives whose Pareto front is in four separate pieces, a point and three curves, with SPEA2 and NSGA-II. RustPython multi-objective PoloniMinimize two objectives over two angles with NSGA-II, on a disconnected front that isn't known in closed form. RustPython multi-objective BNH, a constrained two-objective problemMinimize two objectives subject to two constraints with NSGA-II, and measure the front against the optimal one. RustPython multi-objective SRN (Srinivas and Deb)Minimize two objectives inside a circle and above a line with NSGA-II, and find all three pieces of the optimal front, not only the one usually quoted. RustPython multi-objective TNK (Tanaka)Minimize the two variables themselves, subject to staying outside a wavy curve and inside a circle, with NSGA-II; the optimal front is in five pieces along the curve. RustPython multi-objective OSY (Osyczka and Kundu)Minimize two objectives of six variables under six constraints with NSGA-II; each of the five pieces of the optimal front lies on a different set of active constraints. RustPython multi-objective CONSTRMinimize two objectives subject to two linear constraints with NSGA-II; a constraint cuts off part of the unconstrained front, and the optimal front follows the constraint's boundary instead. RustPython multi-objective WFG9 problemsTwo objectives from the WFG toolkit: convex, concave, linear, mixed and disconnected fronts behind biased, deceptive, multimodal and non-separable parameters. Huband et al. (2006) RustPython multi-objective DTLZ13 problemsScalable to any number of objectives, here three: fronts that are a plane, part of a sphere, a curve or disconnected regions, some behind many local fronts, and convex, scaled and inverted versions. Deb et al. (2001, 2002); Deb and Jain (2014); Jain and Deb (2014) RustPython multi-objective Three objectives of two variables, with curved and split Pareto fronts. Viennet et al. (1996) RustPython multi-objective CTP8 problemsTwo objectives, two variables and one or two constraints from a tunable generator: fronts cut into pieces or points, behind infeasible bands or at the ends of narrow tunnels. Deb et al. (2001); Deb (2001) RustPython multi-objective DTLZ problems with constraints, here with three objectives: an infeasible barrier before the front, holes in it, or a new front on the constraints' boundaries. Jain and Deb (2014) RustPython multi-objective DTLZ problems with constraints on the variables, here with three objectives: the front in cones or patches, and local optima of the constraint violation on the way. Li et al. (2019) RustPython multi-objective Two or three objectives with constraints whose difficulty a triplet sets: fronts in pieces, a narrow band of feasible distances, and infeasible regions in the way. Fan et al. (2020) RustPython multi-objective MW14 problemsTwo or three objectives over 15 variables with one to four constraints: fronts whole, in pieces, in points or on the constraints' boundaries, some reached only through narrow feasible regions. Ma and Wang (2019) RustPython multi-objective Two-bar trussMinimize the volume of a truss of two bars and the larger stress in them, under a stress limit, whose front has two pieces derived from the definition, with NSGA-II. RustPython multi-objective Welded beam, two objectivesMinimize the cost of a welded beam and the deflection of its end, subject to its stress and buckling limits, with NSGA-II. RustPython multi-objective Disc brakeMinimize the mass of a multiple-disc brake and its stopping time, subject to five constraints, with an integer number of friction surfaces that splits the front into pieces, with NSGA-II. RustPython multi-objective Speed reducer, two objectivesMinimize the volume of a gearbox and the stress in its first shaft, subject to eleven constraints, with an integer number of teeth, with NSGA-II. RustPython multi-objective Four-bar trussMinimize the volume of a truss of four bars and the displacement of its loaded joint, whose convex front has three pieces derived from the definition, with NSGA-II. RustPython multi-objective Car side impact, three objectivesMinimize a car's weight, the pubic force on a passenger and the mean velocity of the B-pillar and the front door in a side impact, subject to ten constraints, with NSGA-III and Jain and Deb's settings. RustPython multi-objective Rocket injectorMinimize two temperatures of a single-element rocket injector and the length of its combustion, three response surfaces fitted to CFD simulations, with SMS-EMOA. RustPython multi-objective Vehicle crashworthinessMinimize a car's mass, the deceleration in a full frontal crash and the toe board's intrusion in an offset one, three response surfaces fitted to crash simulations, with SMS-EMOA. RustPython multi-objective Water resource planningMinimize five costs and losses of a storm drainage system, subject to seven constraints, whose front, derived from the definition, is a surface in five dimensions, with SPEA2. RustPython multi-objective Conceptual marine designDesign the Panamax bulk carrier that carries cargo the cheapest, with the lightest ship and the most cargo a year, subject to nine constraints, with SMS-EMOA. RustPython neuroevolution XOR2 problemsEvolving neural networks through augmenting topologies Stanley and Miikkulainen (2002) RustPython neuroevolution Neuronlike adaptive elements that can solve difficult learning control problems Barto et al. (1983); Wieland (1991); Gruau et al. (1996) RustPython neuroevolution Two spiralsEvolve the 2,545 weights of a neural network that tells two interleaved spirals apart, by OpenAI's evolution strategy. RustPython genetic programming Koza's quarticFind the formula x⁴ + x³ + x² + x from 20 points of it, by genetic programming. RustPython genetic programming Koza's 11-multiplexerFind the Boolean function that uses 3 address bits to select one of 8 data bits, right in all 2048 cases, by genetic programming. RustPython genetic programming |x| by strongly typed GPFind the absolute value |x| from 20 points of it, with a comparison that returns a Boolean and a conditional that takes one, by strongly typed genetic programming. RustPython genetic programming Semantically-based crossover in genetic programming: application to real-valued symbolic regression Uy et al. (2011) RustPython genetic programming Accuracy against sizeThe trade-off between a formula's error and its size on Nguyen-7, ln(x + 1) + ln(x² + 1), found by NSGA-II on trees as a Pareto front. RustPython engine Asynchronous evaluationKeep every worker busy when evaluations take different times, as simulations often do. Rust only engine Neuroevolution on the GPUEvaluate a whole generation of neural networks at once on the GPU, with wgpu. Rust only local Nelder-Mead on RosenbrockFollow Rosenbrock's curved valley from the classic start (−1.2, 1) to its minimum with the Nelder-Mead simplex method, which needs no derivatives. RustPython local Nelder-Mead with restarts on HimmelblauFind all four global minima of Himmelblau's function with a Nelder-Mead search that restarts from a random point each time it converges. RustPython local L-BFGS-B on Rosenbrock in 100 dimensionsMinimize Rosenbrock's function in 100 dimensions to 1e-10 with L-BFGS-B, with its analytic gradient and with forward differences, and see what the gradient costs. RustPython local MMA on a million variablesMinimize a sum of a million terms under one constraint with the method of moving asymptotes, the gradient-based method for very many variables and few constraints, to the closed-form minimum. RustPython local L-BFGS-B on a minimum at the boundMinimize Rosenbrock's function in a box that cuts its valley, so that the minimum lies on the box's edge, and land on it exactly with L-BFGS-B. RustPython local SHADE, then L-BFGS-BFind the basin of Rastrigin's global minimum in 10 dimensions with SHADE, then polish SHADE's best to the minimum itself with L-BFGS-B, in five evaluations. RustPython local Adam with a learning-rate scheduleSmooth 100,000 noisy points into a curve, its 100,000 values the parameters, with Adam and a learning rate lowered by control, to the exact answer. RustPython local Continuation by Gaussian smoothingMinimize a tilted Rastrigin function with L-BFGS-B through 6 stages of its Gaussian smoothing, from convex to exact, to the global minimum, where L-BFGS-B alone from the same start stays in the nearest basin. RustPython bayesian Bayesian optimization of BraninFind a global minimum of Branin's function in 31 evaluations, with a Gaussian process that chooses each point by the log expected improvement and a final L-BFGS-B polish of the model's mean. RustPython bayesian Bayesian optimization in batches on Hartmann 6-DReach the global minimum of Hartmann's 6-D function with 4 points a round, chosen by the Kriging believer and evaluated in parallel, in 15 rounds where one point a round takes 36. RustPython bayesian Asynchronous Bayesian optimizationKeep 4 workers busy on evaluations of uneven duration with an AsyncEngine, each new point chosen with the ones still being evaluated fantasized, to the global minimum of Hartmann's 3-D function. Rust only bayesian Constrained Bayesian optimizationFind the minimum of Gramacy et al.'s toy problem, on the boundary of a wavy constraint, to within 1e-5 in 21 evaluations, with a Gaussian process per constraint and the probability of feasibility. RustPython
|