G-quasiconvex (quasiconcave) function