Operators reference

evomo.operators holds the 62 evolutionary kernels that evox does not provide: constraint handling, truncation and archives, reference-vector utilities, sparse variation and EMO sampling. The genetic operators evox.operators already supplies are re-used, never copied, so a kernel here always adds EMO-specific machinery (row counts: 41 selection, 10 sampling, 7 crossover, 4 mutation).

Every kernel is a traced tensor function: call it inside init, init_step, step or evaluate, because evoxc has no eager mode and a tensor op outside an active trace raises TraceError. Each table below is one subpackage, its rows sorted by name, and the module column names the file the symbol is defined in — which is not always the file its name suggests.

selection (41)

Kernel Module Contract
apd operators/selection/rvea.py (n, m), (nv, m), theta, ideal=None, gamma=None -> (n, nv) float32.
archive_update operators/selection/truncation.py Two bounded archives -> one, as (x (cap, d), f (cap, m), cv (cap, c) | None, valid (cap,) bool).
associate_to_reference operators/selection/nsga3.py (n, m) float32, (nv, m) float32 -> (n,) int32, (n,) float32.
cat_violation operators/selection/constraint.py (*cvs) -> (sum_n, c) or None: None-preserving concatenate(axis=0).
constrained_crowding_selection operators/selection/constraint.py (n, m), (n, c), count: int -> (count,) int32 index, (count,) i32 rank, (count,) f32 distance.
constrained_env_selection operators/selection/constraint.py (n, d), (n, m), (n, c), topk: int -> (topk, d), (topk, m), (topk, c), (topk,) i32, (topk,) f32.
constrained_rank operators/selection/constraint.py (n, m) float32, (n, c) float32, count: int|None -> (n,) int32: PlatEMO NDSort.
constrained_ref_vec_guided operators/selection/rvea.py (n, d), (n, m), (nv, m), theta, (n, c)|None -> (nv, d), (nv, m), (nv, c)|None, (nv,) bool.
constrained_tournament_selection operators/selection/constraint.py key, n_round: int, (n,) float32, (n, c), tournament_size: int = 2 -> (n_round,) int32.
constraint_domination operators/selection/constraint.py (n1, c), (n2, c) -> (n1, n2) bool: total_x < total_y (pure CV order).
constraint_improvement operators/selection/constraint.py objective_delta, old_total, new_total -> float32: violation change first.
constraint_keys operators/selection/constraint.py (*keys, cv=None) -> list: keys, plus total_violation(cv) last.
crowding_distance_by_rank operators/selection/truncation.py (n, m) float32, (n,) int32, constant_boundaries: bool = False -> (n,) float32.
distance_truncation operators/selection/truncation.py (n, n) float32, count: int, neighbors: int | None = None -> (count,) int32.
environmental_selection operators/selection/pareto.py (n, d), (n, m), topk: int, cv=None -> (x, f, cv, rank, crowding) cut to topk.
epsilon_constraint operators/selection/constraint.py (n, m), (n, c), epsilon -> (n,) int32: epsilon-constraint rank.
epsilon_level operators/selection/constraint.py gen, max_gen: int, eps0: float, cp: float = 5.0: eps0 * (1 - gen/max_gen)**cp.
grid_archive_select operators/selection/grid.py (n, m) float32, capacity: int, div: int -> (capacity,) int32 PESA-II truncation.
grid_bounds operators/selection/grid.py (n, m) float32, div: int, margin: bool = False -> (m,) float32, (m,) float32.
grid_density operators/selection/grid.py (n, n) bool -> (n,) int32: number of rows sharing each row's cell (self included).
grid_difference operators/selection/grid.py (n, m) int32 -> (n, n) float32: GrEA's grid difference GD(i, j).
grid_dominance operators/selection/grid.py (n, m) int32 -> (n, n) bool: out[i, j] iff cell i grid-dominates cell j.
grid_locations operators/selection/grid.py (n, m) float32, (m,) float32, (m,) float32, div: int -> (n, m) int32 cell coordinates.
grid_representatives operators/selection/grid.py (n, n) bool -> (n,) bool: True for the lowest-index row of every cell.
grid_same_cell operators/selection/grid.py (n, m) int32 -> (n, n) bool: same[i, j] iff rows i and j share a cell.
group_counts operators/selection/nsga3.py (n,) int32, (n,) bool, n_groups: int -> (n_groups,) int32.
is_feasible operators/selection/constraint.py (n, c) -> (n,) bool: total_violation(cv) == 0.
kth_neighbor_distance operators/selection/grid.py (n, m) float32, k: int -> (n,) float32 distance to the k-th nearest other row.
niche_counts operators/selection/grid.py (n, m) float32, radius: float -> (n,) int32 rows inside each row's niche.
niching operators/selection/nsga3.py (key, (n,) i32, (n,) f32, count: int, n_ref: int, valid=None, complete=None) -> (count,) i32.
normalize_objectives operators/selection/nsga3.py (n, m) float32, mask=None, ideal=None -> (n, m) float32, (m,) float32.
pareto_rank operators/selection/pareto.py (n, m) float32, cv=None -> (n,) int32: zero-based non-dominated rank.
prefer_by_constraint operators/selection/constraint.py (bool), total, total -> bool: (cand < inc) | ((cand == inc) & objective_better).
rank_with_constraints operators/selection/constraint.py (n, m) float32, (n, c) float32 -> (n,) int32: Deb's feasibility-first rank.
reference_vector_adaptation operators/selection/rvea.py (nv, m) float32, (n, m) float32, guard_nonpositive: bool = False -> (nv, m) f32.
reference_vector_geometry operators/selection/rvea.py (n, m) float32, (nv, m) float32 -> (n,) i32, (n,) f32, (nv,) f32, (m,) f32.
take_rows operators/selection/pareto.py (k,) int, (n, d), (n, m), cv=None -> (k, d), (k, m), (k, c) | None row subset.
take_violation operators/selection/constraint.py (n, c), (k,) int -> (k, c) or None: None-preserving row gather.
topk_by_keys operators/selection/truncation.py (*keys, k: int) -> (k,) int32: the first k rows of the lexicographic order.
total_violation operators/selection/constraint.py (n, c) float32 -> (n,) float32 summed constraint violation.
unique_rows_sorted operators/selection/truncation.py (n, k) float32 -> ((n, k) float32, (n,) bool, (n,) int32): sorted rows and duplicates.

