Clustering-Guided Automatic Generation of Algorithms for the Multidimensional Knapsack Problem

We propose a hybrid framework that integrates instance clustering with Automatic Generation of Algorithms (AGA) to produce specialized algorithms for classes of Multidimensional Knapsack Problem (MKP) instances. This approach is highly relevant given the latest trends in AI, where Large Language Models (LLMs) are actively being used to automate and refine algorithm design through evolutionary frameworks. Our method utilizes a feature-based representation of 328 MKP instances and evaluates K-means, HDBSCAN, and random clustering to produce 11 clusters per method. For each cluster, a master optimization problem was solved using Genetic Programming, evolving algorithms encoded as syntax trees. Fitness was measured as relative error against known optima, a similar objective to those being tackled in LLM-driven optimization. Experimental and statistical analyses demonstrate that clustering-guided AGA significantly reduces average relative error and accelerates convergence compared with AGA trained on randomly grouped instances. K-means produced the most consistent cluster-specialization. Cross-cluster evaluation reveals a trade-off between specialization and generalization. The results demonstrate that clustering prior to AGA is a practical preprocessing step for designing automated algorithms in NP-hard combinatorial problems, paving the way for advanced methodologies that incorporate AI techniques.

Authors

Institutions

Publication Details

Journal
Machine Learning and Knowledge Extraction
Published
2025-11-12
DOI
https://doi.org/10.3390/make7040144
Citations
1
Primary Topic
Optimization and Packing Problems
Type
article
Field-Weighted Citation Impact
1.24

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Clustering-Guided Automatic Generation of Algorithms for the Multidimensional Knapsack Problem

Fabián A. Cornejo, Vı́ctor Parada, Cristian Inzulza, Caio Bezares
1 citations
Machine Learning and Knowledge Extraction
Optimization and Packing Problems
1.24
article

Clustering-Guided Automatic Generation of Algorithms for the Multidimensional Knapsack Problem

Fabián A. Cornejo, Vı́ctor Parada, Cristian Inzulza, Caio Bezares
article en
1 citations

Abstract

We propose a hybrid framework that integrates instance clustering with Automatic Generation of Algorithms (AGA) to produce specialized algorithms for classes of Multidimensional Knapsack Problem (MKP) instances. This approach is highly relevant given the latest trends in AI, where Large Language Models (LLMs) are actively being used to automate and refine algorithm design through evolutionary frameworks. Our method utilizes a feature-based representation of 328 MKP instances and evaluates K-means, HDBSCAN, and random clustering to produce 11 clusters per method. For each cluster, a master optimization problem was solved using Genetic Programming, evolving algorithms encoded as syntax trees. Fitness was measured as relative error against known optima, a similar objective to those being tackled in LLM-driven optimization. Experimental and statistical analyses demonstrate that clustering-guided AGA significantly reduces average relative error and accelerates convergence compared with AGA trained on randomly grouped instances. K-means produced the most consistent cluster-specialization. Cross-cluster evaluation reveals a trade-off between specialization and generalization. The results demonstrate that clustering prior to AGA is a practical preprocessing step for designing automated algorithms in NP-hard combinatorial problems, paving the way for advanced methodologies that incorporate AI techniques.

Machine Learning and Knowledge ExtractionVol. 7(4)
Universidad de Santiago de Chile (CL), Universidad Central de Chile (CL)
Universidad de Santiago de Chile, Agencia Nacional de Investigación y Desarrollo
Openalex Percentile: Top 14%
Optimization and Packing Problems
1.24
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Clustering-Guided Automatic Generation of Algorithms for the Multidimensional Knapsack Problem — Fabián A. Cornejo, Vı́ctor Parada, et al. · Machine Learning and Knowledge Extraction (2025) | TGRS Research Map | TGRS