Abstract-In this paper, the problem of predicting the parameters (positions and magnetic moments) of an Equipment Under Test (EUT) composed of a magnetic dipole and quadrupole is studied. Firstly, a multiple magnetic dipole and quadrupole model (MDQM) is developed to simulate the magnetic behavior of the EUT. The parameters of the model are calculated using the values of the near field measurements applying the Particle Swarm Optimization (PSO) algorithm. For the evaluation of the method, extended simulations were conducted, producing theoretical values and distorting them with noise, and then the developed algorithm was used to create the proper MDQM. As an evaluation criterion, the relative difference between the theoretical and the MDQM's magnetic field is considered.