choose lambda fitting QP, and brute-force QP selection