get the solver for optimization problem