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

基于CVXPY的嵌入式代码生成

Embedded Code Generation with CVXPY

Maximilian Schaller, Goran Banjac, Steven Diamond, Akshay Agrawal, Bartolomeo Stellato, Stephen Boyd

摘要:

我们介绍CVXPYgen,一个工具,用于生成自定义的C代码,适合嵌入式应用程序,解决了参数化类的凸优化问题。CVXPYgen基于CVXPY,CVXPY是一种Python嵌入的领域特定语言,支持自然语法(遵循数学描述)来指定凸优化问题。除了自定义求解器的C实现外,CVXPYgen还为原型和桌面(非嵌入式)应用程序创建了一个Python包装器。我们给出了两个例子,四轴飞行器的位置控制和回测投资组合最优化模型。CVXPYgen在处理的问题大小、二进制代码大小和求解时间方面优于最先进的代码生成工具。CVXPYgen和生成的求解器是开源的。

英文摘要:

We introduce CVXPYgen, a tool for generating custom C code, suitable for embedded applications, that solves a parametrized class of convex optimization problems. CVXPYgen is based on CVXPY, a Python-embedded domain-specific language that supports a natural syntax (that follows the mathematical description) for specifying convex optimization problems. Along with the C implementation of a custom solver, CVXPYgen creates a Python wrapper for prototyping and desktop (non-embedded) applications. We give two examples, position control of a quadcopter and back-testing a portfolio optimization model. CVXPYgen outperforms a state-of-the-art code generation tool in terms of problem size it can handle, binary code size, and solve times. CVXPYgen and the generated solvers are open-source.

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

↑