The Optimal Allocation for Seed Reproduction and Vegetative Reproduction in Perennial Plants: An Application to the Density-dependent Transition Matrix Model