added TrainModelMinimize.*