Handling transformer inrush current where load varies greatly and is often switched on and off