The algorithm stops iteration when the residual value is less or equal to maxGoodResidual.
See Implementation
The algorithm stops iteration when the residual value is less or equal to maxGoodResidual.