batchMarkOptim function

Marked model only.