add mogs_direct_optimization