Urban solid waste has a significant impact on the environment and sustainable development, especially with legislative efforts focused on waste preservation to mitigate climate change. By integrating solid waste reduction and recovery systems into the integrated municipal waste management framework in Ouagadougou, numerous health, socio-economic, and environmental benefits can be realized. The objective of this study is to create a tool will focus on the life-cycle assessment of waste to energy, incorporating an analysis of the municipal waste boundary system to offer additional economic and environmental advantages. Ultimately, optimizing the dual objectives can yield accurate results in terms of minimal and maximum carbon footprint and variable cost, thereby aiding in the improvement of government strategies for urban waste reduction. In this paper, we present the methods and findings of developing a systematic optimization framework for the analysis of communal waste using mathematical modelling. This approach relies on calculations in the basic model and employs Python, the pyomo package, and CPLEX algorithms to solve the optimization problem. An environmental life-cycle analysis revealed an average minimum per capita carbon footprint of 252.8 kgCO2eq and an average maximum per capita carbon footprint of 74,455.2345 kgCO2eq. Additionally, in this work, there is an average minimum variable cost estimated 9.99 euros and an average maximum variable cost valued 892,448 euros. This research proposes further investigation into optimizing the selection of solid waste recovery projects and reducing the use of environmentally polluting technologies such as motorcycles.