Text this: Simulation of a Flexible Mirror Performance in the Problem of Adaptive Compensation for Aberrations in an Optical System