A Binary GA on De Jong's Test Functions

My CSC 742 assignment on a binary genetic algorithm for four De Jong test functions, with 8-bit and 16-bit encodings. De Jong's original functions and how the assignment's versions differ, what the submitted GA did, its single-run results, and a rerun over thirty seeds that extends the study and shows which conclusions hold across repeated runs, with convergence curves, plots of all five functions, and the same GA on Shekel's foxholes (F5).

Rerun with seeds 0 to 29, the binary GA I wrote for CSC 742 (population 20, 50 generations) works on all four of the assignment's De Jong functions, and every submitted single-run value lies inside the range of its thirty reruns. The 16-bit encoding was no better than 8 bits on any function ($A$ from 0.39 to 0.52, every 95% interval containing one half). Precision was not the limit: the median 8-bit sphere run ended above six times the grid's floor, as roulette selection pressure faded. By 8-bit runs reaching the grid's best point, the step function (14 of 30) ranks first and the noisy quartic (0 of 30) last. On the multimodal F5, 11 of 30 8-bit runs settled in a shallower hole than the global minimum.

The second assignment in CSC 742 asked for a genetic algorithm with a binary representation, applied to four of the test functions Kenneth De Jong used in his 1975 dissertation. Each variable was to be encoded as a bit string and decoded linearly into its interval. The population was to evolve with fitness-proportionate selection, one- or two-point crossover with probability 0.9, and bit-flip mutation at rate $1/L$, where $L$ is the chromosome length. The runs used a population of 20 for 50 generations. They plotted the best and average fitness per generation, compared 8-bit and 16-bit encodings, and ranked the functions from easiest to hardest. Each configuration was run once. Run again over thirty seeds, the same algorithm confirms part of what the single runs showed, as summarized above. With thirty runs the comparisons between the encodings and between the functions, which one run per configuration could not settle, come out differently.

This article describes what I submitted, relates the assignment's versions of the functions to De Jong's originals, and extends the study by rerunning the same algorithm over thirty seeds to see which of the conclusions hold across repeated runs. The route is in five steps:

  1. De Jong's five functions, and how the assignment's versions differ from them.
  2. The submitted algorithm, with one chromosome decoded by hand.
  3. The submitted single-run results.
  4. The same algorithm over thirty seeds, and what repeated runs reveal, including why sixteen bits did not help.
  5. De Jong's multimodal F5, which the assignment left out, run with the same algorithm.

The algorithm is the simple genetic algorithm of this unit, with the linear decoding described in binary encoding and Gray codes.

De Jong's five functions

De Jong (1975, appendix A) assembled an "environment" of five functions, all to be minimized. He chose them to cover several contrasts:

  • continuous and discontinuous;
  • convex and non-convex;
  • unimodal and multimodal;
  • low- and high-dimensional;
  • with and without noise.

Each function was restricted to a box and discretized so that the number of points on each axis was a power of two. Each axis then maps exactly onto the values of a binary string.

Function $n$ Domain Points per axis Minimum
F1 $\sum_{i=1}^{3} x_i^2$ 3 $[-5.12, 5.12]$ 1,024 0 at the origin
F2 $100(x_1^2 - x_2)^2 + (1 - x_1)^2$ 2 $[-2.048, 2.048]$ 4,096 0 at $(1, 1)$
F3 $\sum_{i=1}^{5} \lfloor x_i \rfloor$ 5 $[-5.12, 5.12]$ 1,024 $-30$
F4 $\sum_{i=1}^{30} i\, x_i^4 + \mathrm{Gauss}(0, 1)$ 30 $[-1.28, 1.28]$ 256 0 without noise
F5 Shekel's foxholes (below) 2 $[-65.536, 65.536]$ 131,072 about 1

F1 is a three-dimensional paraboloid. F2 is Rosenbrock's function (Rosenbrock, 1960). Its minimum lies at the end of a long, curved parabolic valley along $x_2 = x_1^2$, a feature of its fitness landscape that slows methods which follow the steepest slope. F3 is a five-dimensional step function, piecewise constant, a test of how a method handles discontinuities. F4 is a 30-dimensional quartic with Gaussian noise added to every evaluation. F5, which De Jong built following a suggestion of Shekel's, is

$$\frac{1}{F5(\mathbf{x})} = \frac{1}{500} + \sum_{j=1}^{25} \frac{1}{j + \sum_{i=1}^{2} (x_i - a_{ij})^6}.$$

