Microgrid concepts and models for the electrical grid of an industrial district