Generation of Custom Solvers in Rust for Convex Optimization

Hao Zhu, Joschka Boedecker
9/12/2026
math.OCcs.CEcs.LG

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhu2026generation,
  title  = {Generation of Custom Solvers in Rust for Convex Optimization},
  author = {Hao Zhu and Joschka Boedecker},
  year   = {2026},
  eprint = {2609.13875},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.13875v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.13875.svg)](https://codeofpaper.com/paper/2609.13875)

Discussion