Text this: An Optimization Technique for Smart Self-Healing Microgrids