OptiChat: Bridging Optimization Models and Practitioners with Large Language Models

Hao Chen, Gonzalo Esteban Constante-Flores, Krishna Sri Ipsit Mantri, Sai Madhukiran Kompalli, Akshdeep Singh Ahluwalia +1 more
1/14/2025
cs.HCcs.CLcs.LG

No official code found. Best implementation: li-group/OptiChat (68 stars, MIT, last commit 2026-03-30).

Abstract

Optimization models have been applied to solve a wide variety of decision-making problems. These models are usually developed by optimization experts but are used by practitioners without optimization expertise in various application domains. As a result, practitioners often struggle to interact with and draw useful conclusions from optimization models independently. To fill this gap, we introduce OptiChat, a natural language dialogue system designed to help practitioners interpret model formulation, diagnose infeasibility, analyze sensitivity, retrieve information, evaluate modifications, and provide counterfactual explanations. By augmenting large language models (LLMs) with functional calls and code generation tailored for optimization models, we enable seamless interaction and minimize the risk of hallucinations in OptiChat. We develop a new dataset to evaluate OptiChat's performance in explaining optimization models. Experiments demonstrate that OptiChat effectively bridges the gap between optimization models and practitioners, delivering autonomous, accurate, and instant responses.

View on arXivView PDF

Code Implementations(1)

li-group/OptiChatCommunity100%
MIT

OptiChat: Explaining Optimization Models Using LLMs

6825PythonAug 6, 20236 months agoMIT

Similar Papers

Cite this paper

@article{chen2025optichat,
  title  = {OptiChat: Bridging Optimization Models and Practitioners with Large Language Models},
  author = {Hao Chen and Gonzalo Esteban Constante-Flores and Krishna Sri Ipsit Mantri and Sai Madhukiran Kompalli and Akshdeep Singh Ahluwalia and Can Li},
  year   = {2025},
  eprint = {2501.08406},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.08406v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.08406.svg)](https://codeofpaper.com/paper/2501.08406)

Discussion