ADVANCED AI APPROACHES FOR THE MODELING AND OPTIMIZATION OF MICROGRID