In this paper, the short term optimal economic planning for a microgrid is implemented at two levels with different horizons. The purpose of 24-hour scheduling is to determine the generation of micro-turbines, the contribution of responsive loads, the status of charging and discharging energy storage resources, the exchange rate with the upstream network, the prediction of renewable...