Operations Research
Operations Research
Objective: The objective of the assignment problem is to assign n tasks to n resources (e.g., workers,
machines) in such a way that the total cost (or time, or any other relevant measure) is minimized (or
maximized).
Parameters:
n: Number of tasks (and also the number of resources, as it's a square problem).
cᵢⱼ: Cost (or value) of assigning resource i to task *j`, where i,j∈ {1,2,...,n}.
Decision Variables:
xij: A binary variable such that:
xij=1 if resource i is assigned to task *j$.
xij=0 if resource i is not assigned to task *j$.
Mathematical Model (Minimization):
Minimize:
Z=i=1∑nj=1∑ncijxij
Subject to the following constraints:
Each resource is assigned to exactly one task: j=1∑nxij=1for all i=1,2,...,n
Each task is assigned to exactly one resource: i=1∑nxij=1for all j=1,2,...,n
Binary constraint on decision variables: xij∈ {0,1}for all i,j=1,2,...,n
Mathematical Model (Maximization):
If the objective is to maximize a value (e.g., profit, efficiency), the formulation changes to:
Maximize:
Z=i=1∑nj=1∑nvijxij
where vij is the value of assigning resource i to task *j$.