Generation of Custom Solvers in Rust for Convex Optimization
Abstract
We introduce cvxgenrust, an open-source tool for generating custom Rust code that solves families of parameterized convex optimization problems modeled in CVXPY. cvxgenrust canonicalizes a problem family, extracts affine maps to Clarabel cone-program data, and generates a specialized Rust crate that updates parameters and calls Clarabel natively at runtime. The generated solver can also be exposed to Python and registered as a custom CVXPY solver. Our code generator supports a wide range of convex optimization problems up to semidefinite programs and exponential-cone problems. Numerical experiments show reduced runtime relative to direct CVXPY solves and performance comparable to CVXPYgen on shared problem classes.
Create a lesson
Metadata
- Categories
- math.OC, cs.CE, cs.LG, cs.MS
Related papers
FLEX-E: a structure-exploiting linear feasibility solver for embedded optimization
Shared title terminologymath.OCAndrea Ghezzi, Jonathan Frey, Anton Pozharskiy et al.
Fast Diagonal Methods for Convex Optimization over Monotone Inclusions
Shared title terminologymath.OCRadu Ioan Bot, Enis Chenchene, David Alexander Hulett
Federated Optimization under Averaged Strong Convexity Assumption
Shared title terminologymath.OCSirong Dai, Ming Yan
Randomized versus deterministic optimization for convex and symmetric input classes
Shared title terminologymath.OCDavid Krieg
Adaptive Linesearch-Free Prox-Linear Method for Convex Composite Optimization
Shared title terminologymath.OCKotaro Matsuda, Nobuo Yamashita
Gradient-Only Online Convex Optimization with a Single Quadratic Leader
Shared title terminologymath.OCKamiar Asgari