From Hand-Crafted to LLM-Based Variation Operators in Metaheuristics: A Tutorial
Organizations: Apeiron Intelligence, Barcelona, Spain · Artificial Intelligence Research Institute (IIIA-CSIC), Bellaterra, Spain · Universitat Politècnica de Catalunya (UPC), Barcelona, Spain
Abstract
Large language models (LLMs) are increasingly being employed as variation operators in metaheuristics, generating or modifying candidate solutions, heuristics, or programs inside iterative search loops. This shift reframes variation as a model call conditioned on different types of information. We introduce an operator-level framework with two descriptors: (1) the type of prompt-conditioning information at variation time (Numeric, Symbolic, Linguistic), and (2) artifact persistence, identifying what survives the model call (Transient, Amortized, Transfer). The tutorial shows how to classify, build, and select these operators through a worked build template, a method survey, an evidence table, and a cost-aware decision guide.
Figures & tables
| Work | Type of work | Organizing axis | After reading, you can … |
|---|---|---|---|
| LLM4AD ( Liu et al., 2026b ) (CSUR) | survey | the LLM’s role : optimizer / predictor / extractor / designer | locate a method by the role the LLM plays |
| Da Ros et al. ( Da Ros et al., 2026 ) (CSUR) | systematic review (PRISMA) | task, architecture, dataset, application | find the census of LLM-for-CO (combinatorial optimization) studies |
| Wu et al. ( Wu et al., 2025 ) | survey + roadmap | direction of enhancement: LLM-enhanced EA vs. EA-enhanced LLM | see how evolutionary computation (EC) and LLMs enhance each other |
| Zhang et al. ( Zhang et al., 2025b ) | survey | integration stage: modeling solving | trace the modeling-to-solving pipeline |
| This tutorial | tutorial | what the operator is conditioned on : Numeric / Symbolic / Linguistic | build, classify, and choose an operator |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Channels present | Dominance (ablation/source) | Drop-channel reasoning |
|---|---|---|---|
| OPRO | (solution, score) trajectory | Numeric (boundary) | drop the score trajectory and no signal steers the next proposal |
| EvoPrompt | parent prompt text, scores | Numeric (boundary) | scored parents drive selection, while parent text is the artifact varied; boundary label retained |
| LMX | parent solutions (few-shot) | Numeric | drop the parents and there is no crossover to perform |
| FunSearch | sampled high-scoring programs, scores | Symbolic | drop the program text and there is nothing to mutate |
| LLaMEA | algorithm code, score, error note | Symbolic | drop the code and no algorithm remains; the error note is annotated |
| MCTS-AHD | program, tree-search state, scores | Symbolic | drop the code and the tree explores nothing executable |
| Method | Dominant Conditioning | Persistence | Conditions on emits |
| EvoLLM ( Lange et al., 2024 ) | Numeric | Transient | fitness-ranked solution vectors distribution/candidate update |
| LMEA ( Liu et al., 2024d ) | Numeric | Transient | parent tours + tour lengths (TSP instantiation) offspring tour (LLM crossover/mutation) |
| DiscoPOP ( Lu et al., 2024 ) | Symbolic | Amortized | prior objective/loss code + eval metrics preference-optimization loss; held-out-task reuse |
| ELM ( Lehman et al., 2023 ) | Symbolic | Transient | parent code + edit instruction (diff model) program; adjacent background anchor (Section 5 ) |
| EvoPrompting ( Chen et al., 2023 ) | Symbolic | Amortized | parent architecture code + fitness NN architecture code |
| GI-LLM ( Brownlee et al., 2023 ) | Symbolic | Transient | source code + edit type code patch (GI mutation) |
Large Language Model-Guided Optimization
Large Language Model-Guided Optimization uses language models to propose, steer, and refine solutions to hard search and design problems.
See all 605 papers