A utility function is a mathematical model that quantifies the desirability or value of a particular task allocation outcome, used by allocation algorithms to evaluate and compare different assignment strategies based on factors like cost, time, or quality. It provides a single, comparable score for any given assignment of tasks to agents, enabling systematic optimization. In a multi-agent system, each agent may have its own local utility function representing its self-interest, while an orchestrator or central algorithm employs a global utility function to evaluate the collective outcome. The core purpose is to translate complex, multi-dimensional allocation scenarios—involving deadlines, resource costs, agent capabilities, and dependencies—into a scalar value that can be maximized or minimized. This formalization is foundational to optimization algorithms like Integer Linear Programming (ILP) and market-based allocation mechanisms such as auctions.