A Neural Approach to the Hysteresis Modeling Applied to Electromagnetic Computation