Renewable energy technologies (RETs) have been universally accepted as the prospective choice to increase the reliability of the power system and reduce the effects of emission cost (EC), fuel cost (FC), maintenance cost (MC), power loss (PL), total annual cost (TAC) and voltage deviation (VD). The performance indicators are used in the study to assess the effects of diesel generator (DG), electric storage system (ESS), photovoltaic (PV) and wind turbine generator (WTG) on the environmental, economic, and technical performance of a microgrid system with modified Roy Billiton Test System (RBTS) bus 4 distribution network. The proposed model is utilized to achieve the goals of the study by minimizing the costs that are identified with the power outages, TAC, MC, EC, FC, PL, and VD of the system with the application of an intelligent optimal control method based on the fmincon solver. The outcomes of the study can be used as benchmarks to assess the cost-effectiveness of increasing the capacity of universal power supply and resolve the universal power crisis owing to the depletion of fossil fuels. The study provides vital information to enhance the efficiency of the power system and the guidelines to promote the development of sustainable energy.