Modeling And Controlling A Hybrid Multi-Agent Based Microgrid In Presence Of Different Physical And Cyber Components