Waste Heat and Water Recovery System Optimization for Flue Gas in Thermal Power Plants