Gradient descent and quadratic penalization Continuous optimization — ENT 305
We study the projection of $(0,1)$ onto the line $x=y$:
$$\min_{(x,y)\in\mathbb R^2} f(x,y)=\frac12\bigl[x^2+(y-1)^2\bigr],\qquad h(x,y)=y-x=0.$$
import numpy as np import matplotlib.pyplot as plt 1.