Constrained optimization via stochastic gradient descent.