Quadratic convergence of an SQP method for some optimization problems with applications to control theory | Synapse