Accelerated Algorithms for a Class of Optimization Problems with Equality and Box Constraints