Due to the specificity of the environment in which the spacecraft is located, it is difficult to conduct a comprehensive test and evaluation in the real environment on how to achieve rendezvous with the target at different distances under different following modes. By analyzing various systematic and random errors that affect spacecraft rendezvous, the orbital model from the initial position to the rendezvous position is constructed by using orbit change algorithm and optimization algorithm, and then the spacecraft rendezvous accuracy calculation model is obtained, and the spacecraft rendezvous simulation is carried out by using this model to obtain a series of simulation data, which is of reference significance for the study of spacecraft.