I am using "lsqnonlin" function for optimization. In this function, i solve the problem with Levenberg-Marquard algorithm. In order to terminate the optimization process, TolFun and TolX criteria are used. However, I do not know how TolFun and TolX are computed for Levenberg-Marquardt algorithm ? Are they computed using 2-norm ? Are they absolute or relative criteria ? Can you give me answer ? Thanks in advance!