Check for exact solution in solvers