Implementation of fractional-order electromagnetic potential through a genetic algorithm