Adding predictive model generator to the optimization algorithm.