Begin the real work on SQP method.