In economics, the utility function measures the welfare or satisfaction of a consumer as a function of the consumption of real goods, such as food or clothing. Utility function is widely used in ...