This is a separate optimization module for shogun