This thesis examines the operation of a networked microgrid community (MGC) model through electromagnetic simulation and stochastic optimization. The MGC model in PSCAD contains three microgrids interconnected through a medium voltage distribution system. Simulation results demonstrate the MGC's ability to respond to secondary control signals like economic dispatch in both grid-connected and islanding operations, while primary controls maintain stable voltage and frequency. A two-stage stochastic optimization model is also developed to determine optimal energy scheduling under load, generation and price uncertainties. The research aims to validate the operational feasibility of the MGC and effectiveness of hierarchical control strategies.