Biomass-derived power generation presents various potential benefits compared to conventional fossil fuel-based power generation. Also, efficient integration of energy systems leads to higher sustainability and effectiveness. This paper presents a biomass-fueled energy system with two open and closed Brayton cycles in the waste heat, of which a humidification and dehumidification system is implemented. The usage of four different biomasses as the fuel of the gasifier is tested and put to comparison from the aspects of thermodynamics, economics, and environment. The Grassman diagram for each layout is presented to signpost the exact point of highest exergy destruction and irreversibility. The optimization based on machine learning techniques is conducted to pinpoint the exact optimum operational conditions. The results indicate that wood offers more sustainability compared to other biomasses, and the amount of energy efficiency, exergy efficiency, and freshwater flow rate produced for Wood biomass in the proposed system are 75.81 %, 36.98 %, and 0.4091 kg/s, respectively. Also, two optimization scenarios have been done for this study. In the initial optimal solution finding, effectivness, unit product cost, and carbon dioxide emission index are equal to 45.9 %, 12.6 $/GJ, and 0.7161 kg/kWh, correspondingly. In the latter scenario, the effectiveness, net power production, and production unit cost of products are equal to 45.9 %, 6580 kW, and 12.61 $/GJ, respectively. • A novel Tri-generation system based on supercritical CO 2 cycle and HDH cycle. • Energy, exergy, techno-economic, and environmental analyses are carried out. • Multi-objective optimization using Machine learning Algorithms is done. • Maximum exergy efficiency is obtained to be 40.39 % for MSW. • The minimum production unit cost of products is obtained to be 14.06 $/GJ for MSW. [ABSTRACT FROM AUTHOR]