This paper describes how to solve numerical equations of hydraulic problems that involve the calculation of free and forced channels. The problem is modeled by using the equation of Manning. This equation allows the calculation of outflows, inclination of the channels, roughness, loss of energy and other parameters that are function of the geometry of the channels. Since this equation presents high non-linearity and therefore it doesn't have a closed solution, we propose an alternative solution using Genetic Algorithms (GA) and Evolution Strategy (ES).