Sequential Systems of Linear Equations Algorithm for Nonlinear Optimization Problems with General Constraints