This work investigates the potential of Large Language Models (LLMs) in automating the formulation and solution of mathematical programming problems. Specifically, we evaluate the effectiveness of two distinct prompting strategies: One-Stage prompting, where LLMs directly generate solver code, and Two-Stage prompting, where the formulation of a mathematical model precedes its implementation. Our empirical study examines the performance of multiple LLMs, both open-source and proprietary, across three optimization problem categories: resource allocation, blending, and vehicle routing. For each problem, we assess the LLMs’ capabilities to generate accurate mathematical formulations and executable Python code. The results provide actionable guidelines for selecting prompting strategies when deploying LLMs as decision-support co-pilots in operations research.

The Potential of Large Language Models in Solving Optimization Problems: An Empirical Study / Boresta, M., Romito, F., Saccucci, L.. - (2025), pp. 1-20. [10.21203/rs.3.rs-6734123/v1]

The Potential of Large Language Models in Solving Optimization Problems: An Empirical Study

Boresta, Marco
;
Romito, Francesco;Saccucci, Lorenzo
2025

Abstract

This work investigates the potential of Large Language Models (LLMs) in automating the formulation and solution of mathematical programming problems. Specifically, we evaluate the effectiveness of two distinct prompting strategies: One-Stage prompting, where LLMs directly generate solver code, and Two-Stage prompting, where the formulation of a mathematical model precedes its implementation. Our empirical study examines the performance of multiple LLMs, both open-source and proprietary, across three optimization problem categories: resource allocation, blending, and vehicle routing. For each problem, we assess the LLMs’ capabilities to generate accurate mathematical formulations and executable Python code. The results provide actionable guidelines for selecting prompting strategies when deploying LLMs as decision-support co-pilots in operations research.
2025
File allegati a questo prodotto
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/1774825
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact