Text this: Simulation approach for optimization processes in the magnetoplasma accelerator