@article{meier2022optimizing, abstract = {Superconducting photoelectron injectors are promising for generating highly brilliant pulsed electron beams with high repetition rates and low emittances. Experiments such as ultrafast electron diffraction, experiments at the Terahertz scale, and energy recovery linac applications require such properties. However, optimizing the beam properties is challenging due to the high number of possible machine parameter combinations. This article shows the successful automated optimization of beam properties utilizing an already existing simulation model. To reduce the required computation time, we replace the costly simulation with a faster approximation with a neural network. For optimization, we propose a reinforcement learning approach leveraging the simple computation of the derivative of the approximation. We prove that our approach outperforms standard optimization methods for the required function evaluations given a defined minimum accuracy.}, author = {Meier, David and Ramirez, Luis Vera and Völker, Jens and Viefhaus, Jens and Sick, Bernhard and Hartmann, Gregor}, codeurl = {https://gitlab.helmholtz-berlin.de/sealab/rl-optimization}, doi = {10.1103/PhysRevAccelBeams.25.104604}, interhash = {be44107282fbabe9c7b8c3637602ce13}, intrahash = {c697657a048bafec2f0eb5269efacf0f}, journal = {Physical Review Accelerators and Beams}, number = 10, pages = 104604, publisher = {American Physical Society}, title = {Optimizing a superconducting radio-frequency gun using deep reinforcement learning}, url = {https://journals.aps.org/prab/abstract/10.1103/PhysRevAccelBeams.25.104604}, volume = 25, year = 2022 }