This problem is an example of an agricultural pricing problem, where we want to determine the prices and demand for the dairy products of a country in order to maximize total revenue derived from the sales of those products. This problem is formulated as a quadratic optimization problem using the Gurobi Python API and solved with the Gurobi Optimizer.
This model is example 21 from the fifth edition of Model Building in Mathematical Programming, by H. Paul Williams on pages 276-278 and 333-335.
This modeling example is at the intermediate level, where we assume that you know Python and are familiar with the Gurobi Python API. In addition, you should have some knowledge about building mathematical optimization models.
https://gurobi.github.io/modeling-examples/agricultural_pricing/agricultural_pricing.html
You can download the repository containing this and other examples by clicking here. In order to run this Jupyter Notebook properly, you must have a Gurobi license. If you do not have one, you can request an evaluation license as a commercial user, or download a free license as an academic user.
Copyright © 2020 Gurobi Optimization, LLC