make_solver for different methods
grid search support