speedup mathprog model generation