Added docstring for set_optimization().