Necessary and Sufficient Conditions for Maximization of a Class of Preference Relations