I am given a vector x. My objective is to find an optimal y (minimize $||y-x||_2^2$). With the constraint $y(c) = a$ (a and c are known scalars).
$$\text{minimize}_y ||y-x||_2^2 \\ \text{subject to}\ \ y(c) = a $$
Further, I am confused about how to enforce a smoothness constraint. I am aware that in theory we add a regularization term to the objective function $ ||y-x|| + \lambda \bigtriangledown y $
I am trying to use CVX to achieve this. More info on CVX is Matlab Software for Convex Optimization (http://cvxr.com/cvx/) How is it possible to have such a regularization?