optimization workflow