This paper introduces a renewable-energy-based microgrid that includes Photovoltaic (PV) energy and wind generation units. Also, an storage system is present. The proposed loaded with constant load impedance. To improve the performance of microgrid, optimal control algorithm utilizing Cuckoo Search Algorithm (CSA) adapted. It has many merits such as fast convergence, simple tunning, high effici...