Professional Documents
Culture Documents
DS321 Lip 2022 2023 L20
DS321 Lip 2022 2023 L20
Abou-El-Enien
Page 1 of 4
DS321-Linear & Integer Programming - Prof. Dr. Tarek H. M. Abou-El-Enien
𝑚 𝑛
subject to
𝑛
𝑥𝑖𝑗 = 0 𝑜𝑟 1.
Note:
The objective of the model is to determine the minimum-cost
assignment of workers (or activity or ….) to jobs (or units or …).
Example(1):
AliShop needs to assign 3 jobs to 3 workers. The cost of performing a job is a
function of the skils of the workers. The following table summarizes the cost of the
assignments.
Job
Worker
1 2 3
1 120 EP 115 EP 131 EP
2 117 EP 116 EP 133 EP
3 118 EP 119 EP 127 EP
Write the linear programming model for the above problem to determine the
minimum-cost assignment of workers to jobs.
Page 2 of 4
DS321-Linear & Integer Programming - Prof. Dr. Tarek H. M. Abou-El-Enien
Solution:
The LP model of the problem is given as:
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝐹 = 120𝑥11 + 115𝑥12 + 131𝑥13
+117𝑥21 + 116𝑥22 + 133𝑥23
+118𝑥31 + 119𝑥31 + 127𝑥33 ,
subject to
𝑥11 + 𝑥12 + 𝑥13 = 1,
𝑥21 + 𝑥22 + 𝑥23 = 1,
𝑥31 + 𝑥32 + 𝑥33 = 1,
𝑥11 + 𝑥21 + 𝑥31 = 1,
𝑥12 + 𝑥22 + 𝑥32 = 1,
𝑥13 + 𝑥23 + 𝑥33 = 1,
𝑥𝑖𝑗 = 0 𝑜𝑟 1, ∀ 𝑖, 𝑗.
Page 3 of 4
DS321-Linear & Integer Programming - Prof. Dr. Tarek H. M. Abou-El-Enien
Example(2):
AliShop needs to assign 3 jobs to 3 workers. The cost of performing a
job is a function of the skils of the workers. The following table
summarizes the cost of the assignments.
Job
Worker
1 2 3
1 20000 EP 15000 EP 31000 EP
2 17000 EP 16000 EP 33000 EP
3 18000 EP 19000 EP 27000 EP
Use the complete enumeration method to find the minimum cost to assign 3 jobs to
3 workers for the above problem.
Solution:
No. All combinations Cost
1 𝑊1 𝐽1 𝑊2 𝐽2 𝑊3 𝐽3 20000+16000+27000=63000
2 𝑊1 𝐽1 𝑊3 𝐽2 𝑊2 𝐽3 20000+19000+33000=72000
3 𝑊2 𝐽1 𝑊1 𝐽2 𝑊3 𝐽3 17000+15000+27000=59000
4 𝑊2 𝐽1 𝑊3 𝐽2 𝑊1 𝐽3 17000+19000+31000=67000
5 𝑊3 𝐽1 𝑊2 𝐽2 𝑊1 𝐽3 18000+16000+31000=65000
6 𝑊3 𝐽1 𝑊1 𝐽2 𝑊2 𝐽3 18000+15000+33000=66000
Page 4 of 4