Microgrid Modeling, Planning And Operation