Large language models for metaheuristic implementation: a case study with variable neighborhood search

Aidan Riordan, Daniel Aloise, Raúl Martín-Santamaría

Communication écrite (2025)

Accéder à ce document
Accès restreint
Accès restreint au texte intégral dans PolyPublie jusqu'au 19 mars 2027
Version finale avant publication
Texte Texte • 1MB •

Résumé

Metaheuristics are widely used in combinatorial optimization to address large-scale problems but often require considerable expertise and engineering effort. In this paper, we investigate whether recent large language models (LLMs) can translate state-of-the-art algorithmic descriptions into performant code with minimal human intervention. We introduce a generalizable prompting framework: Context, Communication, and Iteration (CCI), and apply it to replicate a Variable Neighborhood Search for the balanced minimum sum-of-squares clustering problem using Gemini 2.5 Pro and Claude Sonnet 4. According to our computational experiments, Gemini achieved solutions with a mean difference of 0.032% from the reference implementation (median: 0.009%), being statistically non-inferior within a 0.01% margin. Notably, Gemini corrected a missing mathematical term in the neighborhood evaluation formula described in the source paper, whereas Claude did not. Our findings suggest that LLM-assisted engineering is a viable pathway to facilitate algorithm replication, making high-performance methods more accessible to researchers and allowing them to tackle larger and more complex problems.

Mots clés

Matériel d'accompagnement:
Organismes subventionnaires:
Spanish Ministerio de Ciencia e Innovación, ERDF, NSERC, NSF
Numéro de subvention:
RED2022-134480-T, PID2021-125709OA-C22, TEC-2024/COM-404, 2023-04466, 2244340
ISBN:
9783032195821
Adresse URL de PolyPublie:
Nom de la conférence:
11th International Conference on Variable Neighborhood Search (ICVNS 2025)
Lieu de la conférence:
Montreal, Quebec, Canada
Date(s) de la conférence:
2025-05-12 - 2025-05-14
Éditeurs ou éditrices:
Maison d'édition:
Springer
OAI:
oai:publications.polymtl.ca:76271
ORCID
Date du dépôt:
05 mai 2026 14:18
Dernière modification:
14 oct. 2026 14:37
Citer en APA 7:
Riordan, A., Aloise, D., & Martín-Santamaría, R. (mai 2025). Large language models for metaheuristic implementation: a case study with variable neighborhood search [Communication écrite]. 11th International Conference on Variable Neighborhood Search (ICVNS 2025), Montreal, Quebec, Canada. https://doi.org/10.1007/978-3-032-19582-1_11

Statistiques

Total des téléchargements à partir de PolyPublie

Téléchargements par année

Provenance des téléchargements

Dimensions

Actions réservées au personnel

Afficher document
Afficher document