Add a function that will optimizes all solvers.