Solved but provided with NaN

Those are subproblems in the Successive Approximation method which were solved. But the overall algorithm failed, Status: Failed