Title: Automatic factorization of generalized upper bounds in large scale optimization problems