tree optim: max level depending of plm type