The 25 points $(a_{1j}, a_{2j})$ form a $5 \times 5$ grid with coordinates in $\{-32, -16, 0, 16, 32\}$. The first coordinate $a_{1j}$ runs through the five values, and $a_{2j}$ steps up once every five holes. The surface is nearly flat at about 500, with 25 narrow holes whose bottoms take values close to 1 to 25. So F5 is the one multimodal function in the set.

The formula is easier to read term by term. Far from every hole, all the terms of the sum are tiny, the right-hand side is close to $1/500$, and F5 is close to 500 (499.98 at $(0, 50)$, for instance).

Example (the value at the center of a hole). At the center of hole $j$, F5 takes a value a little below $j$. At the center the $j$-th term is $1/j$, and the constant $1/500$ and the other holes' terms add slightly to the sum, so its reciprocal is a little less than $j$. The sixth power makes the holes steep-sided and flat-bottomed. One unit away from a center the term has fallen from $1/j$ to $1/(j + 1)$, and two units away to $1/(j + 64)$. The script computes 0.998 at the center of hole 1, $(-32, -32)$, and 1.992 at hole 2. At hole 25, where the influence of the other 24 holes is largest, it computes 23.81.

F1 to F4 drawn over their first two variables, darker meaning lower, with the minimum starred. The sphere's contours are circles. Notice the curved, nearly flat valley of Rosenbrock's function along x₂ = x₁² (dashed), with the minimum at (1, 1) at its far end. The step function is constant on unit squares, so nearby points often have identical values and give selection nothing to distinguish. The quartic is flat near its minimum, almost square in its contours.
F1 to F4 drawn over their first two variables, darker meaning lower, with the minimum starred. The sphere's contours are circles. Notice the curved, nearly flat valley of Rosenbrock's function along x₂ = x₁² (dashed), with the minimum at (1, 1) at its far end. The step function is constant on unit squares, so nearby points often have identical values and give selection nothing to distinguish. The quartic is flat near its minimum, almost square in its contours.
F5, Shekel's foxholes, on a log color scale over its whole domain, and a cut along x₂ = −32 through holes 1 to 5. Notice that almost the whole domain sits at about 500; the 25 holes are narrow, steep and flat-bottomed, with depths close to their index, so hole 1 at (−32, −32) holds the global minimum, 0.998, and hole 2 next to it reaches 1.992.
F5, Shekel's foxholes, on a log color scale over its whole domain, and a cut along x₂ = −32 through holes 1 to 5. Notice that almost the whole domain sits at about 500; the 25 holes are narrow, steep and flat-bottomed, with depths close to their index, so hole 1 at (−32, −32) holds the global minimum, 0.998, and hole 2 next to it reaches 1.992.

The assignment specified four of these, under its own names and with some changes, and the submission implemented them as specified:

  • Its "Sphere Model" is F1.
  • Its "Weighted Sphere Model" has the formula of F2, Rosenbrock's function. The function's difficulty comes from the curved valley rather than from unequal weights on the axes, as the name might suggest.
  • Its step function used $n = 4$, so its minimum is $4 \cdot \lfloor -5.12 \rfloor = -24$, not $-30$.
  • Its "Noisy Quartic" used $n = 4$ instead of 30, and uniform noise on $[0, 1)$ instead of Gaussian noise with mean 0 and variance 1.

F5 was not included, so the comparison has no multimodal function.

The submitted algorithm

The program (binary_ga.py) encoded each variable in $b$ bits, most significant first. It decoded the integer value $k$ of each substring as

$$x = L + \frac{U - L}{2^b - 1}\, k,$$

where $L$ and $U$ are the lower and upper ends of the interval. The grid spacing is therefore $(U - L)/(2^b - 1)$: 0.0402 for 8 bits and 0.000156 for 16 bits on $[-5.12, 5.12]$. The chromosome lengths ranged from $L = 16$ (Rosenbrock, 8 bits) to $L = 64$ (step and quartic, 16 bits).

The best 8-bit sphere solution of the report shows the decoding at work. Its 24-bit chromosome is three 8-bit genes:

Gene Bits $k$ $x = -5.12 + 0.040157\,k$
$x_1$ 10000010 130 +0.1004
$x_2$ 10000011 131 +0.1405
$x_3$ 01111101 125 −0.1004

(The figure script computes these; the report printed the values to three decimals.) The two grid points nearest zero are $k = 127$, 01111111, at $-0.0201$, and $k = 128$, 10000000, at $+0.0201$. The first and third genes decode to the same distance from zero on opposite sides. Since $130 + 125 = 255$, their bit strings are exact complements: they differ in all eight bits, a first sign of the Hamming cliffs discussed below.

