Stability of constrained optimization problems