Selection of capacitor compensation group