Selection was a roulette wheel on the transformed value $1/(f + 1)$, which turns minimization into maximization. For the step function, whose values can be negative, the population's values were first shifted so that the smallest became 1. Each pair of parents came from two independent spins. Two-point crossover was applied with probability 0.9 and bit-flip mutation at rate $1/L$. The offspring replaced the whole population, with no elitism. The program reported the best individual evaluated in any generation. The program drew its random numbers without a fixed seed, so the reruns below use recorded seeds of their own rather than regenerating the submitted runs.

The submitted results

Each function and encoding was run once. The report's table:

Function Bits Best value Best solution
Sphere 8 0.0399 (0.100, 0.141, −0.100)
16 0.0104 (0.085, 0.007, −0.056)
Rosenbrock 8 0.2866 (1.036, 1.020)
16 0.0641 (0.792, 0.641)
Step ($n = 4$) 8 −23 (−5.04, −4.96, −5.12, −5.08)
16 −23 (−5.04, −4.80, −5.04, −5.11)
Noisy quartic ($n = 4$) 8 0.0321 (−0.356, 0.015, 0.236, 0.075)
16 0.0139 (0.292, −0.045, 0.036, 0.091)

The decoded points are consistent with the values. For example, $0.100^2 + 0.141^2 + 0.100^2 = 0.0399$. The step solution has floors $-6, -5, -6, -6$, one variable short of the minimum. From this table the report drew three conclusions:

  • 16 bits gave better or equal results on every function;
  • the Rosenbrock result improved by a factor of 4.5 with the longer encoding;
  • the functions ranked from easiest to hardest as sphere, quartic, step, Rosenbrock.

Thirty seeds

A table of single runs cannot say how much of each value is the algorithm and how much is the draw of random numbers. To separate the two, I ported the program's operators unchanged into tools/experiments/evolution/dejong_ga.py in the site repository and ran each function and encoding with seeds 0 to 29. The table gives, for the best value found:

  • the median and interquartile range over the thirty runs;
  • the range over all thirty runs;
  • the grid floor, the best value the grid can represent at all.
Function Bits Grid floor Median [IQR] Min to max
Sphere 8 0.0012 0.0077 [0.0044, 0.0109] 0.0012 to 0.101
16 $1.8 \times 10^{-8}$ 0.0058 [0.0028, 0.0131] 0.0002 to 0.045
Rosenbrock 8 0.0016 0.053 [0.013, 0.207] 0.0016 to 1.22
16 $2.6 \times 10^{-8}$ 0.125 [0.031, 0.351] $2.4 \times 10^{-6}$ to 2.95
Step ($n = 4$) 8 −24 −23 [−24, −23] −24 to −22
16 −24 −23 [−24, −23] −24 to −22
Noisy quartic ($n = 4$) 8 0 + noise 0.031 [0.016, 0.043] 0.0029 to 0.086
16 0 + noise 0.037 [0.021, 0.054] 0.0021 to 0.087

Every value in the submitted table lies inside the range of the thirty reruns for its row.

To compare the encodings directly, the script computes the Vargha and Delaney (2000) $A$ statistic. It is the probability that a randomly chosen 16-bit run ends lower than a randomly chosen 8-bit run, counting ties as one half. A value of 0.5 means no difference. The values are 0.52 for the sphere, 0.39 for Rosenbrock, 0.49 for the step function, and 0.42 for the quartic. Under the assignment's budget the 16-bit encoding is no better on any of the four functions, and on Rosenbrock it is somewhat worse. Effect Sizes and Standardized Differences reruns these comparisons and gives each value of $A$ a 95% interval, every one of which contains one half.

The report plotted one curve per function and encoding. The same plot over thirty runs shows how the runs got there. It draws the median and the middle half of the best value found so far:

