The notebooks of the course
Every chapter with models has its own notebook: one click on the badge opens
it in Google Colab, it installs the solver by itself and runs in the browser —
nothing to install on your machine. It is the very same code as the scripts in
python/, cell by cell, with the figures appearing below the cells instead of
being written to a file.
The pip licence is enough
The licence bundled with gurobipy is limited to 2000 variables and 2000
constraints: the instances of the course are small and all fit with plenty of
room. For larger instances activate the free academic licence at
portal.gurobi.com.
How they are made
The notebooks are not written by hand: they are generated from the scripts with
python3 python/make_notebooks.py
The chapter script remains the single source of the code — the notebook takes its
docstring, sections and comments from it — and whoever prefers the command line
keeps running, from the python/ folder:
python3 fam07_1_assignment.py