OptimizationSetup_ATSM function

Optimization routine for the entire selected ATSM