Computational Aspects of the Dynamic Response of a Microgrid: A Comparative Analysis