in this paper, we investigated the necessity and effects of optimal control methods in the stability and performance of a micro-grid that operates in islanded mode. the micro-gird is consisted of a combine heat and power (chp), a capacitor bank (cb), photovoltaic panel (pv) as power generation sources. in addition, battery and the building electricity and thermal load are placed on the load sid...