This article introduces a decentralized model predictive controller (DMPC) to ensure power sharing and regulate dc bus voltage in microgrids (MGs) with constant load (CPL). The proposed method replaces the conventional primary layer of MGs, i.e., inner loops droop control, single optimal controller. A automatic system is realized for prediction purposes be used cost function. control objectives...