We consider sensitivity functionals and Lagrange multiplier method for solving finite dimensional convex optimization problem. An analysis based on this property is also applied for semicoercive infinite dimensional variational inequality in mechanics.