Gurobi/gurobi-machinelearning
Formulate trained predictors in Gurobi models
This tool helps operations researchers and data scientists integrate trained machine learning prediction models directly into their Gurobi optimization models. You provide a pre-trained regression model from common ML libraries, and the tool incorporates its logic into a Gurobi model. This allows you to build optimization problems that incorporate predictions, like deciding optimal production based on forecasted demand.
248 stars. Available on PyPI.
Use this if you need to build complex optimization models that incorporate predictions from trained machine learning models, allowing Gurobi to solve for optimal decisions under predicted conditions.
Not ideal if you are not using Gurobi for optimization or if your machine learning models are not regression-based or use unsupported activation functions (for neural networks).
Stars
248
Forks
51
Language
Python
License
Apache-2.0
Category
Last pushed
Mar 02, 2026
Commits (30d)
0
Dependencies
3
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/Gurobi/gurobi-machinelearning"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related frameworks
SimonBlanke/Gradient-Free-Optimizers
Lightweight optimization with local, global, population-based and sequential techniques across...
emdgroup/baybe
Bayesian Optimization and Design of Experiments
heal-research/pyoperon
Python bindings and scikit-learn interface for the Operon library for symbolic regression.
simon-hirsch/ondil
A package for online distributional learning.
osqp/osqp
The Operator Splitting QP Solver