Text this: Magnetic Coil’s Performance Optimization with Nonsmooth Search Algorithms