Pyoframe: A Python Library to Easily and Efficiently Construct Large Optimization Models
Abstract
Researchers and industry practitioners are constructing increasingly large optimization models to tackle problems in fields such as manufacturing, logistics, and energy systems planning. As the performance of solvers like Gurobi keeps improving, the performance of modeling frameworks like gurobipy which let users interact with solvers is increasingly becoming a bottleneck. We present Pyoframe, an open-source Python modeling framework to construct optimization models of various types (LPs, MIPs, QPs, and QCQPs). Pyoframe adopts a novel DataFrame-based software architecture that enables parallelized computations while also offering a legible syntax and a friendly user experience. We benchmark Pyoframe against other modeling frameworks (AMPL, CVXPY, Gurobipy, JuMP, Linopy, PuLP, Pyomo, and PyOptInterface) and find that Pyoframe is faster on every large or complex benchmark, while almost always using less memory and fewer lines of code. Switching to Pyoframe reduces the total time, memory, and code needed to solve these benchmark problems by up to 83%, 68%, and 64%, respectively, demonstrating the significant impact that modeling frameworks, not only solvers, can have in applied optimization. Overall, Pyoframe makes it easier and faster to develop and run large linear or quadratic optimization models.
Create a lesson
Metadata
- Comments
- Under review at Mathematical Programming Computation
Related papers
An Exact Penalty Method for Large-Scale Equality-Constrained Nonlinear Optimization
Shared title terminologymath.OCMaxence Gollier, Youssef Diouane, Dominique Orban
A Robust Optimization Framework for Energy System Capacity Expansion under Line Outage Uncertainty
Shared title terminologymath.OCKamran Forghani, Lina Reichenberg, Fredrik Hedenus et al.
Near Optimal Pure Stepsize Adaptation Acceleration for Gradient Descent on Nonconvex Optimization
Shared title terminologymath.OCYin Liu, Ziyang Zeng, Junyu Zhang
BGPNP: A Non-Euclidean Gradient Projection Newton Pursuit Method for Sparsity-Constrained Optimization
Shared title terminologymath.OCJiawei Chen, Huilin Han, Yibing Lv et al.
Stochastic Optimization for Switch-System Identification under Errors-in-Variables
Shared title terminologymath.OCYasin Garehmohammadlou, Mohamad Kazem Shirani Faradonbeh, Mohammad Khosravi et al.
Stochastic Optimization with Network Distribution Dynamics via Local Jacobian Approximation
Shared title terminologymath.OCYuchen Cai, Zhiyu He, Michael Muehlebach et al.