Constrained optimization python. # python implementation of vanilla gradient descent .