Automatic control of the parameters of an iterative process for use in mathematical programming