In this paper, self-tuning model predictive control (MPC) based on a type-2 fuzzy system for microgrid frequency is presented. The calculates the parameters and coefficients of online. examined, there are sources photovoltaic power generation, wind, diesel, fuel cells (with hydrogen electrolyzer), batteries flywheels. simulating load changes, changes in production capacity solar wind resources ...