This study focuses on improving power system grid performance and efficiency through the integration of distributed energy resources (DERs). The study proposes an artificial intelligence (AI) based effective approach for economic dispatch and load management for three linked microgrids (MGs) that operate in both grid-connected and autonomous modes. A day-ahead scheduling method is suggested to calculate the optimal set points for various energy sources in MGs considering various system constraints for safe operation. In addition, a load management approach that shifts the controllable loads from one interval to another is applied to reduce the operating cost of MG. To handle the optimization challenges of energy scheduling and load shifting such complexity and non-linearity, an advanced meta-heuristic method known as the one-to-one based optimizer (OOBO) is used. Overall, the paper proposes a viable and efficient methodology for economical distribution in linked microgrids, which takes advantage of renewable energy resources and incorporates scheduling optimization via the OOBO algorithm. The proposed energy management strategy enhances the system performance, increases energy efficiency, and reduces the daily operational cost by 1.6% for grid connected mode and by 0.47% for islanded operation mode.