Optimal Design of Loney’s Solenoid Coil by Using Particle Swam Optimization