Jump-Start Your Optimization Discovery

Explore our modeling examples below, access them via GitHub, or download the entire collection. You can also check out examples for other programming languages, or dive into our functional code. MIP developers: Be sure to check out ticdat.

Search Examples
Difficulty Level
Business Need


Price Optimization with Competing Products

Create a predictive model to forecast sales based on product prices, then build an optimization model to identify the optimal product mix.


Tackling world hunger using mathematical optimization

Transporting food in a global transportation network is a challenging undertaking. In this notebook, we will build an optimization model to set up a...


COVID-19 Facility Capacity Optimization

This COVID-19 Healthcare Facility Capacity Optimization problem shows you how to determine the optimal location and capacity of healthcare...


Supply Network Design

Try this Jupyter Notebook Modeling Example to learn how to solve a classic supply network design problem that involves finding the minimum cost flow...


Offshore Wind Farming

In this example, you'll learn how to solve an offshore wind power generation problem. The goal of the problem is to figure out which underwater...


Market Sharing

In this example, we'll show you how to solve a goal programming problem that involves allocating the retailers to two divisions of a company in order...


Marketing Campaign Optimization

Companies across almost every industry are looking to optimize their marketing campaigns. In this Jupyter Notebook, we'll explore a marketing...


Facility Location Problem

Facility location problems can be commonly found in many industries, including logistics and telecommunications. In this example, we'll show you how...


Curve Fitting

Try this Jupyter Notebook Modeling Example to learn how you can fit a function to a set of observations. We will formulate this regression problem as...


Logic Programming – 3D Tic-Tac-Toe

Try this logic programming example to learn how to solve the problem of arranging X's and O's on a three-dimensional Tic-Tac-Toe board so as to...

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.