Optimal Management of Hydropower System