The invention relates to the technical field of bat algorithms, and particularly discloses a
radar emission angle adjusting method for a
radar level meter based on the
bat algorithm, which comprises the following steps: S1, acquiring an emission angle range of the
radar level meter, and presetting a bat
population and a maximum number of iterations; s2, performing iterative optimization on the bat to adjust the frequency, calculating the fitness value, the updating speed and the angle of the
echo signal, and generating a local new solution; s3, issuing the local new solution, collecting echo data, calculating a fitness value corresponding to the local new solution, and calculating the pulse
emissivity and
loudness of the bats after iteration; and S4, updating the globally optimal solution and the fitness value, outputting the globally optimal solution and setting parameters of the radar level meter. According to the scheme, the optimization model is constructed based on the
bat algorithm, the emission angle is converted into the
algorithm search space, the search efficiency is balanced by dynamically adjusting the frequency, the
emissivity and the
loudness, the optimization parameters are verified in combination with a hardware
closed loop, and the optimal parameters are solidified to realize stable measurement, so that the precision is improved.