Text this: Second order genetic algorithm for magnetic design optimization.