arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.11403cs.LGmath.OC
收藏

非线性优化问题中神经网络代理模型的公式化与可扩展性

Formulations and scalability of neural network surrogates in nonlinear optimization problems

Los Alamos National Laboratory(洛斯阿拉莫斯国家实验室);Dowson Farms(道森农场);Texas A&M University(德克萨斯农工大学)

Robert B. Parker, Oscar Dowson, Nicole LoGiudice, Manuel Garcia, Russell Bent

AI总结:

本文比较了全空间、降空间和灰盒三种神经网络嵌入公式,在含暂态稳定约束的最优潮流问题中,灰盒公式结合GPU加速最具可扩展性,能以2.5倍时间代价求解含5.9亿参数代理模型的问题。

摘要:

我们比较了全空间、降空间和灰盒三种公式化方法,用于在非线性约束优化问题中表示训练好的神经网络。我们在一个暂态稳定约束、安全约束的交流最优潮流(SCOPF)问题上测试了这些公式化方法,其中暂态稳定准则由训练好的神经网络代理模型表示。优化问题在JuMP中实现,训练好的神经网络通过一个新的Julia包MathOptAI.jl嵌入。为了研究三种公式化方法的瓶颈,我们使用了具有多达5.9亿个训练参数的神经网络。全空间公式化的瓶颈是优化算法使用的线性求解器,而降空间公式化的瓶颈是代数建模环境和导数计算。灰盒公式化最具可扩展性,能够求解所测试的最大神经网络,其瓶颈是神经网络输出及其导数的评估,这可以通过图形处理单元(GPU)加速。利用灰盒公式化和GPU加速,我们用最大的神经网络代理模型求解测试问题,所需时间是无稳定性约束的简化SCOPF问题的2.5倍。

英文摘要:

We compare full-space, reduced-space, and gray-box formulations for representing trained neural networks in nonlinear constrained optimization problems. We test these formulations on a transient stability-constrained, security-constrained alternating current optimal power flow (SCOPF) problem where the transient stability criteria are represented by a trained neural network surrogate. Optimization problems are implemented in JuMP and trained neural networks are embedded using a new Julia package: MathOptAI.jl. To study the bottlenecks of the three formulations, we use neural networks with up to 590 million trained parameters. The full-space formulation is bottlenecked by the linear solver used by the optimization algorithm, while the reduced-space formulation is bottlenecked by the algebraic modeling environment and derivative computations. The gray-box formulation is the most scalable and is capable of solving with the largest neural networks tested. It is bottlenecked by evaluation of the neural network's outputs and their derivatives, which may be accelerated with a graphics processing unit (GPU). Leveraging the gray-box formulation and GPU acceleration, we solve our test problem with our largest neural network surrogate in 2.5$\times$ the time required for a simpler SCOPF problem without the stability constraint.

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

↑