This paper presents an alternative to the Gibson method, for discharge estimation of a turbine inside a hydropower plant. The method proposes a genetic algorithm which includes an integration procedure for the water hammer equations using the method of characteristics. The decision variables are represented by the steady-state regime discharge before the valve closure and the pipe friction factor. The recordings of pressure/differential pressure in measuring sections are used.