arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.13006cs.PLcs.MSmath.OC
收藏

将算法高效编译为紧凑线性规划

Efficient Compilation of Algorithms into Compact Linear Programs

Faculty of Computer Science University of New Brunswick Fredericton, Canada

Shermin Khosravi, David Bremner

AI总结:

提出一种分层线性流水线技术,将算法编译为显著更小的紧凑线性规划,在 makespan 和加权最小生成树问题上实现高达25倍的规模缩减及求解性能提升。

摘要:

线性规划(LP)在工业界应用广泛,并且是各种其他数学问题求解技术的关键组件。近期的研究引入了一种 LP 编译器,能够使用直观的高级编程语言将多项式时间、多项式空间的算法转化为多项式大小的 LP,这为通过代数建模语言(AMLs)手动指定每个约束集提供了一种有前景的替代方案。然而,生成的 LP 虽然在大小上是多项式的,但往往极其庞大,给现有的 LP 求解器带来了挑战。在本文中,我们提出了一种从算法中生成显著更小 LP 的新方法。我们的目标是为 P 类中具有指数扩展复杂度的自然表述的问题建立最小尺寸的紧凑 LP 公式。我们更广泛的愿景是,为具有多项式时间分离预言机的指数大小 IP 问题实现紧凑整数规划(CIP)公式的系统化生成。为此,我们引入了一种分层线性流水线技术,将嵌套的程序结构分解为具有明确执行转换的同步区域——这些转换是编译时参数的函数。这种分解使我们能够在每个区域内局部化 LP 约束和变量,在不失一般性的情况下显著减小 LP 大小,确保生成的 LP 对所有大小为 $n$ 的输入保持有效。我们在两个基准问题上展示了我们方法的有效性——具有指数扩展复杂度的 makespan 问题和加权最小生成树问题——两者都具有指数大小的自然 LP。我们的结果显示,LP 大小减少了高达 $25$ 倍,并且在商业和非商业 LP 求解器中显著提升了求解性能。

英文摘要:

Linear Programming (LP) is widely applied in industry and is a key component of various other mathematical problem-solving techniques. Recent work introduced an LP compiler translating polynomial-time, polynomial-space algorithms into polynomial-size LPs using intuitive high-level programming languages, offering a promising alternative to manually specifying each set of constraints through Algebraic Modeling Languages (AMLs). However, the resulting LPs, while polynomial in size, are often extremely large, posing challenges for existing LP solvers. In this paper, we propose a novel approach for generating substantially smaller LPs from algorithms. Our goal is to establish minimum-size compact LP formulations for problems in P having natural formulations with exponential extension complexities. Our broader vision is to enable the systematic generation of Compact Integer Programming (CIP) formulations for problems with exponential-size IPs having polynomial-time separation oracles. To this end, we introduce a hierarchical linear pipelining technique that decomposes nested program structures into synchronized regions with well-defined execution transitions -- functions of compile-time parameters. This decomposition allows us to localize LP constraints and variables within each region, significantly reducing LP size without the loss of generality, ensuring the resulting LP remains valid for all inputs of size $n$. We demonstrate the effectiveness of our method on two benchmark problems -- the makespan problem, which has exponential extension complexity, and the weighted minimum spanning tree problem -- both of which have exponential-size natural LPs. Our results show up to a $25$-fold reduction in LP size and substantial improvements in solver performance across both commercial and non-commercial LP solvers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