Modeling Smart electrical microgrid with demand response and storage systems for optimal operation in critical conditions | Synapse