Gurobi/gurobi-machinelearning

Formulate trained predictors in Gurobi models

67
/ 100
Established

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).

operations-research optimization predictive-modeling decision-making supply-chain-optimization
Maintenance 10 / 25
Adoption 10 / 25
Maturity 25 / 25
Community 22 / 25

How are scores calculated?

Stars

248

Forks

51

Language

Python

License

Apache-2.0

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.