Best value found so far per generation, median over 30 runs with the band from the first to the third quartile, for 8-bit (solid) and 16-bit (dashed) encodings. Notice that on every function most of the progress happens in the first 10 to 20 generations. The two encodings' bands overlap almost everywhere; on Rosenbrock the 16-bit median stalls higher from generation 10 on. The fifth panel is De Jong's F5, which the assignment did not include, run with the same algorithm.
Best value found so far per generation, median over 30 runs with the band from the first to the third quartile, for 8-bit (solid) and 16-bit (dashed) encodings. Notice that on every function most of the progress happens in the first 10 to 20 generations. The two encodings' bands overlap almost everywhere; on Rosenbrock the 16-bit median stalls higher from generation 10 on. The fifth panel is De Jong's F5, which the assignment did not include, run with the same algorithm.
Function Bits Generation 1 10 25 50
Sphere 8 4.20 0.196 0.0270 0.0077
16 4.23 0.179 0.0246 0.0058
Rosenbrock 8 3.62 0.139 0.0751 0.0533
16 2.31 0.295 0.201 0.125
Step 8 −13 −21 −22 −23
16 −11 −20 −22 −23
Noisy quartic 8 0.950 0.157 0.0481 0.0314
16 0.868 0.136 0.0576 0.0367

The table gives the medians plotted in the figure, rounded to three significant figures. The figures are drawn, and the medians computed, by tools/figures/de-jong-test-functions-ga.py.

On the sphere, the median falls by a factor of about 20 in the first ten generations and only by a factor of about 3.5 over the last 25. On the step function, the median reaches −21 or −20 by generation 10 and then gains one level at a time. Each gain requires one more variable to reach the bottom step, $\lfloor x_i \rfloor = -6$, which covers only $[-5.12, -5)$, about 1% of each variable's range. The runs slow down long before the budget ends, a stall that the section on selection below explains.

What repeated runs reveal

The single runs were enough to show that the implementation worked. Every rerun ended far below the value of a typical random point. De Jong (1975, appendix A) gives that value as 26.2 for F1 and 494 for F2, averaged over the domain. The curves also had the qualitative shapes the report described: plateaus and integer jumps on the step function, and large swings in the average on Rosenbrock, where a single offspring off the valley floor can score in the hundreds.

A difference between encodings needs many runs. On Rosenbrock the thirty 8-bit runs span three orders of magnitude, from 0.0016 to 1.22. Two runs drawn from such a distribution can differ by a factor of 4.5 with the same encoding. So a factor of 4.5 between one 8-bit run and one 16-bit run cannot by itself separate the encodings. The report compared the encodings on one run each, as the assignment asked; over thirty runs the medians favor 8 bits on two of the three continuous functions. Thirty runs also measure the spread between runs on the sphere, which a single run cannot show: the 8-bit sphere runs range from 0.0012 to 0.101.

Ranking the functions by difficulty needs a common scale. The best values are on different scales. A Rosenbrock value of 0.05 and a sphere value of 0.05 are not equally good, and a step value of $-23$ is not comparable to either. A ranking needs a common measure, such as the fraction of runs that reach a fixed tolerance of the optimum, or the number of evaluations needed to get there. It also needs enough runs to estimate that measure (Eiben and Smith, 2015, ch. 9), compared with the kind of care described in significance testing. On the step function, for instance, the reruns reach the minimum of $-24$ in 14 of 30 runs with 8 bits and 12 of 30 with 16 bits.

One such measure can be read off the thirty 8-bit reruns: the number of runs whose best individual is the best point the 8-bit grid can represent. For the noisy quartic the individual is judged by its noise-free value.

Function, 8 bits Best value on the grid Runs that reached it
Step ($n = 4$) −24 14 of 30
Sphere 0.0012 7 of 30
Rosenbrock 0.0016 2 of 30
Noisy quartic ($n = 4$) $6.3 \times 10^{-9}$ 0 of 30

By this measure the step function comes first and the noisy quartic last, with the sphere and Rosenbrock's function between them. Thirty runs separate only the ends. Fisher's exact test, derived for $2 \times 2$ tables in Comparing Two Proportions, distinguishes the step function from Rosenbrock's function ($p = 0.001$) and from the quartic ($p < 0.0001$), and the sphere from the quartic ($p = 0.011$). Neighboring positions are not distinguished: $p = 0.10$ for step against sphere, 0.15 for sphere against Rosenbrock, and 0.49 for Rosenbrock against the quartic. So the middle of the order is unresolved.

The targets also differ in size. On the 8-bit grid the step function has 3 optimal values per variable, so 81 optimal strings of 32 bits. The sphere has 8 optimal strings of 24 bits, the quartic 16 of 32 bits, and Rosenbrock's function a single string of 16 bits. The result belongs to this measure, this algorithm and this budget. The single runs, read on their four different scales, had suggested the order sphere, quartic, step, Rosenbrock; a common measure with thirty runs gives a different picture. A looser tolerance or a longer run could change it again. The one function that might have upset any ranking, the multimodal F5, was not in the set; I run it below.

