Optimal Power and Battery Storage Dispatch Architecture for Microgrids: Implementation in a Campus Microgrid | Synapse