Executing model algorithms iteratively