In this paper we consider a dynamic model for flow induced vibration of pipelines. We study the questions of existence and uniqueness of solutions of the system. Considering the flow rate as the control variable, we present three different necessary conditions of optimality. The last one with state constraint involves Differential Inclusions. The paper is concluded with an algorithm for computing the optimal controls.