Among alternative energy sources for fossil fuels, hydrogen has emerged as a promising candidate; however, its production methods, reliant on fossil fuels, constrain its widespread adoption as a sustainable energy source. To transcend this limitation, researchers have proposed the concept of green hydrogen production, leveraging renewable energy sources, as a viable solution. This study presents a comprehensive techno-economic analysis that seeks to evaluate the feasibility of establishing a multi-generation green power plant in Iran. Extensive climate data from diverse locations across Iran were collected to determine the most influential design parameters. A mathematical model was developed to simulate the entire system, and an innovative neural network algorithm was employed to optimize the objective functions, given the substantial computational time required for the optimization process. The results of the optimization revealed Qeshm island as the optimal location for the green power plant, considering its favorable annual average temperature, wind speed, and solar radiation intensity. Remarkably, the proposed green power plant boasts a robust power generation capacity of 10.1 MW, enabling the production of 250 tons of hydrogen per year, exhibiting a 10 % improvement in exergy efficiency, and a 6 % reduction in LCOE, in comparison to similar studies. Furthermore, it exhibits an impressive total exergy efficiency of 41.6 %, resulting in a substantial annual income of $3.9 million and achieving a commendable payback period of 1.8 years.