Try our new documentation site (beta).
Filter Content By
Version
Text Search
Python Examples
This section includes source code for all of the Gurobi Python
examples. The same source code can be found in the
examples/python
directory of the Gurobi distribution.
Subsections
- batchmode.py
- bilinear.py
- callback.py
- custom.py
- dense.py
- diet.py
- diet2.py
- diet3.py
- diet4.py
- dietmodel.py
- facility.py
- feasopt.py
- fixanddive.py
- gc_pwl.py
- gc_pwl_func.py
- genconstr.py
- lp.py
- lpmethod.py
- lpmod.py
- matrix1.py
- matrix2.py
- mip1.py
- mip2.py
- multiobj.py
- multiscenario.py
- netflow.py
- params.py
- piecewise.py
- poolsearch.py
- portfolio.py
- qcp.py
- qp.py
- sensitivity.py
- sos.py
- sudoku.py
- tsp.py
- tune.py
- workforce_batchmode.py
- workforce1.py
- workforce2.py
- workforce3.py
- workforce4.py
- workforce5.py
![](/wp-content/plugins/hd_documentations/content/images/documentation-ampl-guide.webp)
![](/wp-content/plugins/hd_documentations/content/images/documentation-cloud.webp)
![](/wp-content/plugins/hd_documentations/content/images/documentation-example-tour.webp)
![](/wp-content/plugins/hd_documentations/content/images/documentation-quick-start.webp)
![](/wp-content/plugins/hd_documentations/content/images/documentation-reference-manuals.webp)
![](/wp-content/plugins/hd_documentations/content/images/documentation-remote-services.webp)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-linux.webp)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-mac-osx.webp)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-windows.webp)