Abstract-An innovative method for antenna arrays beam configuration is presented. In the proposed method, every element of the array is connected to its feed through a switch, so that it can be active or passive, depending on the switch position. Pattern reconfigurability is achieved by appropriately switching on or off the array elements. The optimal configuration of the switches for each of the radiated patterns, as well the common voltages of the active elements, is calculated by using a genetic algorithm. For each configuration, the currents in the driven and parasitic elements are determined, via their self and mutual impedances, by inversion of the impedance matrix. In the presented examples, the method has been applied to both linear and planar arrays of parallel dipoles that switch the power pattern from a pencil to a flat-topped beam (linear array) or to a footprint pattern (planar array).