Study of Applications of Artificial Intelligence Algorithm for Analysis and Investigation of Hybrid Energy Systems to give Optimum Power Generation