Skip to main content
QUICK REVIEW

[Paper Review] Diagnosing Infeasible Optimization Problems Using Large Language Models

Hao Chen, Gonzalo E. Constante‐Flores|arXiv (Cornell University)|Aug 23, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper introduces OptiChat, an LLM-powered chatbot that diagnoses infeasible optimization problems using natural language, leveraging GPT-4 and optimization solver integration to identify irreducible infeasible subsets (IIS) and provide actionable, human-readable explanations and repair suggestions. It achieves high accuracy (87.20–90.93%) and strong user satisfaction across both expert and non-expert users, demonstrating the feasibility of LLMs for interactive, accessible optimization troubleshooting.

ABSTRACT

Decision-making problems can be represented as mathematical optimization models, finding wide applications in fields such as economics, engineering and manufacturing, transportation, and health care. Optimization models are mathematical abstractions of the problem of making the best decision while satisfying a set of requirements or constraints. One of the primary barriers to deploying these models in practice is the challenge of helping practitioners understand and interpret such models, particularly when they are infeasible, meaning no decision satisfies all the constraints. Existing methods for diagnosing infeasible optimization models often rely on expert systems, necessitating significant background knowledge in optimization. In this paper, we introduce OptiChat, a first-of-its-kind natural language-based system equipped with a chatbot GUI for engaging in interactive conversations about infeasible optimization models. OptiChat can provide natural language descriptions of the optimization model itself, identify potential sources of infeasibility, and offer suggestions to make the model feasible. The implementation of OptiChat is built on GPT-4, which interfaces with an optimization solver to identify the minimal subset of constraints that render the entire optimization problem infeasible, also known as the Irreducible Infeasible Subset (IIS). We utilize few-shot learning, expert chain-of-thought, key-retrieve, and sentiment prompts to enhance OptiChat's reliability. Our experiments demonstrate that OptiChat assists both expert and non-expert users in improving their understanding of the optimization models, enabling them to quickly identify the sources of infeasibility.

Motivation & Objective

  • To address the challenge of diagnosing infeasible optimization models, which are difficult for non-experts to interpret due to complex mathematical formulations.
  • To develop a human-centered, natural language interface that enables interactive troubleshooting of infeasible optimization problems without requiring coding or deep optimization knowledge.
  • To enhance LLM reliability in optimization diagnosis using advanced prompting techniques and integration with optimization solvers.
  • To evaluate the effectiveness of the system across users with varying levels of expertise in optimization.
  • To explore the potential of large language models as autonomous agents for real-world decision-support in optimization.

Proposed method

  • OptiChat is built on GPT-4 and integrates with optimization solvers (e.g., CPLEX, Gurobi) to automatically detect the Irreducible Infeasible Subset (IIS), the minimal set of conflicting constraints causing infeasibility.
  • The system employs few-shot learning to provide contextually relevant examples of model diagnosis and repair, improving response consistency.
  • Expert chain-of-thought prompting is used to structure reasoning steps, enhancing interpretability and accuracy of explanations.
  • Sentiment prompting guides the model to generate helpful, constructive, and user-friendly responses, improving user trust and engagement.
  • A novel key-retrieve prompting technique extracts parameter and constraint names directly from the model script, increasing precision in referencing model components.
  • Function-calling capabilities in GPT-4 allow OptiChat to dynamically modify model parameters (e.g., by adding slack variables) based on user feedback to test feasibility.

Experimental results

Research questions

  • RQ1Can a large language model-based chatbot effectively diagnose infeasible optimization problems using natural language, without requiring users to write code or possess optimization expertise?
  • RQ2How accurate and reliable are LLM-generated explanations and repair suggestions for infeasible optimization models compared to expert-level diagnosis?
  • RQ3To what extent do prompting techniques such as few-shot learning, chain-of-thought, and sentiment prompting improve the robustness and usability of LLM-based optimization assistants?
  • RQ4How does user expertise level affect the perceived quality and effectiveness of the chatbot’s explanations and troubleshooting support?
  • RQ5Can a system like OptiChat reduce the time and cognitive load required to identify and resolve infeasibility in real-world optimization models?

Key findings

  • OptiChat achieved a 90.93% satisfaction rate among inexperienced users and 87.20% among experienced users in assessing the quality of its responses, indicating strong reliability across user groups.
  • The troubleshooting success rate was 88% for inexperienced users and 96.77% for experienced users, demonstrating high effectiveness in guiding users to fix infeasible models.
  • Participants consistently reported that OptiChat’s explanations were clear, accessible, and enhanced their understanding, even when they lacked optimization background.
  • The system’s ability to provide accurate, step-by-step repair suggestions—especially for single-parameter changes—was highly valued and frequently cited as a key strength.
  • Users appreciated the use of real-world analogies and simplified language, which improved comprehension and reduced cognitive load.
  • Feedback indicated that language adaptation based on user expertise could further improve usability, suggesting a need for adaptive explanation strategies in future versions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.