In this paper, a new simultaneous framework of distribution network operation is proposed based on the scheduling of photovoltaic/wind/battery multi-microgrids with network reconfiguration considering self-healing. The objective function is considered to minimize the energy losses, and multi-microgrids cost and improve the reliability indices including minimization of energy not-supplied (ENS) and minimizing system average interruption duration (SAIDI) and system average interruption frequency (SAIFI) indices. The optimization variables are defined as the situation of the distribution network switches to find the network’s optimal configuration with the installation location and size of renewable resources and battery energy storage during 24 hours. An improved beluga whale optimization (IBWO) based on a nonlinearly diminishing inertia weight (NDIW) approach is used to find the optimal variable set of the problem. The recommended methodology is implemented on 33-bus and real 59-bus distribution networks. The results demonstrated that by obtaining an optimal state of the network switches in the event of a fault, as well as the optimal scheduling of the two microgrids, the energy losses have decreased and the reliability indices have improved. The outcomes of the proposed methodology based on the hybrid multi-microgrid allocation and network reconfiguration are stated that the losses, ENS, SAIDI, and SAIFI are reduced by 66.39%, 54.00%, 50.24%, and 33.61%, respectively, for 33-bus network and are declined by 65.29%, 57.44%, 48.63%, and 62.33%, respectively, for the real 59-bus Ahvaz network in comparison with the base network. The obtained results illustrated that in the condition of the network line outage, by simultaneously implementing the reconfiguration with the change of network switches and the optimal allocation and scheduling of HMGs in the network, self-healing is provided to prevent a significant weakening of the network performance so that the resilience is improved in addition to minimizing the energy losses and the cost of HMG energy injection compared to the base network. The findings revealed that the objectives including losses, ENS, SAIFI, and SAIDI are increased by 78.29%, 33.00%, 83.33%, and 35.11%, respectively, due to outage of line 22 of the 33-bus network and these objectives are increased by 52.32%, 10.30%, 32.29%, and 79.66%, respectively, due to outage of line 12 of the 59-bus network compared with not considering the line outage. Moreover, the superior capability of the recommended NDIW-based IBWO has been confirmed in comparison with the well-known particle swarm optimizer (PSO) and ant lion optimizer (ALO) in solving the problem to achieve better objective value.