Direct Method for Closed Convex Constraints