cs.AIMar 24, 2026

Can Large Language Models Reason and Optimize Under Constraints?

Authors: Fabien Bernier, Salah Ghamizi, Pantelis Dogoulis, Maxime Cordy

Organizations: SnT – University of Luxembourg, Luxembourg · Luxembourg Institute of Health (LIH), Luxembourg

Abstract

Large Language Models (LLMs) have demonstrated great capabilities across diverse natural language tasks; yet their ability to solve abstraction and optimization problems with constraints remains scarcely explored. In this paper, we investigate whether LLMs can reason and optimize under the physical and operational constraints of Optimal Power Flow (OPF) problem. We introduce a challenging evaluation setup that requires a set of fundamental skills such as reasoning, structured input handling, arithmetic, and constrained optimization. Our evaluation reveals that SoTA LLMs fail in most of the tasks, and that reasoning LLMs still fail in the most complex settings. Our findings highlight critical gaps in LLMs' ability to handle structured reasoning under constraints, and this work provides a rigorous testing environment for developing more capable LLM assistants that can tackle real-world power grid optimization problems.

Figures & tables

Explore similar work

CardsList
  1. Right Answers, Costly Models: The Efficiency Gap in LLM-based Optimization Modeling

    Sep 30, 2026Zhong Li, Xin Huang, Jinhui Wan +6LLM EvaluationLarge Language Model-Guided Optimization

  2. OptiVerse: A Comprehensive Benchmark towards Optimization Problem Solving

    Apr 23, 2026Xinyu Zhang, Boxuan Zhang, Yuchen Wan +5LLM EvaluationBenchmark Design