I'm running a simulation using -mixed- command. My simulation contains both random intercept and random-coefficient. I am getting convergence issues and in my post file I have included e(converged) to report whether or not a particular estimation converged. I am encountering some estimations where a convergence issue is taking like more than 24hour to move to the next estimation.

My question is how can I stop an iteration at a particular number when a convergence issue is imminent so that it can just report not converged and move to the next step rather than waiting to thousands of itineration. I want to stop iteration at 500 and move over to next estimation. Does any one know how to deal with this?

I have used emtolerance(#), but it's not stopping at my specified #