Regression-based optimization