Lecture 2 Piecewise-linear optimization