Optimization Methods and Algorithms for Solving Of Hydro