The noisy quartic's "best value" partly reflects the noise. The program kept the lowest value ever evaluated, and each evaluation added a fresh uniform draw from $[0, 1)$, whose mean is 0.5. Over 1,000 evaluations, the minimum is selected partly for a small noise draw. In the reruns, the noise in the reported best value has a median of 0.010 (8 bits) and 0.012 (16 bits), against an expected 0.5. The noise-free quartic of the same individual has a median of 0.013 and 0.018. The noise draw and the quality of the solution contribute comparable amounts to the reported value. With De Jong's Gaussian noise the effect would be stronger, since the reported minimum would typically be negative.

When the noise-free function is known, as here, reporting the noise-free value of the best individual separates the quality of the solution from the luck of the noise. When it is not known, the average of several fresh evaluations of the final candidate does the same job. Averaging repeated evaluations is a standard remedy for noisy fitness (Eiben and Smith, 2015, ch. 11).

Why sixteen bits did not help

The reruns leave a puzzle: a finer grid should help a search get closer to the minimum, yet it did not. Precision was not what limited these runs.

Example (the floor of the 8-bit sphere). With 8 bits on $[-5.12, 5.12]$, the two grid points nearest zero are $\pm 0.0201$. The lowest value an 8-bit sphere solution can reach is therefore $3 \times 0.0201^2 = 0.0012$, with every variable at one of the two points nearest zero. The median 8-bit run ended at 0.0077, more than six times that floor, and 7 of the thirty runs reached it. A finer grid lowers a floor that the search was not reaching.

Meanwhile the 16-bit chromosome is twice as long, so the same 1,000 evaluations explore a far larger space. At rate $1/L$, mutation still flips about one bit per offspring. Half the time that bit is among the eight low-order bits of a variable, and flipping it moves the decoded value by less than 0.04 on $[-5.12, 5.12]$.

Selection also weakens as the run proceeds. The transform $1/(f + 1)$ is nearly 1 for every value of $f$ close to 0. An individual at $f = 0.005$ gets 0.995 and one at $f = 0.5$ gets 0.667, so the best is chosen only 1.5 times as often as an individual a hundred times worse.

For a whole population, take twenty individuals: one at $f = 0.005$, nine at 0.05 and ten at 0.5. Their weights are 0.995, 0.952 and 0.667, which sum to $0.995 + 9 \times 0.952 + 10 \times 0.667 = 16.23$. So each spin picks the best with probability $0.995 / 16.23 = 0.061$. Twenty spins give it 1.23 copies on average, barely more than the one copy every individual would get by chance. In the last generation of the sphere runs, the best individual's expected number of copies under the roulette wheel had a median of 1.78 (8 bits) and 1.43 (16 bits), against 1.0 under uniform random choice.

Eiben and Smith (2015, ch. 5) describe this loss of selection pressure when fitness values are close together as a known weakness of fitness-proportionate selection. The cures they discuss include scaling, ranking and tournament selection, covered in selection pressure and premature convergence. Without elitism the population can also lose its best individual, which the program kept only in its record of the best so far.

De Jong saw a related stall in his own experiments. In a single run of his basic plan on F1, the population had effectively converged in 25 of its 30 bit positions by trial 3,000. His performance measures improved little or not at all from then on, with the better of them stuck at 0.018 rather than the minimum of zero. The reason is that crossover can produce only points whose bit values are all still present somewhere in the population (De Jong, 1975, ch. 3, Table 3.1). His performance curves, as he noted, were averaged over independent runs.

The binary code itself adds a small oddity. On a symmetric domain with an even number of grid points, zero falls exactly between the integers $2^{b-1} - 1$ and $2^{b-1}$. For 8 bits these are 01111111 and 10000000, which differ in every bit. Crossing the optimum from one side to the other in a single step therefore takes a change in all eight bits. Gray codes remove such Hamming cliffs between adjacent integers.

The function the assignment left out

The assignment had no multimodal function. So its comparison could not show the failure that populations are meant to guard against: settling in a local optimum. To see what the same algorithm does on one, I added De Jong's F5 to the rerun script, decoded onto $[-65.536, 65.536]$ with the same operators, population, budget and seeds. It is an extension of the study, not part of what I submitted.

