Initial optimization in models order and batch