added SQP Partial solve which takes the numbers of iterations as an input