Allowing seamless integration of distributed energy resources, Microgrid Control System maintains uninterrupted power to critical loads. Microgrid controller is able to respond to external data, such as real-time pricing signals and fast-changing system dynamics. Priorities can be assigned to various user-defined scenarios, like economic dispatch, carbon footprint minimization, renewable integration, and system resiliency. Hardened security approach ensures that all data remains secure.