sampling (10)

Kernel Module Contract
das_dennis_count operators/sampling/reference.py Number of rows evox.operators.sampling.uniform_sampling(n, m) returns.
lsmop_variable_grouping operators/sampling/grouping.py Group the dim decision variables with LSMOP's logistic-map schedule.
moead_parent_table operators/sampling/subproblem.py (key, (n, T) i32 neighbors, n_parents: int, delta: float) -> (n, n_parents) int32.
neighborhood_table operators/sampling/subproblem.py ((n, m) f32 weights, n_neighbors: int) -> (n, n_neighbors) int32.
random_subproblem_table operators/sampling/subproblem.py (key, n_sub: int, n_neighbors: int) -> (n_sub, n_neighbors) int32.
reference_points_das_dennis operators/sampling/reference.py Single-layer Das-Dennis lattice -- a thin wrapper over evox's sampler.
reference_points_two_layer operators/sampling/reference.py Two-layer reference points of Deb and Jain (IEEE TEC 18(4), 2014, section IV).
sparse_mask_sampling operators/sampling/sparse.py (key, n: int, dim: int, sparsity: float | (n,) f32) -> (n, dim) float32.
two_layer_count operators/sampling/reference.py Number of rows reference_points_two_layer(n, m, bound_layer_count) returns.
weight_vectors_dirichlet operators/sampling/weights.py (key, n: int, m: int) -> (n, m) float32 -- n Dirichlet(1) weight rows.

crossover (7)

Kernel Module Contract
de_difference_sum operators/crossover/de.py (pop (n,d) f32, pairs (n,2k) int, F) -> (n,d) f32 -- F * sum_j (a_j - b_j).
de_mutation operators/crossover/de.py (pop (n,d), base_idx (n,), pairs (n,2k), F, current_to_rand, K) -> (n,d) f32.
grouped_real_mutation operators/crossover/grouped.py (key, x (n,d) f32, lb (d,), ub (d,), n_groups, eta) -> (out (n,d) f32, selected (n,d) bool).
sbx_pairs operators/crossover/sbx.py (key, pop (N,d), parents (n,2) int, pro_c, dis_c) -> (n,d) f32 -- paired SBX.
sparse_mask_variation operators/crossover/sparse.py (key, first (n,d), second (n,d), variable_fitness (d,), groups (n,d) bool|None) -> (n,d) f32.
sparse_tournament_variable operators/crossover/sparse.py (key, eligible (n,d) bool, variable_fitness (d,), remove) -> (idx (n,) i32, active (n,) bool).
ssbx operators/crossover/sbx.py (key, x (2n,d) f32, lb (d,), ub (d,), pro_c, dis_c) -> (2n,d) f32 -- sparse SBX.

mutation (4)

Kernel Module Contract
bit_flip_mutation operators/mutation/binary.py (key, x (n,d) f32, pro_m=1.0, offset=0.0, scale=1.0) -> (n,d) f32: bit flip.
gaussian_mutation operators/mutation/gaussian.py (key, x (n,d) f32, lb (d,), ub (d,), sigma) -> (n,d) f32: gaussian step mutation.
sparse_polynomial_mutation operators/mutation/sparse.py (key, x (n,d) f32, lb (d,), ub (d,), pro_m=1.0, dis_m=20.0) -> (n,d) f32.
sparse_support_repair operators/mutation/sparse.py (key, x (n,d) f32, lb (d,), ub (d,), target_nonzero (n,) i32) -> (n,d) f32.