






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Each person can be assigned to exactly one job Each job should be assigned to exactly one person Person-job compatibility is given by a directed network (e.g., having a link A → x means “person A can do job x ”)
(if such an assignment exists).
people A^ B C D^ E
jobs (^) x y z u v
set students;
set projects;
set arcs within students cross projects;
var assign{(i,j) in arcs} binary;
maximize total_assignments: sum{(i,j) in arcs} assign[i,j];
s.t. at_most_one_project_for_each_student{i in students}:
sum{(i,j) in arcs} assign[i,j] <= 1;
s.t. at_most_one_student_for_each_project{j in projects}:
sum{(i,j) in arcs} assign[i,j] <= 1;
Integer program for maximum assignment problem
Suppose the constraints of the integer program are written in matrix form Ax ≤ B.
Note that all the entries in A are 0 or 1.
It can be shown that A is totally unimodular , that is, every square nonsingular submatrix has determinant 1 or -1.
As a result of that property, the integer program for Maximum Assignment Problem has the following feature: All CPF solutions of LP-relaxation are integral.
Thus,
the optimal solution of LP-relaxation is also optimal solution for the original IP.
Note that generally having entries 0, 1, -1 doesn’t guarantee that A is totally unimodular (see Coloring Problem).
In the example above, the chromatic number is 4.
set colors;
set nodes;
set arcs within nodes cross nodes;
var use{c in colors} binary;
var assign{i in nodes, c in colors} binary;
minimize number_of_colors: sum{c in colors} use[c];
data;
set colors:= blue red green;
set nodes:= A B C D E F;
set arcs:=
A B
B C
C D
D E
E A
C F;
21 "assign['F','green']" 0 ;