The main purpose of this paper is to build a mathematical model of virtual pallet in tobacco logistics center. We take Beijing Tobacco Sorting System as an example to verify the consistency of the mathematical model. The experiment shows the model is reasonable and when optimal length of virtual pallet is suggested, the sorting efficiency is increased by 7.8%.