profile_max, phatfree = self._profile_optimum(phatfree, p_minmax)