Although algal-based membrane bioreactors (AMBRs) have been demonstrated to be effective in treating wastewater (landfill leachate), there needs to be more research into the effectiveness of these systems. This study aims to determine whether AMBR is effective in treating landfill leachate with hydraulic retention times (HRTs) of 8, 12, 14, 16, 21, and 24 h to maximize AMBR's energy efficiency, microalgal biomass production, and removal efficiency using artificial neural network (ANN) models. Experimental results and simulations indicate that biomass production in bioreactors depends heavily on HRT. A decrease in HRT increases algal (Chlorella vulgaris) biomass productivity. Results also showed that 80% of chemical oxygen demand (COD) was removed from algal biomass by bioreactors. To determine the most efficient way to process the features as mentioned above, nondominated sorting genetic algorithm II (NSGA-II) techniques were applied. A mesophilic, suspended-thermophilic, and attached-thermophilic organic loading rate (OLR) of 1.28, 1.06, and 2 kg/m3/day was obtained for each method. Compared to suspended-thermophilic growth (3.43 kg/m3.day) and mesophilic growth (1.28 kg/m3.day), attached-thermophilic growth has a critical loading rate of 10.5 kg/m3.day. An energy audit and an assessment of the system's auto-thermality were performed at the end of the calculation using the Monod equation for biomass production rate (Y) and bacteria death constant (Kd). According to the results, a high removal level of COD (at least 4000 mg COD/liter) leads to auto-thermality.