The Stirling engine, invented in 1816, was initially lacking comprehensive scientific understanding, which only surfaced after a considerable 50-year period. In the present era, impressive strides have been made in enhancing the performance of Stirling engines through the implementation of thermodynamics cycles. Despite these advancements, there remains untapped potential for further improvements through the application of soft computing methods. To address this, the focal point of this research paper centers around optimizing the Stirling engine, specifically focusing on a gamma type double piston Stirling engine and leveraging genetic algorithms to achieve the desired enhancements. The obtained results from this meticulous analysis are meticulously compared with experimental data, validating the efficacy of the approach. Additionally, the paper explores the potential impact of utilizing cryogenic fluids as coolants on the Stirling engine's performance