Online optimizations of NSLS-II Linac and Linac-to-Booster beam lines using machine learning methods | Synapse