Abstract
Operations Research (OR) is vital for decision-making in many industries. While recent OR methods have seen significant improvements in automation and efficiency through integrating Large Language Models (LLMs), they still struggle to produce meaningful explanations. This lack of clarity raises concerns about transparency and trustworthiness in OR applications. To address these challenges, we propose a comprehensive framework, Explainable Operations Research (EOR), emphasizing actionable and understandable explanations accompanying optimization. The core of EOR is the concept of Decision Information, which emerges from what-if analysis and focuses on evaluating the impact of complex constraints (or parameters) changes on decision-making. Specifically, we utilize bipartite graphs to quantify the changes in the OR model and adopt LLMs to improve the explanation capabilities. Additionally, we introduce the first industrial benchmark to rigorously evaluate the effectiveness of explanations and analyses in OR, establishing a new standard for transparency and clarity in the field.
Introduction
Operations Research (OR) serves as the backbone of modern industrial decision-making, optimizing complex systems ranging from global supply chains to airline scheduling. However, as these models grow in complexity, they often become "black boxes" to the managers who rely on them. When a user asks a critical "what-if" question—such as the impact of a 15% rise in transportation costs—traditional solvers provide a new numerical solution but fail to explain the underlying rationale or quantify the relative importance of specific constraints.
While Large Language Models (LLMs) have recently been integrated into OR to automate code generation for solvers like Gurobi, the focus has remained primarily on accuracy and efficiency. Existing tools like OptiGuide can handle basic scenarios but struggle with complex modifications like constraint deletion or multi-variable updates. This paper introduces the Explainable Operations Research (EOR) framework to bridge this gap, providing the "Justification Explanations" necessary for building user trust and meeting regulatory requirements like the GDPR’s "right to explanation."
The EOR Framework
The EOR framework is designed as a multi-agent system that prioritizes transparency and security alongside optimization accuracy. The system coordinates several specialized agents to transform user queries into actionable insights.
Multi-Agent Workflow
- Commander Agent: Acts as the central orchestrator, interpreting user intent and managing the flow of information between other agents and the user.
- Writer Agent: Responsible for generating or updating the optimization code (e.g., Python/Gurobi) and synthesizing the final natural language explanations.
- Safeguard Agent: Provides a critical security and validation layer, checking generated code for logical errors or potentially malicious snippets before execution.
Quantifying "Decision Information"
To provide deep, quantitative explanations, the EOR framework introduces the concept of Decision Information. This is achieved by representing Linear Programs (LPs) as Bipartite Graphs, where nodes represent decision variables and constraints. By calculating the Normalized Graph Edit Distance (NGED) between the original and modified problem graphs, the system can measure the structural magnitude of a change. This metric allows the LLM to "sense" the impact of a query, moving beyond simple attribution to provide justifications for specific trade-offs, such as how a new constraint directly correlates to increased operational costs.
Experimental Setup
To rigorously evaluate the framework, the authors developed a new Industrial Benchmark for explainable OR. Based on the IndustryOR dataset, this benchmark includes 30 categorized problems across domains like logistics, finance, and supply chain management. Each problem is paired with 10 unique, expert-crafted queries involving complex modifications (adding, deleting, or updating constraints), resulting in 300 total test cases. The benchmark provides ground-truth Python code, optimal solutions, and expert-validated labels to ensure high-fidelity evaluation.
Results and Discussion
The EOR framework was tested against standard LLM prompting and the OptiGuide baseline using various iterations of GPT-4.
Modeling Accuracy
As shown in the performance data, EOR significantly outperforms existing methods. In zero-shot settings, EOR achieved modeling accuracies between 75.67% and 88.33%, whereas the Standard baseline and OptiGuide often struggled to exceed 75% and 47%, respectively. When provided with a single example (one-shot), EOR's performance climbed as high as 95.33% with GPT-4-Turbo, demonstrating remarkable robustness and learning efficiency.
Explanation Quality
Beyond numerical accuracy, the framework was evaluated on the quality of its explanations using both automated LLM-based metrics and blind human reviews. EOR consistently scored above 9.3 out of 10 in categories such as Explanation of Correctness (EC) and Explanation of Results (ER). In contrast, baseline models frequently failed to reach a score of 7.0, often providing summaries of the model's actions (Attribution) rather than the rationale behind the changes (Justification).
Conclusion
The EOR framework represents a significant advancement in making Operations Research more transparent and accessible. By formalizing "Decision Information" through graph theory and utilizing a multi-agent LLM architecture, the system provides actionable, human-readable justifications for complex optimization results. Future work will focus on overcoming the current "self-correction plateau" in LLM logic and developing even more sophisticated automated evaluation techniques to further reduce modeling errors in highly complex industrial scenarios.
Summary updated