Changes from the original toolbox¶
YPEA for Python keeps the ideas and names of the original YPEA toolbox (v1.1), fixes its known defects and follows the published version of each algorithm. Results do not match the original run for run, because the random number generators differ. This page lists every behavior change.
Codes such as F1, V1 and A1 label the defects found in a review of the original code: F for the framework, V for variable types, A for algorithms.
Problems and variables¶
| Change | Original | Python |
|---|---|---|
| Indices | Permutations, selections and partitions are 1 based. | 0 based. |
| Integer decoding (V1) | A code of exactly 1 decodes to ub + 1. |
Decodes to ub. Every value in [lb, ub] is equally likely. |
| Fixed sum decoding (V2) | All zero codes give NaN. | The target is shared equally. |
| Fixed sum types | fixed_sum, fixed_row_sum, fixed_column_sum. |
One type, FixedSum(axis=None, 1 or 0). |
| Encoding | Decode only. | Every type also has encode(), which turns a known solution into codes. |
| Variable type lookup (F7) | Scans the toolbox folder on every ypea_var call. |
Types are classes. Subclass Variable to add one. |
| Stopping rules | goal and max_nfe are set on the problem, and max_iter (100) always applies. |
target (the old goal), max_nfe, max_iter and max_time are set on the algorithm, and the first limit reached stops the run. max_iter defaults to None. 100 iterations apply only when no limit is given at all, so max_nfe alone is never cut short. |
| Constraints | The user writes a penalty into the objective. | The objective may return (f, g). Problem(constraints="feasibility") (default) or constraints="penalty". |
Algorithm framework¶
| Change | Original | Python |
|---|---|---|
| Ties (F1) | A tie counts as better. | Strictly better only. DE still accepts ties, as Storn and Price do. |
| Evaluation budget (F3) | max_nfe is checked after each iteration, so it can be exceeded. |
Never exceeded. Rows past the budget are not evaluated. |
| Best solution | Each algorithm updates it, some only once per iteration. | The framework updates it after every evaluation and keeps the exact trace of improvements. |
| Selection probabilities (F2) | exp(-beta * f) on raw objective values, which overflows and depends on the scale and sign of f. |
Based on ranks, so independent of scale and sign. |
| Reproducibility (F5) | Uses the global random state. | solve(problem, seed=...): the same seed gives the same result. seed=ypea.StudioRng(n) draws the same numbers as YPEA Studio. |
| Evaluation | One solution at a time. | Also vectorized (vectorized=True) or parallel (executor=). Objective values that are not finite (NaN, inf, -inf) count as the worst, and NaN constraint values as infinite violation. |
| Display | On by default, one line per iteration. | Off by default. Use display=True or callbacks=[ypea.callbacks.Print()]. |
| Plots | Methods of the algorithm class. | ypea.plot.convergence(result). |
| Setting names | wdamp (PSO), type (BA), mutation_prob (BBO) and selection="roulettewheel" (GA). |
w_damp, variant, mutation_rate and selection="roulette". The old names still work. The first three give a deprecation warning and will be removed in version 2.0. |
Algorithms¶
Changed defaults are listed with their evidence under Default values.
PSO¶
- All particles move at once (synchronous). In the original the global best changed during the loop over particles.
- New defaults for
w,w_finalandmax_velocity.w=1, w_damp=0.99, w_final=None, max_velocity=Nonegives the original damping without a velocity limit.
DE¶
rand-to-bestworks (A1). The original crashed on a typo.- Exponential crossover copies, from a random start, a run of consecutive components whose length depends on
crossover_prob(A2). The original ignoredcrossover_proband could copy more than all components. Storn and Price (1997) describe only binomial crossover, so this follows the usual rule. target-to-bestis also available under its usual name,current-to-best.- A strategy can be given as
DE("DE/best/2/bin")or with the separate settings. - Trial vectors are built from the population at the start of the iteration (synchronous).
- In
rand-to-best, the best minus base difference uses the same jittered scale factor as the random differences. - Strategy names count the random difference vectors only:
current-to-best/1adds the best minus current difference and one random difference. Some textbooks (for example Engelbrecht 2007) call the same strategycurrent-to-best/2. - New defaults for
beta_min,beta_maxandcrossover_prob.beta_min=0.2, beta_max=0.9, crossover_prob=0.2gives the original values.
GA¶
- Roulette wheel selection is rank-based (F2).
selection="tournament"is new. - New default
crossover_inflation=0.5(BLX-0.5). The original used 0.1.
SA¶
selection="pool"(default) ranks all moves of the population together and makes the k-th best move the candidate of the k-th best current solution. The original used the same pool but kept the current solutions in their stored order instead of sorting them.selection="chain"is new: each solution keeps the best of its ownmove_countmoves, giving independent chains.- The Metropolis rule follows the problem's comparison rules. With feasibility rules, delta is the difference in violation when the violations differ, otherwise the difference in objective. With a penalty, it is the difference in penalized objective.
- The temperature never falls below
final_temp. - When only
max_nfeis set, the cooling schedule is fitted to the number of iterations the budget allows.
CMA-ES¶
- Rewritten from Hansen's tutorial (2016). Only the current mean, covariance, paths and step size are kept, so memory no longer grows with
max_iter(A9). mucomes from the population size in effect when the run starts (A8). The original fixed it at construction from the default population size.- The step size update is the standard one, without the original's extra power of 0.3 (A10).
- Samples outside [0, 1] are reflected at the bounds, and the reflected points are used for the update. The original clipped them, which distorted the distribution (A10).
- Only the initial mean is evaluated, once. The original evaluated the mean every iteration.
- New settings:
sigma0(fixed at 0.3 before) andx0, the initial mean. - Recombination weights and learning rates follow Table 1 of the tutorial (equations 48 to 58), with positive weights only.
- The step size is capped at 1, the width of the whole search space in code units.
- Samples use the symmetric root of the covariance, mean + sigma * B D B^T z. The tutorial writes B D z, which has the same distribution, but the symmetric form does not depend on the signs or basis of the eigenvectors, so seeded runs are the same on every platform. Seeded CMA-ES and IPOP-CMA-ES results changed once, in 0.4.0.
- The default
pop_sizechanged (see the table).
IWO¶
- The step size follows the paper's nonlinear schedule from
step_sizetofinal_step_sizewithmodulation_index, over the whole run (the largest share used ofmax_nfe,max_iterormax_time). The original multiplied the step size bystep_size_damp = 0.001every iteration, which stopped the search after one or two iterations (A13). - The run starts with
initial_pop_sizeweeds (A14). The original started withpop_size. - Seed counts follow the paper, linear between the worst and best objective value. When all weeds have the same value, every weed gets the maximum number of seeds. The original divided by zero (A11).
- With constraints, seed counts come from ranks (
fitness="auto", the default).fitness="paper"orfitness="rank"forces one rule.
ABC¶
- An employed or onlooker bee changes one random component, v_j = x_j + phi (x_j - x_kj) with phi uniform in [-max_acceleration, max_acceleration], as in the paper. The original changed every component.
- A source's trial counter resets to 0 when the source improves. The original never reset it.
- At most one scout per iteration: the source with the largest trial counter, if it has reached the limit. The original replaced every source at the limit.
- Onlooker probabilities use the fitness of Karaboga's reference code, 1/(1 + f) for f >= 0 and 1 + |f| otherwise (F2). With constraints, ranks are used (
fitness="auto", the default).fitness="paper"or"rank"forces one rule. - Both bee phases are evaluated as one batch. Each source keeps the best candidate its onlookers found, if it is better.
- New defaults for
onlooker_countandtrial_limit.
ACOR¶
- Each new solution picks one guiding solution from the archive and samples all its components from it. The original picked a new guide for each component.
- When objective values tie, archive members are kept first.
BA¶
- Maximization works (A5). The original crashed on every maximization problem.
- The probabilistic mode scores sites by rank instead of
1 ./ obj_values(A6). The scores still average 1, and the rejection thresholds (0.6, 0.2, 0.05, 0) are unchanged. - The standard mode draws every recruited bee uniformly from the patch around its site, in all components (Pham et al.).
neighborhood="component"gives the original move, which changes one random component. The probabilistic mode always uses the one component move. - A site moves to its best recruited bee only when that bee is strictly better.
BBO¶
alphais the weight of the immigrating feature: x + alpha (x_j - x). Simon's book (2013, eq. 14.19) puts the weight on the current feature, a = 1 - alpha, so alpha = 1 here is the book's a = 0, plain copying.- The default
alphais 1, which copies the feature as in Simon (2008).alpha=0.9gives the original blend. - The migration source is never the habitat itself. Populations of one or two habitats no longer divide by zero.
keep_rateandmutation_ratemust be in [0, 1].
CA¶
- Influence types 2, 3 and 4 change only component j with the step for component j (A4). The original added the step to the whole position vector inside the loop over j.
- The best
pop_sizeof parents and offspring survive, a deterministic form of the CAEP tournament (Chung and Reynolds 1998, each solution against c = 40 random rivals). The original had no selection.survival="offspring"gives the original scheme. - The belief space (normative and situational knowledge) is updated with the problem's comparison rules, so maximization and constraints work.
- At least two solutions are accepted. With one, the normative intervals have zero width and the search stalls.
- The four influence types keep their original definitions. They are CAEP(Ns), CAEP(Sd), CAEP(Ns+Sd) and CAEP(Nsd) of Chung and Reynolds (1998), Section 3.7, also in Engelbrecht (2007), Section 14.3.4, with two differences. Every step is multiplied by
alpha, which the source does not have, soalpha=1reproduces types 1 and 3, and type 4 withbeta=0.2(the paper's value). Type 2 uses a constant step of 0.1 alpha, where the paper allows a constant or a self adapted step. - New defaults for
influence_typeandbeta.
FA¶
- A firefly moves only toward strictly brighter fireflies (A12). The brightest firefly makes a random walk of
alpha * delta * U(-1, 1). The paper's random term is alpha (rand - 1/2) in problem units. - Each firefly moves toward every brighter firefly in turn, and the moves add up. It is evaluated once after all its moves, so an iteration costs
pop_sizeevaluations. The original evaluated one candidate per brighter firefly (up topop_sizesquared evaluations) and kept only the best.
HS¶
- Pitch adjustment uses the damped bandwidth, so
fret_width_damphas an effect (A3). - Pitch adjustment adds
bandwidth * U(-1, 1), the uniform step of Lee and Geem (2005), whose bandwidth is a fixed distance with no stated value. The original used a normal distribution. fret_width_damp=1keeps the bandwidth fixed, andnew_count=1gives the paper's one new harmony per iteration. The 2001 paper itself moves discrete values to a neighboring value.- New default
par=0.35.
ICA¶
- Empire power and the competition use rank-based costs, so they work for maximization, any objective scale, and constraints (F2). The total cost of an empire is c(imperialist) + zeta * mean(c(colonies)), where c is the normalized rank from 0 (best) to 1 (worst).
- A collapsed empire's imperialist really becomes a colony of an empire drawn by the same competition (A7).
- The weakest empire never wins the competition for its own colony: the winner is drawn among the other empires only.
- The initial colonies are split in proportion to the imperialists' power, as in the paper, with the rank-based power and largest remainder rounding so the counts add up. The original drew the empire of each colony at random.
- A colony that revolts is evaluated once. The original evaluated it twice.
- Each iteration evaluates exactly
pop_sizesolutions. - New defaults from the paper for
assimilation_coeff,zeta,empire_countandcompetition.competition="roulette"gives the original draw.
TLBO¶
- Each phase updates all learners at once (synchronous). The original updated them one by one.
- A learner moves away from its partner only if it is strictly better than the partner, otherwise toward it, as in the paper.
pop_sizemust be at least 2.- An iteration costs
2 * pop_sizeevaluations, one per learner in each phase. The paper countspop_sizeper generation, so its evaluation budgets are half the real cost.
Kept from the original¶
These choices of the original toolbox differ from the papers but stay, so ported code behaves the same way:
- ACOR: each component is sampled along its own axis. The paper rotates the coordinate system of each ant (Appendix A), which helps on rotated functions.
- BA: the probabilistic mode and its thresholds, which are the original author's own design. The geometric damping of the patch size (
dance_radius_damp, 1 gives a fixed patch). Derived counts round half away from zero (the original rounding). - BBO: Gaussian mutation with a fixed probability per feature and a shrinking step. Simon (2008) mutates by species count probability and replaces the feature with a random value.
- DE: trial components outside [0, 1] are clipped to the bound. Some textbooks reset them at random instead.
- FA: the distance is divided by sqrt(d), the attraction term has a random factor U(0, 1), the new fireflies are merged with the old ones, and
deltascales the random step. - GA: (mu + lambda) survival of parents, children and mutants. The crossover and mutation counts round halves up.
- ICA: the power is exponential in rank-based costs. Assimilation draws an independent U(0, beta) factor per component, without the paper's random angle. Each imperialist tries one Gaussian revolution per iteration and keeps it only if better, while a revolved colony always keeps the change. After each competition only the weakest empire is checked for collapse, so an empty empire lasts until it is the weakest.
- PSO: particles that leave [0, 1] are clipped and the offending velocity components reversed.
use_constriction_coeffsscales phi1 and phi2 up to a sum of 4 when their sum is below 4.
Examples and test problems¶
- The scripts in
examplesfollow the examples of the original toolbox.sphere_all.pyruns every algorithm with its original example settings. The algorithm pages use the defaults. ypea.problems.small_knapsack()is the 20-item knapsack of the original documentation (optimum 73). The original subtracts a penalty in the objective, andexamples/knapsack.pyreturns the constraint instead.ypea.problems.circle_tsp()is the TSP of the original SA example. Its optimum is the perimeter of the regular polygon,2 n radius sin(pi / n). The original example used the circumference2 pi radius, which no tour reaches.
Default values¶
Each default is the value recommended in the algorithm's paper or the standard literature, and a default changes only when a benchmark experiment confirms it. Every original value is still available as a setting.
Unless a row says otherwise, the evidence comes from 119 problems: the classic functions shifted and rotated at d = 10 and 30 (25 each), CEC 2017 at d = 10 and 30 (29 each), and a combinatorial block (11 problems). Each problem has 15 runs with 10 000 d evaluations (50 000 on the combinatorial block). Wins, ties and losses are Wilcoxon rank sum results of the new value against the old one, and the Friedman rank is that of the mean error (lower is better).
These defaults differ from the original:
| Algorithm | Parameter | Original | Python | Source | Evidence |
|---|---|---|---|---|---|
| ABC | onlooker_count |
100 | pop_size (SN) |
Karaboga (2005), Table 2, p. 8 | paper value |
| ABC | trial_limit |
round(0.6 * d * pop_size) | onlookers * d | Karaboga (2005), Table 2, p. 8 | paper value |
| BA | neighborhood |
one component | "patch" |
Pham et al. (2006) | paper value. The one component move works much better in many dimensions (about 1e-3 against 0.15 on the 10D sphere) |
| BBO | alpha |
0.9 | 1 (copy) | Simon (2008) | copy migration of the paper |
| CA | survival |
offspring only | "best" |
Chung and Reynolds (1998), CAEP | without it the old default influence type did not converge (about 60 to 70 on the 10D sphere) |
| CA | influence_type, beta |
3, 1 | 4, 0.2 | CAEP(Nsd), Chung and Reynolds (1998), Section 3.7 | 108 wins, 11 ties, 0 losses |
| CMA-ES | pop_size |
100 | None, giving 4 + floor(3 ln n) | Hansen (2016), Table 1, p. 31 | paper value |
| DE | beta_min, beta_max |
0.2, 0.9 (F drawn per component) | 0.5, 0.5 (fixed F = 0.5) | Storn and Price (1997), Simon (2013), Engelbrecht (2007) | 38 wins, 81 ties, 0 losses. Friedman rank 1.25 against 1.75 |
| DE | crossover_prob |
0.2 | 0.9 | Price, Storn and Lampinen (2005), p. 166: 0.9 when variables depend on each other, 0.2 for separable functions | 77 wins, 21 ties, 21 losses, best Friedman rank in every block. 0.1 (Storn and Price 1997) had 39 wins, 34 ties, 46 losses |
| GA | crossover_inflation |
0.1 | 0.5 (BLX-0.5) | Eshelman and Schaffer (1993), Simon (2013), Engelbrecht (2007) | 41 wins, 70 ties, 8 losses. Friedman rank 1.42 against 1.58, slightly worse mean rank on CEC 2017 at d = 30 (1.59) |
| HS | par |
0.1 | 0.35 | Lee and Geem (2005) use 0.1 to 0.5 | 14 wins, 105 ties, 0 losses |
| ICA | assimilation_coeff, zeta, empire_count, competition |
1.5, 0.2, 5, roulette | 2, 0.1, 10, "paper" (the largest P - U(0, 1)) |
Atashpaz-Gargari and Lucas (2007) | 30 wins, 83 ties, 6 losses. Friedman rank 1.80 against 2.35 |
| IWO | step size schedule | step_size_damp = 0.001 per iteration |
final_step_size = 0.001 with modulation_index = 3 |
Mehrabian and Lucas (2006), eq. 1, with the recommended n = 3 (p. 366). 0.001 in code units is our choice | the old schedule stopped the search (A13). n = 3 did better than 2 on 40 problems and worse on 2 |
| PSO | w, w_damp, w_final, max_velocity |
1, 0.99, none, none | 0.9, unused, 0.4, 0.15 | Shi and Eberhart (1998) and their later 0.9 to 0.4 schedule. The limit 0.15 (15 percent of the range) is our choice | 71 wins, 41 ties, 7 losses. The limit alone gave 55 wins, 55 ties, 9 losses. Worse on the combinatorial block (1 win, 5 ties, 5 losses), so the original settings stay the advice for random-key combinatorial problems |
| SA | selection |
pool, current solutions unsorted | "pool", both sides sorted |
original toolbox | 40 wins, 47 ties, 32 losses against independent chains ("chain"). Better on the classic functions (26 wins, 8 losses), worse on CEC 2017 (12 wins, 22 losses) |
These paper values were tested and not adopted, because they did worse:
| Algorithm | Parameter | Default | Paper value | Source | Evidence (paper value against default) |
|---|---|---|---|---|---|
| ABC | pop_size (SN) |
100 | 10 (colony of 20) | Karaboga (2005), Table 2, p. 8 | 108 problems (classic and CEC 2017 at d = 10 and 30): Friedman rank 1.56 against 1.44. Significantly worse on CEC 2017 at d = 30 (p = 0.005), better on the classic functions at d = 30 |
| ABC | trial_limit |
onlookers * d | 10 d, or 100 | other common values | 10 d: 4 wins, 98 ties, 17 losses. 100: 2 wins, 83 ties, 34 losses |
| ACOR | pop_size, sample_count, q, zeta |
100, 50, 0.5, 1 | 50, 2, 0.0001, 0.85 | Socha and Dorigo (2008), Table 2 | 42 wins, 26 ties, 51 losses: slightly better at d = 30, worse on the combinatorial block (0 wins, 1 tie, 10 losses) |
| BA | site counts, dance_radius |
0.5, 0.4, 0.1, radius 0.1 | 0.1, 1/3, 0.05, radius 0.03 | Pham et al. (2006) | 48 wins, 26 ties, 45 losses: better at d = 10, worse at d = 30 (CEC 2017 at d = 30: 2 wins, 21 losses). The smaller patch alone gave 53 wins, 24 ties, 42 losses with the same split |
| BBO | keep_rate |
0.2 | 0.04 (about 2 of 50) | Simon (2008) | 12 wins, 92 ties, 15 losses |
| DE | F (beta_min, beta_max) with CR 0.9 |
0.5 | 0.8 | Price, Storn and Lampinen (2005), p. 166 | 3 wins, 10 ties, 106 losses. F = 0.8 converges too slowly at 10 000 d evaluations |
| FA | pop_size |
100 | 40 | Yang (2009), p. 176 | classic functions at d = 10 and 30: Friedman rank 1.67 against 1.33, significantly worse at d = 30 (2 wins, 12 ties, 11 losses, p = 0.003) |
| HS | new_count |
20 | 1 (one new harmony per iteration) | Geem, Kim and Loganathan (2001) | classic functions at d = 10 and 30: 1 win, 39 ties, 10 losses, significantly worse at d = 10 (p = 0.003) |
| MOPSO | w |
0.7 | 0.4 | Coello Coello et al. (2004) | 21 ZDT, DTLZ and WFG problems: 0.7 had 14 wins, 2 ties, 5 losses in IGD and 13, 4, 4 in hypervolume against 0.4 |
The other defaults equal their paper value (CMA-ES, IPOP-CMA-ES, L-SHADE, FA gamma), use the standard published values (JADE, SHADE, Nelder-Mead), or keep the original value, because their papers give no general value or have not been checked yet.
Local search methods¶
Hill climbing, tabu search, VNS, ILS, GRASP and the ant colony algorithms are new, and their defaults are the values of their sources, except tabu search's step. The evidence below comes from 130 problems: the 119 above plus 11 native problems (QAP, n-Queens, GAP, CVRP, hub location), with 15 runs each. Settings that act only on real or only on discrete variables were compared on those problems only.
| Algorithm | Parameter | Default | Alternative | Evidence (alternative against default) |
|---|---|---|---|---|
| TabuSearch | step |
0.01 | 0.1 (our first choice, no source) | 0.01 was adopted: 59 wins, 20 ties, 29 losses against 0.1 on the 108 real-valued problems |
| HillClimbing | batch |
10 | 1 | 20 wins, 107 ties, 3 losses, but several times slower when evaluations are cheap, so 1 is advised for expensive objectives only |
| HillClimbing | improvement |
"first" | "best" | worse: 10 wins, 73 ties, 47 losses |
| HillClimbing | real_moves |
"coordinate" | "gaussian" | even: 34 wins, 37 ties, 37 losses |
| TabuSearch | tenure |
(7, 20) | "sqrt", 7 | worse: 12 wins, 92 ties, 26 losses, and 7 wins, 85 ties, 38 losses |
| TabuSearch | real_moves |
"coordinate" | "gaussian" | worse: 36 wins, 17 ties, 55 losses |
| TabuSearch | candidate_size |
1000 | 100 | even: 2 wins, 19 ties, 1 loss on the 22 discrete problems |
Differences from the papers¶
Details where ypea departs from an algorithm's paper or leaves an open point settled. The algorithm pages keep only the differences that change results a reader would compare with the paper.
- ABC: a source visited by several onlookers keeps the best of their candidates if it is better. Its trial counter then resets to 0, or else grows by the number of visits. At most one scout appears per iteration: the source with the largest trial counter, if it has reached the limit.
- BA: the 2005 note replaces each selected site by its best recruit even when that is worse. Here a site moves only to a strictly better recruit, and r shrinks geometrically by
dance_radius_damp. Derived counts round halves up. - BBO: Simon (2008) mutates a habitat with a probability based on its species count and replaces a feature with a random value, and keeps a fixed number of elite habitats.
- CA: the survivors are chosen by truncation, not by the CAEP tournament (each solution against 40 random rivals). A component that leaves the domain is clipped to the bound, where CAEP repairs it to a point just inside.
- CMA-ES: samples use the symmetric root B D B^T z of the covariance, where the tutorial writes B D z. Both have the same distribution, but seeded runs then do not depend on the signs of the eigenvectors.
- DE: the 1995 report needs a strict improvement to replace a target, and Storn and Price (1997, Fig. 3) accept ties, as ypea does. The report's exponential crossover allows L = 0 copied components, which wastes an evaluation, and its DE2 strategy has a separate lambda for the pull toward the best vector, where ypea uses F.
- FA: the distance is divided by sqrt(d), the attraction term has a random factor U(0, 1), and the new fireflies are merged with the old ones. Brightness is updated once per iteration, as in Yang's reference code. The random term alpha (rand - 1/2) of eq. 9 becomes
alpha * delta * U(-1, 1)in code units, andalpha_dampshrinks it, which the paper only suggests as future work. - HS: Lee and Geem (2005) use a fixed bandwidth in the units of each variable and keep the old value when a step leaves the bounds. The 2001 paper works on discrete values and moves a value to a neighboring one.
- ICA: the paper uses a linear power (cost minus the largest cost) on raw objective values, and
competition="paper"applies the paper's rule to the rank-based total costs. The paper removes every empire without colonies, and here only the weakest empire is checked after each competition. Colonies are split with largest remainder rounding, so the counts add up. The paper stops when one empire is left, and here the run continues until a limit. - IPOP-CMA-ES:
tol_hist_fundefaults to 1e-12, where the paper uses zero. - MOEA/D: of the two children of SBX, the first is kept (SBX swaps them at random).
update="generational"is a variant that is not in the paper. Its children cannot use the improvements made earlier in the same iteration, although on ZDT1 and DTLZ2 both modes reach a similar IGD. - MOPSO: the grid spans the range of the repository in each objective and is computed again after every change (the paper moves the grid bounds only when a new member falls outside them). Hypercubes with one member get fitness 10 like the others. r1 and r2 are drawn for each component, and mutation acts after the move and before the evaluation. A full repository drops a random member of its most crowded hypercube, and of members with equal objective values and violation only the first is kept.
- NSGA-II: the initial population also gets crowding distances, so the first tournaments use them. A full tie in a tournament is decided by a coin. The competitors are drawn with replacement and compared by front, where Deb's C code pairs two shuffled copies of the population and compares by direct domination.
- NSGA-III: when the hyperplane through the extreme points does not exist, the intercepts fall back to the largest values in the first front (the paper does not say what to do). The ideal and extreme points are kept over the whole run, as the paper's text (Section IV C) says, while its Algorithm 2 computes them from S_t alone. Aspiration points supplied by the user are not supported. The constrained NSGA-III of part II, which changes the selection and the niching for infeasible solutions, is not implemented.
- SHADE: this is the 2013 version, with the arithmetic mean for CR. The "SHADE 1.1" of the L-SHADE paper is
LSHADEwithout population reduction. - TLBO: the paper describes the phases learner by learner, and an asynchronous version lets later learners see the earlier updates. The random factor r is drawn per learner and per component, and TF per learner, where the paper writes one r and one TF.