Piezoelectric actuators are effectively used to control the response of light weight structures in shape, vibration and buckling. Optimization for the shape control of piezoelectric beam is the recent challenge which requires proper numerical technique to perform. The shape control of a composite beam using surface-bounded piezoelectric actuators has been investigated in the present work. The mathematical model is developed using twonode Timoshenko beam element coupling with the theory of linear piezoelectricity. First-order shear deformation theory is employed in the formulation to consider the effect of shear. In the analysis, the effect of the actuators position for different set of boundary conditions is investigated. For different boundary conditions which include clampedfree-, clamped-clamped-and simply supported beam, optimisation of piezoelectric patch location is investigated. Moreover, a genetic algorithm is adopted and implemented to optimize the required voltage to maintain the desired shape of the beam. This optimization technique is applied to different cases of composite beams with varying the boundary condition.