ENERGY MANAGEMENT SYSTEMS FOR MICROGRIDS WITH