arXiv Science⌕ Search

arXiv · 2611.12896

Efficient Conversion of Algorithms to Linear Programs

Abstract

The expressiveness of Linear Programming (LP) has motivated research on an LP compiler that generates polynomial-size LPs for polynomial-time solvable problems, including those having exponential extension complexity. By automating modeling from high-level algorithmic descriptions, the compiler offers a promising alternative to algebraic modelling languages. However, the resulting LPs are extremely large, posing challenges for existing solvers. Recently, we have introduced two LP compiler optimizations, namely Hierarachical Synchronization Barriers (HSB) and Constraint Sharing (CS), that address this challenge by exploiting structural and similarity-based patterns derived from the source code and the design of compiler-generated LPs, beyond what conventional compiler and presolve techniques can achieve in isolation. In this paper, we provide a comprehensive evaluation of these optimization methods on fundamental combinatorial algorithms and introduce the Execution Domain Aware (EDA) optimization framework to address a limitation revealed by this analysis. The framework reinterprets structural synchronizations as a time abstraction layer within which other optimizations can target localized reductions while remaining agnostic to time-step transitions. Across a broad suite of benchmarks, HSB and CS consistently generate smaller LPs, achieving LP file-size reductions of up to 96% and 53%, respectively, while also improving numerical conditioning, solver performance, and solution quality. HSB provides the strongest and most robust overall gains. The EDA framework further broadens the range of benchmarks that can benefit from HSB when its underlying structural assumptions are less effective. We view this work as a step toward systematic generation of Compact Integer Programming formulations for problems with exponential-size Integer Programs having polynomial-time separation oracles.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Shermin Khosravi, David Bremner. 2026-10-10. Efficient Conversion of Algorithms to Linear Programs. https://arxiv.science/abs/2611.12896

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Discontinuity-Aware Solvers for Vapor-Compression Cycles

Physics-based models of vapor-compression cycles are often formulated as large, stiff DAE systems with derivative discontinuities introduced at the points of phase change. We use an implementation of a discontinuity-aware ODE and DAE solver scheme that uses domain-specific, user-declared information to compute appropriate time steps for more efficient integration. This scheme is made open-source within Julia's DifferentialEquations package. We demonstrate how discontinuity information can be specified symbolically in a declarative modeling language such as Dyad and passed to the solver to address the numerical challenges posed. We apply this discontinuity-aware technique to two applications: first, a scalar ODE with two discontinuities, and then a model of a full vapor-compression cycle. The discontinuity-aware solver yields significantly fewer step rejections and improved solver times, particularly with the Rodas5P solver at loose tolerances, as compared to standard error control, suggesting that exposing physical discontinuity information from equation-oriented models to adaptive solvers can improve practical simulation performance without requiring reassembly of the model.

cs.MS↗

Newton's Method for CP Decomposition

We present an algorithm for computing the CP tensor decomposition using Newton's method. The problem of fitting a CP model to a data tensor with least squares loss can be solved by various gradient-based optimization techniques, including Gauss-Newton methods that exploit the tensor structure of the problem and iteratively solve the linear system involving the approximate Hessian matrix to determine the step direction at each iteration. Gauss-Newton methods exhibit superlinear convergence when the residual is small but can otherwise struggle to converge when the approximation to the Hessian is not accurate. We show that the Gauss-Newton approach can be extended to Newton's method, using the true Hessian to obtain fast convergence even in the case of large residuals. In particular, we derive efficient means of applying the true Hessian to vectors for use within an iterative solver, we employ globalization and regularization techniques to make the Newton model robust to ill-conditioned and/or indefinite Hessians, and we propose hybrid use of Gauss-Newton and Newton steps to balance convergence behavior both far and near local minima. Our numerical experiments use synthetic examples to show in which scenarios Gauss-Newton and other methods struggle to converge, and we demonstrate the superiority of the hybrid approach on two application data sets.

cs.MS↗

Sparse Integer Fourier Transform and Its Application In Machine Learning

The Discrete Fourier transform, mainly implemented by Fast Fourier Transform (FFT), has been essential for numerous domains, such as digital signal processing and feature extraction in materials design. However, current FFT methods suffer from extensive non-trivial multiplications and twiddle-factor operations in the big data era. To improve the computational efficiency of FFT, this study proposes Sparse Integer Fourier Transform (SIFT), a method that leverages the fast computing of sparsity and small integers, and applies the Radix-n method to derive an FFT. The 2N-point DFT matrix in Radix-n FFT is decomposed into four sparse integer matrices. A diagonal matrix containing complex twiddle factors is efficiently approximated using an optimization strategy while the remaining matrices retain sparsity and integer entries. For radix-32 FFT, SIFT reduces the estimated arithmetic cost by 75%, with RMSE below $2.3765\times10^{-8}$ and MAPE below 0.01089%. We evaluate frequency extraction in a numerical test and an engineering case. In the numerical test, MAPE and RMSE are below 2.016% and $2.536\times10^{-6}$, respectively. For wind turbine fault diagnosis, SIFT extracts compact spectral features that retain fault information while reducing the classifier's input dimensionality relative to the full time series.

cs.MS↗