A quasiconvex asymptotic function with applications in optimization