Designed the class interface of dimf::OptimizationTask.