Saved in:
Bibliographic Details
Main Authors: Dowson, Oscar, Parker, Robert B, Bent, Russel
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.03159
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910252821118976
author Dowson, Oscar
Parker, Robert B
Bent, Russel
author_facet Dowson, Oscar
Parker, Robert B
Bent, Russel
contents We present \texttt{MathOptAI.jl}, an open-source Julia library for embedding trained machine learning predictors into a JuMP model. \texttt{MathOptAI.jl} can embed a wide variety of neural networks, decision trees, and Gaussian Processes into a larger mathematical optimization model. In addition to interfacing a range of Julia-based machine learning libraries such as \texttt{Lux.jl} and \texttt{Flux.jl}, \texttt{MathOptAI.jl} uses Julia's Python interface to provide support for PyTorch models. When the PyTorch support is combined with \texttt{MathOptAI.jl}'s gray-box formulation, the function, Jacobian, and Hessian evaluations associated with the PyTorch model are offloaded to the GPU in Python, while the rest of the nonlinear oracles are evaluated on the CPU in Julia. \MathOptAI is available at https://github.com/lanl-ansi/MathOptAI.jl under a BSD-3 license.
format Preprint
id arxiv_https___arxiv_org_abs_2507_03159
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MathOptAI.jl: Embed trained machine learning predictors into JuMP models
Dowson, Oscar
Parker, Robert B
Bent, Russel
Machine Learning
Optimization and Control
90-04
We present \texttt{MathOptAI.jl}, an open-source Julia library for embedding trained machine learning predictors into a JuMP model. \texttt{MathOptAI.jl} can embed a wide variety of neural networks, decision trees, and Gaussian Processes into a larger mathematical optimization model. In addition to interfacing a range of Julia-based machine learning libraries such as \texttt{Lux.jl} and \texttt{Flux.jl}, \texttt{MathOptAI.jl} uses Julia's Python interface to provide support for PyTorch models. When the PyTorch support is combined with \texttt{MathOptAI.jl}'s gray-box formulation, the function, Jacobian, and Hessian evaluations associated with the PyTorch model are offloaded to the GPU in Python, while the rest of the nonlinear oracles are evaluated on the CPU in Julia. \MathOptAI is available at https://github.com/lanl-ansi/MathOptAI.jl under a BSD-3 license.
title MathOptAI.jl: Embed trained machine learning predictors into JuMP models
topic Machine Learning
Optimization and Control
90-04
url https://arxiv.org/abs/2507.03159