This paper presents a four-element linear array composed of E-shaped microstrip antennas designed to switchedbeam application in ISM (Industrial, Scientific and Medical) radio band. Particle Swarm Optimization (PSO) algorithm is used to optimize four different sets of amplitude and progressive phase shift to achieve four distinct radiation patterns controlling the major lobe direction and sidelobe level. For this application, two restrictive approaches are presented for the implementation of PSO in order to guide the algorithm to feasible solutions.