Math170 A compilation of work done for Math170: Mathematical Methods of Optimization (adapted from Michael Lindsay and Lewis Pan)