Dynamic Control and Optimization of Distributed Energy Resources in a Microgrid | Synapse