This article proposes a fully distributed energy management algorithm for dc microgrids, resilient to different faults. Specifically, we employ model-predictive control deal with the uncertainty that characterizes microgrid operation. The optimization problem is solved at each time step through algorithm, which has three main advantages: 1) agents of network require small computational power; 2...