SQP based registration