Multiple regression approach to optimization