The present paper is concerned with a flexible beam as a model of a floating breakwater. The aim is to determine the optimum shape design which minimizes the transmitted wave energy (from the incoming waves). The vibration analysis is based on the Galerkin method. The thickness of the beam is described in terms of a Fourier expansion, using the Fourier coefficients as design variables.