Magnetic hysteresis problem