This document discusses the optimization of the array factor pattern in a 49-element active planar phased array using Particle Swarm Optimization (PSO) after element failures. It highlights the issue of degraded performance due to non-working antenna elements and presents a method for recovering the array's original performance through evolutionary algorithms without physical repairs. Various test cases are evaluated, demonstrating the effectiveness of PSO in minimizing degradation and restoring array factor quality.