arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12942cs.MScs.CEcs.NAmath.NAmath.OC
收藏

modOpt:一个用于优化算法的模块化开发环境与库

modOpt: A modular development environment and library for optimization algorithms

Anugrah Jo Joshy, John T. Hwang

AI总结:

针对现有优化算法专门化需要专家知识的挑战,提出开源Python框架modOpt,通过模块化环境简化算法定制与开发,并提供接口与可视化功能以支持教学和基准测试。

摘要:

计算硬件和建模软件的最新进展催生了数值优化的新应用。这些新应用偶尔会暴露现有优化算法中的瓶颈,并要求对算法进行进一步的专门化。然而,这种专门化需要具备底层数学理论和现有算法软件实现方面的专家知识。为了应对这一挑战,我们提出了 modOpt,这是一个开源软件框架,旨在促进从模块构建优化算法。modOpt 提供的模块化环境使开发者只需更改相关模块,即可针对新应用定制现有算法。modOpt 被设计为一个平台,以支持学生和初级开发者快速学习并开发自己的算法。出于这一目标,整个框架使用 Python 编写,并且文档完善、经过充分测试,在 GitHub 上开源托管。框架中嵌入了若干附加功能,以协助初学者和高级开发者。除了提供库存模块外,该框架还包含用 Python 完全透明地实现的教学型优化算法。为了便于新算法的测试和基准测试,该框架具备内置的可视化和记录功能、与 OpenMDAO 和 CSDL 等建模框架的接口、与 SNOPT 和 SLSQP 等通用优化算法的接口、以及与 CUTEst 测试问题集的接口等。在本文中,我们介绍了 modOpt 的底层软件架构,回顾了其各项功能,讨论了 modOpt 中的几种教学型和面向性能的算法,并展示了说明其独特优势的数值研究。

英文摘要:

Recent advances in computing hardware and modeling software have given rise to new applications for numerical optimization. These new applications occasionally uncover bottlenecks in existing optimization algorithms and necessitate further specialization of the algorithms. However, such specialization requires expert knowledge of the underlying mathematical theory and the software implementation of existing algorithms. To address this challenge, we present modOpt, an open-source software framework that facilitates the construction of optimization algorithms from modules. The modular environment provided by modOpt enables developers to tailor an existing algorithm for a new application by only altering the relevant modules. modOpt is designed as a platform to support students and beginner developers in quickly learning and developing their own algorithms. With that aim, the entirety of the framework is written in Python, and it is well-documented, well-tested, and hosted open-source on GitHub. Several additional features are embedded into the framework to assist both beginner and advanced developers. In addition to providing stock modules, the framework also includes fully transparent implementations of pedagogical optimization algorithms in Python. To facilitate testing and benchmarking of new algorithms, the framework features built-in visualization and recording capabilities, interfaces to modeling frameworks such as OpenMDAO and CSDL, interfaces to general-purpose optimization algorithms such as SNOPT and SLSQP, an interface to the CUTEst test problem set, etc. In this paper, we present the underlying software architecture of modOpt, review its various features, discuss several educational and performance-oriented algorithms within modOpt, and present numerical studies illustrating its unique benefits.

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

↑