Photovoltaic Systems Have Become an Important Source of Renewable Energy Generation. Because Solar Power Generation Is Intrinsically Highly Dependent on Weather Fluctuations, Predicting Power Generation Using Weather Information Has Several Economic Benefits, Including Reliable Operation Planning and Proactive Power Trading. This Study Builds a Model That Predicts the Amounts of Solar Power Generation Using Weather Information Provided By Weather Agencies. Here Ba-Pso (Butterfly Algorithm Particle Swarm Optimization) Genetic Algorithm Is Used to Predict the Solar Power Requirement. a Set of Environmental Variables Are Collected and Their Effect on Solar Power Generation Is Evaluated By Ba-Pso. This Work Considers a Set of Environmental Features With Their Impact Ratio Solar Power Prediction. the Ba-Pso Was Applied on Dataset of Raipur City In Chhattisgarh State of India and the Results Show Reduction In Mae, Rmse and Improvement In Power Prediction When Compared With Ground Truth Values Taken from Indian Railway Top Roof Solar Installation.