test
fix select next qp subproblem grad bugs