Code and related material for my blog, Adventures in Optimization.