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.
- acopf_4buses.py
- batchmode.py
- bilinear.py
- callback.py
- dense.py
- diet.py
- diet2.py
- diet3.py
- diet4.py
- dietmodel.py
- facility.py
- feasopt.py
- fixanddive.py
- gc_funcnonlinear.py
- gc_pwl.py
- gc_pwl_func.py
- genconstr.py
- genconstrnl.py
- heurcb.py
- lp.py
- lpmethod.py
- lpmod.py
- matrix1.py
- matrix2.py
- mip1.py
- mip1_remote.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
- workforce1.py
- workforce2.py
- workforce3.py
- workforce4.py
- workforce5.py
- workforce_batchmode.py