combined gradient and mp graph minimization now runs