Introduction
Linear Programming (LP) is a cornerstone of industrial optimization, used extensively in fields ranging from power grid management to logistics. While modern solvers like Gurobi and CPLEX are highly optimized, their performance is remarkably sensitive to the initial "formulation"—specifically the ordering of variables and constraints. Traditionally, these formulations are designed by human experts, but an order that is intuitive for a human may not be computationally optimal for a solver's internal algorithms, such as the Simplex method.
This research addresses this gap by proposing a machine learning-based "front-end" that automatically reformulates LP problems before they reach the solver. By rearranging the problem structure, the researchers achieved a 25% reduction in solver iterations and a 15% reduction in total solving time across diverse industrial datasets.
Methodology: The "Learn to Reformulate" Pipeline
The proposed method transforms an LP instance into a more solver-friendly version through a three-stage pipeline:
- Representation: The LP problem is modeled as a bipartite graph. One set of nodes represents variables, and the other represents constraints, with edges corresponding to the coefficients in the constraint matrix.
- Embedding: A Graph Convolutional Neural Network (GCNN) processes the bipartite graph to capture structural relationships between variables.
- Aggregation & Permutation: To handle large-scale LPs with millions of variables, the system groups variables into clusters. A Pointer Network then determines an optimal permutation (ordering) for these clusters.
The system is trained using Reinforcement Learning (RL), where the reward signal is the direct improvement in solver performance (e.g., reduction in iterations or time) compared to the original human-designed formulation.
Datasets and Evaluation
The method was evaluated on three distinct problem types:
- BIP (Balanced Item Placement): Small-scale container placement problems.
- WA (Workload Apportionment): Medium-to-large scale data stream distribution.
- HPP (Huawei Production Planning): A massive real-world industrial dataset featuring instances with over 1 million constraints and 2 million variables.
Key Results and Insights
The results indicate that human-designed variable ordering is rarely optimal for machine solvers. Key findings include:
- Efficiency Gains: Reformulated LPs required 25% fewer iterations and 15% less total time on average.
- Scalability: Even on the massive HPP dataset, the method provided a significant ~10.5% reduction in solving time.
- Solver-Agnostic Nature: Because the reformulation happens at the modeling stage, the method works with any standard solver without requiring internal modifications.
The RL agent effectively learns to transform chaotic constraint matrices into structured patterns that likely facilitate the construction of a better "initial basis" for the Simplex algorithm.
Conclusion
This work demonstrates that machine learning can significantly enhance classical optimization by focusing on problem formulation rather than just solver internals. Future research will explore automatic clustering of variables and extending these techniques to Mixed-Integer Programming (MIP) and Quadratic Programming (QP).
Summary updated