Skip to content

Generation of Custom Solvers in Rust for Convex Optimization

Sep 2026 · 0 citations · 23 references
Mathematics Computer Science

TL;DR

This work introduces cvxgenrust, an open-source tool for generating custom Rust code that solves families of parameterized convex optimization problems modeled in CVXPY, and generates a specialized Rust crate that updates parameters and calls Clarabel natively at runtime.

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.

View source

Similar papers

Preprint Oct 2026

Scaly: an Optimizing Compiler for Optimal Control

We present Scaly, an open-source optimizing compiler for optimal control, written in Python, that generates fast C code. Scaly provides a modeling language embedded in Python for the parametric optimization problems that arise in model predictive control and moving horizon estimation, and computes the sparse derivative...

T. A. Oancea, Colin N. Jones · 0 citations
Preprint Oct 2026

socx: GPU-Accelerated Chance-Constrained Stochastic Optimal Control using JAX

In this article, we present socx, a GPU-accelerated solver for lifted convex reformulations of linear stochastic optimal control under chance constraints, implemented in JAX. We demonstrate that by exploiting the sparse and independent structure of the problem, distributed optimization can reduce it to simpler problems...

Tanmay Dokania, Y. Nakka · 0 citations
Preprint Nov 2026

FAME-QP: A GPU-Accelerated Quadratic-Programming Solver for Real-Time Model Predictive Control

We present FAME-QP, a GPU-accelerated solver for dense quadratic programs arising in linear model predictive control. FAME-QP combines constraint-dependent operator representations with fused single- and two-kernel iterations replayed through CUDA graphs, automatically selecting the execution configuration through devi...

S. M. Rajkumar, Debdipta Goswami, Stephanie Stockar · 0 citations
Preprint Nov 2026

Solver-Admitted Metamorphic Testing of Learned Network Optimization Surrogates

Equivalent encodings of an optimization problem can produce different learned predictions. Interpreting these differences requires accounting for numerical error and multiple optima. We construct metamorphic tests for optimization solver surrogates with explicit eligibility conditions, output alignment, and numerical t...

Vineet Jagadeesan Nair, S. Peng, Arun Ravindran · 0 citations
Preprint Oct 2026

FOMTools: Development and AI-Assisted Code Generation for First-Order Methods

We present FOMTools, an open-source Python package for developing, analyzing, and deploying first-order algorithms for parametric linear and convex quadratic optimization. The user specifies an iteration in Python, with syntax close to its mathematical description. The package represents the iteration as a computation...

Vinit Ranjan, Daniel Deza, Anushka Acharya et al. · 0 citations
#machine learning Preprint Oct 2026

When Solvers Get Moody: Quantifying and Predicting Performance Variability in Mixed Integer Programming

Mixed-integer programming (MIP) solvers are widely used, yet their performance can vary substantially even under seemingly neutral perturbations. Such variability complicates benchmarking, and the interpretation of computational studies. We introduce the Weighted Variability Score (WVS), a robust multi-component metric...

Mourchid Adegbindin, Brenda L Dietrich, Jamol J. Pender et al. · 1 citation

Related blog posts

MIT News · Artificial Intelligence Dec 1, 2026

A new form of memory helps robots learn complex skills

The method uses large vision-language models to teach smaller models how to remember key details about a robot’s surroundings, making the machines more reactive and resourceful.

Microsoft Research Blog Nov 30, 2026

Forgotten, or just hidden? Stress testing how AI models unlearn

When AI “forgets,” is the information really gone? Standard tests can suggest an AI model has successfully forgotten specific information. A controlled Microsoft Research study found a different picture when researchers changed the questions and used strategic prompts. The findings point to a gap between looking like information is forgotten and making it resistant to recovery. The post Forgotten, or just hidden? Stress testing how AI models unlearn appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.