params_to_target function

convert parameters to optimization target