Arc furnace model for the study of flicker compensation in electrical networks