Example 2: Feed Mix Problem
Example 2: Feed Mix Problem
Example 2: Feed Mix Problem
1
Problem Formulation
Decision variables
Minimize Z= 2 X1 + 5 X2
Constraints
3
Problem Formulation
Decision variables
Objective Function
Constraints 10 X1 + 3 X 2 + 8 X3 + >= 5
904 X1 + 150 X2 + 75 X3 + 175 X4
2X >=
10
45 X11 + 25 X22 + 20 X33 ++ 37 X4 >=
30 X14, X2, X3, X4
=1
4
>= 0
Example 4: Inspection Problem
A company has 2 grades of inspectors 1&2. It is required that at
least 1800 pieces be inspected per 8 hour- day. Grade 1 inspectors can
check pieces at the rate of 25 per hour with an accuracy of 98%.
Grade 2 inspectors can check at the rate of 15 pieces per hour with an
accuracy of 95%. Grade 1 costs 4 L.E/hour, grade 2 costs 3 L.E/hour.
Each time an error is made by an inspector costs the company 2
L.E. There are 8 grade 1 and 10 grade 2 inspectors available. The
company wants to determine the optimal assignment of inspectors
which will minimize the total cost of inspection/day.
5
Problem Formulation
Decision Variables
X1= Number of grade 1 inspectors/day.
X2= Number of grade 2 inspectors/day.
Objective Function
Cost of inspection = Cost of error + Inspector
salary/day
Cost of grade 1/hour = 4 + (2 X 25 X 0.02) = 5 L.E
Cost of grade 2/hour = 3 + (2 X 15 X 0.05) = 4.5 L.E
7
Formulate to minimize the trim loss and the number of rolls
needed to satisfy the order.
8
Problem Formulation
Decision variables
Xj = Number of standard rolls to be cut according to setting j
j = 1, 2, 3, 4, 5, 6
Number of 5 feet rolls produced = 2 X2 + 2 X3 + 4 X4 + X5
Number of 7 feet rolls produced = X1 + X2+ 2 X5
Number of 9 feet rolls produced = X1 + X3+ 2 X6
Let Y1, Y2, Y3 be the number of surplus rolls of the 5, 7,
9 feet rolls thus
Y1= 2 X2 + 2 X3 + 4 X4 + X5 - 150
Y2= X1 + X2+ 2 X5 - 200
Y3= X1 + X3+ 2 X6 - 300
The total trim losses = L (4X1 +3 X2+ X3 + X5 + 2 X6 + 5Y1+ 7Y2+
9Y3) Where L is the length of the standard roll.
Objective Function
Minimize Z= L(4X1 +32X2+ X2+ X3
2 X+3+ 4 X4+ XX5 - Y1 7Y2+ 9Y3)
5 + 2 X6 + 5Y1+ = 150
Constraints X1 + X2 +2X5 - Y2 = 200
X1 + X3 + 2 X6 - Y3 = 300
X1, X2, X3, X4, X5, X6 >= 0
Y1, Y2, Y3 >= 0
9
General form of a LP problem with m constraints and n
decision variables is:
Constraints
10
OR
Constraints
<= bi Xi >=0 i = 1, …., m j = 1, ….,
Σnj=1 aijXi
n
Where
n = Number of activities.
Xj = Level of activity j
Cj =Contribution of the objective function/unit of activity j
m = Number of resources
Bi = Amount of resource i available.
Aij=Amount of resource i consumed by one unit of
activity j
1. forms
Other Minimize Z= Σ j=1 CjXj
n