Text this: Optimal distributed generation output and battery switching station placement via ranked evolutionary particle swarm optimization