Continuous Flock-of-Starlings Optimization for a general magnetic hysteresis model