The method of codifferential descent for convex and global piecewise affine optimization. (1st November 2020)