support for control of size of in-memory history used in equalfunvals stopping criteria: allows to run in constant-size memory when solving very large optimization problems