OptMaster: A DAG-Based Framework for Formulation and Heuristic Discovery in Optimization
Abstract
Lay Summary
Many important decisions in science and industry require choosing the best option under a set of rules. Examples include allocating resources, planning schedules, and arranging objects efficiently. This paper studies two common challenges in this area. The first is to turn a real-world problem description into a clear mathematical model. The second is to find practical solution strategies for hard problems. Exact methods may be too slow for these problems. We present OptMaster, a framework that uses large language models to address both challenges. OptMaster does not generate only one solution. Instead, it explores many possible solution paths. Each attempt is converted into executable code. The code is then tested and checked by a separate verification step. Useful lessons from both successful and failed attempts are passed to later attempts. In this way, the system can improve over time. Across several benchmarks, OptMaster produces more reliable mathematical models. It also finds strong practical strategies for hard problems such as graph partitioning and circle packing. The results show that language models can be more useful for optimization. This happens when they are combined with execution, verification, and structured search, rather than relying only on text-based reasoning.