Valve control for optimum performance in compression refrigeration cycles