setiter_min - fabiankindermann/ce-fortran GitHub Wiki

subroutine setiter_min(iter)

Description:

Allows to alter the maximum number of iterations of the minimizer fminsearch, if you feel that the default number of 200 iterations is not enough for solving your problem. Increasing the number of iterations can be a solution, if you frequently see the warning message fminsearch: maximum iterations exceeded. Note, however, that the frequent throwing of warning messages like this typically indicates a programming error, in which case increasing the number of iterations will not help.

Input arguments:

  • integer :: iter
    A scalar value indicating the new number of iterations. Note that iter needs to be strictly greater than 0, otherwise the subroutine will throw an error message.

References

  • For further reading refer to:
    • Brent, R.P. (2003). Algorithms for Minimization without Derivatives. Mineola: Dover Books on Mathematics.
    • Acton, F.S. (1997). Numerical Methods that Work. The Mathematical Association of America.
⚠️ **GitHub.com Fallback** ⚠️