See how mathematical optimization can make your revenues and profits soar in this example, where we’ll show you how an airline can use the AI technology to devise an optimal seat pricing strategy. You’ll learn how to formulate this Yield Management Problem as a three-period stochastic programming problem using the Gurobi Python API and solve it with the Gurobi Optimizer.

This model is example 24 from the fifth edition of Model Building in Mathematical Programming by H. Paul Williams on pages 282-284 and 337-340.

This modeling example is at the advanced level, where we assume that you know Python and the Gurobi Python API and that you have advanced knowledge of building mathematical optimization models. Typically, the objective function and/or constraints of these examples are complex or require advanced features of the Gurobi Python API.

Access the Jupyter Notebook Modeling Example

Click on the button below to access the example in Google Colab, which is a free, online Jupyter Notebook environment that allows you to write and execute Python code through your browser. 

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.

Search