Bits Best value, median [IQR] Runs at the global minimum, 0.998 Runs ending nearest each hole (hole: runs)
8 2.11 [0.998, 3.33] 11 of 30 1: 19, 2: 8, 3: 2, 4: 1
16 1.32 [1.21, 2.98] 6 of 30 1: 22, 3: 3, 4: 2, 6: 1, 9: 1, 11: 1

"Runs at the global minimum" counts best values below 0.999. The last column assigns each run's best point to the nearest hole center. Three things stand out.

Most runs find the right hole, and many do not. The deepest holes, 1 to 5, lie along the bottom row, and every run but three ended in one of them. Eleven of the thirty 8-bit runs ended in hole 2, 3 or 4, whose bottoms are 1 to 3 units above the global minimum. With a population of 20 and the fading selection pressure described above, a run that finds a reasonable hole early tends to stay there. Moving from hole 2 to hole 1 means crossing 16 units of plateau at about 500, and any single offspring that tries it scores a hundred times worse than its parents.

The plateau is what makes the start hard. The median best value in the first generation was 263 for 8 bits and 261 for 16, against 500 on the plateau. So in most runs, at least one of the twenty random initial points already lies on the side of some hole. From there the median in the figure above drops by one to two orders of magnitude within ten generations, as soon as a few individuals sit in a hole. On the plateau itself, the values differ only in the third or fourth significant figure, and the roulette wheel cannot tell them apart.

Finer encoding means closer to, not at, the bottom. The 8-bit grid has a point 0.125 from the center of hole 1 in each coordinate, and 11 runs reached that point exactly. The 16-bit runs got into hole 1 more often (22 against 19) and had the lower median, but only 6 reached 0.998 to three decimals. Most of the other runs in hole 1 stopped between 1.2 and 1.6, a little off the center in a hole whose floor is flat to the eye but still curved. As on the continuous functions, the extra precision was not what limited the search.

What I would change

  1. Run every configuration many times with recorded seeds, and report medians and spreads, as this article does.
  2. Add De Jong's original definitions alongside the assignment's versions, including $n = 5$ for F3, $n = 30$ and Gaussian noise for F4, and F5, so that the results can be compared with the literature.
  3. Measure difficulty on a common scale, by success rate at a tolerance or by evaluations to reach it.
  4. Keep the best individual (elitism of one) and replace the $1/(f + 1)$ roulette wheel with rank-based or tournament selection, so that selection pressure does not fade as the population improves.
  5. Report a noise-free or re-evaluated value for the noisy function.
  6. Test the encoding question with a larger budget than the assignment allowed. At 50 generations the 8-bit grid is not the bottleneck, so the number of bits only matters once the search can get close to the 8-bit floor. The experiment in binary encoding and Gray codes runs this same GA for 500 generations on the sphere and Rosenbrock's function. On the sphere the 8-bit runs then sit on their floor (median 0.00121, with both quartiles equal to it) and the 16-bit median, 0.000534, is below it, so the finer grid helps. On Rosenbrock's function the 8-bit median, 0.00403, is still lower than the 16-bit median, 0.0306.

What the reruns established

Single runs were enough to show that the algorithm worked, and not enough to compare encodings or rank functions. Over thirty seeds, every submitted value fell inside its row's range, the 16-bit encoding was no better on any function, and grid precision was not what limited progress: the search slowed as selection pressure faded. On F5, every run but three ended in one of the five deepest holes, and eleven of the thirty 8-bit runs settled in a shallower hole than the global minimum.

These were continuous functions with every bit string a valid candidate. The course's third assignment changed both: a combinatorial problem, in which items are assigned to bins, with a capacity that a candidate can violate. A genetic algorithm for bin packing shows what happens to a genetic algorithm when the encoding does not match the structure of a good solution: it stops at about four times the optimum on instances that a different encoding solves.

References

  • De Jong, K. A. (1975). An Analysis of the Behavior of a Class of Genetic Adaptive Systems, chapter 3 and appendix A. PhD dissertation, University of Michigan. record · 5 pages
  • Eiben, A. E., and Smith, J. E. (2015). Introduction to Evolutionary Computing, 2nd ed., chapters 5, 9 and 11. Springer. record · 35 pages
  • Rosenbrock, H. H. (1960). An automatic method for finding the greatest or least value of a function. The Computer Journal, 3(3), 175–184. record
  • Vargha, A., and Delaney, H. D. (2000). A critique and improvement of the CL common language effect size statistics of McGraw and Wong. Journal of Educational and Behavioral Statistics, 25(2), 101–132. record · 4 pages

Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 9 revisions