Portfolio Optimization with Gurobi
![](https://cdn.gurobi.com/wp-content/uploads/Gurobi-Finance-1024x770.png?x70725)
This documentation provides several self-contained Jupyter notebooks that discuss the modeling of typical features in mean-variance (M-V) portfolio optimization.
Price Optimization with Competing Products
![](https://cdn.gurobi.com/wp-content/uploads/AdobeStock_295754329-1-1024x604.jpeg?x70725)
Create a predictive model to forecast sales based on product prices, then build an optimization model to identify the optimal product mix.
Airline Planning After Flight Disruption
![](https://cdn.gurobi.com/wp-content/uploads/image_snowstorm.jpeg?x70725)
Weather events are a major threat to the airline industry. This notebook walks through the optimization problem of deciding which flights to operate and which flights to cancel after a weather disruption.
Text Dissimilarity Using Linear Programming
![](https://cdn.gurobi.com/wp-content/uploads/stealing-paper-1024x701.webp?x70725)
Tackling world hunger using mathematical optimization
![](https://cdn.gurobi.com/wp-content/uploads/figure_syria-1024x568.png?x70725)
Transporting food in a global transportation network is a challenging undertaking. In this notebook, we will build an optimization model to set up a food supply chain based on real data from the UN World Food Program.
Optimizing a power generation schedule
![](https://cdn.gurobi.com/wp-content/uploads/image_powerplant.webp?x70725)
The electricity grid powers nearly every aspect of modern life — be it charging a phone, powering a factory, or mining Bitcoin. Managing the supply and demand of electricity can be a complex and challenging task. In this notebook, we model this decision-making problem using mathematical optimization.
Diverse Music Recommendation System
![](https://cdn.gurobi.com/wp-content/uploads/Creating_music-1024x683.jpg?x70725)
Avocado Price Optimization
![](https://cdn.gurobi.com/wp-content/uploads/avocado_image_grocery-1024x682.jpeg?x70725)
This example optimizes avocado prices to maximize revenue using a quadratic program. The relationship between price and demand is modeled using linear regression.
Workforce Scheduling Demo
![](https://cdn.gurobi.com/wp-content/uploads/2022/08/MetalMining_02-1-1024x529.jpg?x70725)
This Workforce Scheduling demo addresses an important problem in the services industry: How to create shift schedules that maximize resource utilization.
The Traveling Salesman Problem Demo
![](https://cdn.gurobi.com/wp-content/uploads/2022/08/Transportation_01-1-1024x529.jpg?x70725)
In this example we’ll solve the Traveling Salesman Problem. We’ll construct a mathematical model of the problem, implement this model in Gurobi’s Python interface, and compute and visualize an optimal solution.