The invention discloses a method for heterogeneous user 
pilot frequency power optimal distribution in a large-scale multi-input multi-output 
system. The method comprises a first step of generating a group of randomly distributed heterogeneous users, enabling each user to undergo independent channel information, and calculating a 
system downlink achievable speed; a second step of forming a Lagrangian function L by the 
system downlink achievable speed and total power constraint conditions; a third step of assuming 
lambda to be a Lagrangian multiplier, performing derivation of L on 
pilot frequency power rhok and 
lambda to obtain an expression of rhok related to the 
lambda and the channel information; a fourth step of obtaining the value range of lambda based on the expression obtained in the third step according to the restrictions that rhok is larger than 0 and smaller than the total power; a fifth step of performing binary search according to the value range of lambda obtained in the fourth step, and obtaining an optimal 
pilot frequency power distribution value. According to the method, different channel information of the heterogeneous user is utilized to achieve optimal distribution of pilot frequency power, and the overall 
data transmission performance of the system is improved.