The signals from the inputs 31 to 33 are used in an algorithm or other program run by the processing unit and indicated by the block A. The algorithm computes which of the relays 111 to 116 to 211 to 216 should be open and which should be closed and supplies appropriate signals to an output stage 34 in the unit by which the relays are powered.