Gravar e-mail: Hardware-in-the-loop test for real-time economic control of a DC microgrid