An apparatus for reactive power compensation in an ac medium voltage power network. The apparatus includes a common connection; a first branch including a first switch, and a first capacitor; and a second branch including a second switch and a second capacitor.