EConvergeFail Class

Top  Previous  Next

Represents type EConvergeFail.

Namespace: KnwIRR

expandingInheritance Hierarchy
expandingSyntax
collapsingDescription

When the SolveMethod property is set to smSecant, the EConvergeFail error is raised when:

the number of iterations has exceeded value of the MaxIterations property, or

the IRR solution is ridiculously high, say 2,000,000%.

When the SolveMethod property is set to smBisection, the EConvergeFail error is also raised when the number of iterations has exceeded value of the MaxIterations property. However, before the error is raised, a dialog gives the user an opportunity to continue iterating toward a solution until the iterations exceed the MaxIterations property another time. For example if MaxIterations is set to 30, and the number of iterations reaches 30 without a solution, the user may opt to continue seeking a solution for another 30 iterations. When the user has had enough, the EConvergeFail error is triggered. See the demo for an example of how to handle TMaxIRR error classes.

expandingSee Also