simplified pnopt_quad