arXiv:2610.10184cs.AIOct 2026

Manuscript Offprint

arXiv:2610.10184

Agentic AI-Assisted Modeling for Production Scheduling: Assessment in Constraint Programming

Ángel Sánchez-Fernández, Javier Pernas-Álvarez, Diego Crespo-Pereira

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Developing optimization models for production scheduling requires substantial expert effort. Research on large language models (LLMs) has followed two directions: specialized approaches for automated modeling, mostly for mixed-integer linear programming, which often rely on dedicated training or problem-specific architectures that limit industrial deployment; and agentic artificial intelligence for operational decision support, which generally assumes that the optimization model already exists. This study bridges both directions by assessing whether general-purpose LLMs, orchestrated as agents without task-specific training, can formulate and implement constraint programming models from natural-language problem descriptions. Single-agent and multi-agent architectures are integrated with a Model Context Protocol server that provides context-aware retrieval of solver documentation to mitigate hallucinations during implementation. Both are compared with a direct LLM baseline on six industry-oriented problems covering flow-shop, job-shop, flexible job-shop and resource-constrained warehouse scheduling, using three LLMs and assessing modeling accuracy, execution success, latency and token consumption. Formulation proves largely within reach of current LLMs, whereas implementation is the main barrier. The multi-agent workflow raises the share of scripts that run correctly as generated from 14.8% with a direct LLM call to 59.3%, reaching 80.6% on the four less complex problems, while tightly coupled intralogistics models remain an open challenge.

KEYWORDS

LLM; Agent; Production Planning; Constraint Programming; Scheduling

1. Introduction

In recent years, society has undergone a profound transformation driven by the rapid adoption of artificial intelligence (AI) based solutions. At the same time, the benefits of these technologies have become commonplace in academic research and discussions among industry experts in nearly every sector, with Operations Research (OR) emerging as a particularly promising application domain for Large Language Models (LLMs). Despite the maturity of simulation and optimization techniques, a significant gap remains between industrial practitioners and OR experts, since developing optimization models demands specialized expertise in mathematical formulation, problem under-

standing, requirements definition, coding, and data management, all of which make the modeling process time-consuming, costly, and often inaccessible to non-experts. This challenge has led to the concept of optimization democratization, in which AI serves as a bridge between both stakeholders by reducing technical barriers and enabling non-experts to develop and use optimization models more effectively (Ivanov, 2026; Simchi-Levi et al., 2025).

A growing stream of recent OR are centered on the emerging concept of Agentic AI, which leverages LLMs as cognitive engines capable of integrating task planning, tool invocation, and reflective reasoning (Jannelli et al., 2025a; Rossi and Prestwich, 2026). Through these capabilities, agentic systems can iteratively decompose and execute complex goals without relying on fully predefined workflows. In the OR domain, most current applications are oriented toward intelligent manufacturing and supply chain management, where AI agents can access relevant system information and augment the capabilities of digital twins and previously formulated mathematical models (Chen et al., 2026b; Schmitt et al., 2026; Ye and Li, 2026). Building on these resources, agentic systems can translate operational requirements into optimization scenarios, execute optimization solvers, extract and configure model parameters, and interpret results through natural language. This type of agentic integration closely aligns with the Industry 5.0 paradigm, where autonomy is oriented toward supporting human-centric decision making, human-AI collaboration, and intuitive interaction rather than replacing human responsibility (Ivanov, 2026; Leng et al., 2026; Ye and Li, 2026).

Nevertheless, most functionalities of current agent-based solutions still rely on optimization models that have already been developed. This raises several open research questions concerning the distribution of tasks between LLMs and human experts, the extent to which modeling activities can be delegated to autonomous agents, and the mechanisms through which human users can validate, supervise, and effectively exploit their outputs. In this context, a particularly relevant question is whether LLM-based frameworks can construct the optimization model itself from scratch and support the complete modeling workflow, from mathematical formulation to results reporting, including model coding, execution, and interpretation, based solely on problem data and a natural-language problem description. Several recent studies have begun to explore this direction, from which the following research gaps (RG) can be identified:

  • RG1 - Knowledge engineering bottlenecks: Many high-performing framework architectures, such as SMILO, SyntAGM or OptiMind, require domain experts to construct the inputs and modeling knowledge used to guide the LLM. This dependence on expert-defined knowledge limits their scalability and transferability across different application domains (Li et al., 2026b; Rossi and Prestwich, 2026; Zhang et al., 2025).

  • RG2 - Limited Benchmarking: Current evaluation is often hindered by benchmarks that contain ambiguous problem data, incorrect reference answers, or missing parameters. In addition, many benchmarks reported in the literature remain relatively general, relying on small-scale instances and conventional OR problems that have already been extensively studied. Therefore, new benchmarking efforts are needed to assess LLM-based frameworks on more complex, realistic, and demanding optimization problems.

  • RG3 - Token Consumption and latency: The execution of high-dependency, multi-agent systems, such as Chain-of-Experts architectures, and complex reasoning-based LLM workflows is often constrained by token limits and finite context windows (Rossi and Prestwich, 2026). Moreover, these frameworks typ-

