Text this: Optimization of Energy Systems in a Distribution Micro grid: An Application of the Particle Swarm Optimization