ically involve substantial token consumption and high latency, which are frequently overlooked despite their direct impact on practical applicability. Therefore, token efficiency should be explicitly considered when developing LLM-based solutions and discussed in relation to the requirements of the target application. From the authors' perspective, this performance indicators are still insufficiently incorporated into robust benchmarking metrics.

  • RG4 - Hallucination: Since LLMs are probabilistic next-token predictors, they may hallucinate across multiple stages of the optimization process. During mathematical formulation, this can lead to the generation of nonexistent constraints, decision variables, or incorrectly specified objective functions. Similarly, during coding tasks involving specific optimization programming APIs, hallucinations may result in syntactically incorrect code, physically impossible models, or mathematically infeasible formulations.

  • RG5 - Limited exploration of LLM-optimization interactions: In the context of LLM-assisted frameworks for optimization, significant progress has been made in certain optimization methods, particularly mixed-integer linear programming (MILP). However, the use of LLMs to support the formulation, coding, and execution of CP models remains underexplored. This represents a relevant research gap, as CP has emerged as a strong alternative to MILP and has proven particularly effective for solving large-scale combinatorial problems in industrial settings.

This work addresses the identified research gaps by advancing the development of AI-assisted frameworks for solving OR problems through human-machine interaction based on natural language. The proposed approach aims to assess how autonomous agents can perform formulation and modeling tasks by delegating complex reasoning and coding to LLMs, while supporting human decision-making through more accessible optimization modeling. To this end, we propose several agentic approaches: First, a multi-agent framework is structured around two key stages of the optimization modeling process: (i) natural-language information processing and model formulation, where the problem description is translated into a set of decision variables, constraints, and an objective function; and (ii) model encoding according to the solver specifications, where the agent can retrieve and validate the required functions, handle parameter formats, and assemble the resulting model in accordance with the formulated problem. Second, a single-agent architecture is developed to assess whether assigning both stages to a single agent provides any benefits compared with the multi-agent approach. Nevertheless, in both approaches, the encoding architecture incorporates an MCP server hosting the solver API documentation. Through a context-retrieval toolset, the agent can identify and retrieve the relevant functions and specifications required for model encoding, with the aim of reducing hallucinations during this second stage.

The experiments conducted in this work aim to assess the extent to which these agentic approaches improve model generation compared with direct LLM-based modeling, while broadening the empirical evaluation of the field through six industry-based problems of varying complexity and a set of relevant performance indicators.

Specifically, this work makes the following contributions in response to the identified research gaps:

  • Scalable multi-agent modeling framework: An AI-agentic framework has been developed for the formulation and modeling of mathematical optimization problems using CP. The proposed framework reduces the degree of expert-in-the-loop

involvement through a structured workflow composed of three main stages: preprocessing of the problem description and input data, mathematical model formulation, and encoding for direct implementation. The framework is organized into clearly differentiated modules, enabling its scalability to other optimization techniques (RG1 and RG5).

  • MCP-based tool orchestration for CP: We developed an MCP server with a modular architecture in which the tools exposed to the LLM correspond to predefined methods of the CP API. This enables the LLM to translate the mathematical formulation into a CP model through structured tool selection and invocation. The toolset developed in this work allows the agent to search relevant documentation and modeling examples, and to identify and validate the functions required for model implementation without loading the entire API documentation into the context. This reduces unnecessary contextual information and token usage while helping to mitigate hallucinations during the model encoding and execution stages (RG4 and RG5).

  • LLMs benchmarking across industrial scheduling problems: The proposed framework is tested across six different scheduling problems, including flow-shop, job-shop, flexible job-shop, and three variants of resource-constrained scheduling involving transport and picking tasks in automated warehouses. These problems were selected to represent different problem structures and levels of complexity in terms of the number and type of decision variables, constraints, resources, and operational parameters, thereby challenging the evaluated LLMs under diverse and demanding conditions. The objective is to assess their performance in terms of effectiveness, measured through modeling accuracy, and efficiency, measured through token usage and latency, for both formulation and model execution tasks (RG2 and RG3).

The remainder of this paper is organized as follows. Section 2 reviews the literature on constraint programming models for production scheduling, LLM-based approaches to mathematical optimization, and agentic AI applications in scheduling and manufacturing. Section 3 presents the proposed agentic workflows and MCP architecture. Section 4 describes the experimental procedure and presents the experimental results. Section 5 discusses the main findings and their implications. Finally, Section 6 concludes the paper and outlines directions for future research.

References (38)