Professional Documents
Culture Documents
Or Simplex
Or Simplex
Or Simplex
X1 X2 available
Department
Fabrication 4 2 600 hrs.
Profit/Unit 40 MU 30 MU
Model building:
Objective function: Max! Z = 40X1 + 30X2 Max! Z = 40X1 + 30X2 + 0S1 + 0S2
Cj Mix bi X1 X2 S1 S2 bi/aij____
0 S2 480 2 6 0 1 480/2=240
Zj 0 0 0 0 0
Cj - Z j 40 30 0 0 ___________
Max! Entering
2 - 2(1) = 0
6 – 2(1/2) = 5
0 – 2(1/4) = - ½
1 – 2(0) = 1
Cj Mix bi X1 X2 S1 S2 bi/aij____
40 X1 150 1 ½ ¼ 0 150/0.5=300
Zj 6000 40 20 10 0
Cj - Z j 0 10 - 10 0 ___________
Max! Entering
New values of X1
1 - ½ (0) = 1
0.5 – ½ (1) = 0
¼ - ½ (-0.1) = 0.3
0 – ½ (0.2) = -0.1
Cj Mix bi X1 X2 S1 S2 _
40 X1 132 1 0 0.3 - 0.1
30 X2 36 0 1 - 0.1 0.2
Zj 6360 40 30 9 2
Cj - Z j 0 0 -9 - 2___
There is no positive value in the row of “C j – Zj”, therefore optimal solution is obtained.
2. A small candy shop is preparing for the holiday season. The owner must decide how many bags of
deluxe mix and how many bags of standard mix of Peanut/Raisin Delite to put up. The deluxe mix has
2/3 pound raisins and 1/3 pound peanuts, and the standard mix has ½ pound raisins and ½ pound
peanuts per bag. The shop has 90 pounds of raisins and 60 pounds of peanuts to work with.
Peanuts cost $0.60 per pound and raisins cost $1.5 per pound. The deluxe mix will sell for $2.90 per
pound, and the standard mix will sell for $2.55 per pound. The owner estimates that no more than 110
bags of one type can be sold.
a. If the goal is to maximize profits, how many bags of each types should be prepared?
b. What is the expected profit?
Solution
Model construction:
1/3X1 + 1/2X2 ≤ 60
X1 ≤ 110
X2 ≤ 110
X1, X2 ≥ 0
Subject to : 2/3X1 + ½ X2 + S1 = 90
1/3X1 + 1/2X2 + S2 = 60
X1 + S3 =110
X2 + S4 = 110
All variables ≥ 0
Cj Mix bi X1 X2 S1 S2 S3 S4___bi/aij
0 S1 90 2/3 ½ 1 0 0 0 90/2/3=135
0 S2 60 1/3 ½ 0 1 0 0 60/1/3=180
0 S4 110 0 1 0 0 0 1 -
Zj 0 0 0 0 0 0 0
Max! Entering
Cj Mix bi X1 X2 S1 S2 S3 S4___bi/aij
0 S4 110 0 1 0 0 0 1 110/1=110
Max! Entering
70/3 – ½(100/3) = 20/3 Since the key number 110 – 1(100/3) = 230/3
0 – ½ (2) = -1 0 – 1(2) = -2
1 – ½ (0) =1 0 – 1(0) =0
0 – ½ (0) =0 1 – 1(0) =1
Third Simplex Tableau:
Cj Mix bi X1 X2 S1 S2 S3 S4___bi/aij
C j - Zj 0 0 -3 0 0.3 0 ___
Max! Entering
Cj Mix bi X1 X2 S1 S2 S3 S4___
1.5 X2 60 0 1 -2 4 0 0
0 S3 20 0 0 -3 3 1 0
1.7 X1 90 1 0 3 -3 0 0
0 S4 50 0 0 2 -4 0 1
There is no positive value in the row of “C j – Zj”, therefore we have obtained the optimal
solution.
b) We should prepare 90 bags of deluxe, 60 bags of standard. Expected maximum profit is 243 MU.
3. Hurşit Manufacturing has contracted to build two products. A and B, for an out- of –state purchaser.
The purchaser has indicated that all of the units that are manufactured will be bought. Hurşit plans to
manufacture as many units as possible each operating day. However, capacity restrictions are such
that Hurşit can produce at most 10 units of an at most 6 units of B per day.
An analysis of current assembly operation revealed the following: Product A requires 5 man
hours per unit and Product B requires 6 man-hours per unit. Product B also requires twice as much
inspection time as does Product A, which requires 1 man-hour per unit. Hurşit has a maximum of 60
man-hours per day for producing both products and at most 16 man-hours for inspection. Product A
return a profit of $ 2 per unit.and product B returns a profit of $3 per unit. Use the simplex method to
determine the most profitable daily combination.
Solution
Data Summary:
Product A Product B Available
X1 X2 Capacity
Objective function:
Max! Z = 2X1 + 3X2 Max! Z = 2X1 + 3X2 + 0S1 + 0S2 + 0S3 + 0S4
Subject to:
5X1 + 6X2 ≤ 60 5X1 + 6X2 + S1 = 60
X1 + 2X2 ≤ 16 X1 + 2X2 + S2 = 16
X1 ≤ 10 X1 + S3 = 10
X2 ≤ 6 X2 + S4 = 6
Product Quantity 2 3 0 0 0 0
Cj Mix bi X1 X2 S1 S2 S3 S4 bi/aij
0 S1 60 5 6 1 0 0 0 60/6=10
0 S2 16 1 2 0 1 0 0 16/2=8
0 S3 10 1 0 0 0 1 0 -
Zj 0 0 0 0 0 0 0
Cj - Z j 2 3 0 0 0 0
Max! Entering
Old S1 Row – Key No.(New X2 Values) = New S1 Values Old S2 Row – Key No.(New X2 Values) = New S2 Values
60 – 6(6) = 24 16 – 2(6) = 4
5 – 6(0) = 5 1 – 2(0) = 1
6 – 6(1) = 0 2 – 2(1) = 0
1 – 6(0) = 1 0 – 2(0) = 0
0 – 6(0) = 0 1 – 2(0) = 1
0 – 6(0) = 0 0 – 2(0) = 0
0 – 6(1) = -6 0 – 2(1) = -2
Since the key number of S3 row is 0, therefore the values of S 3 remain same.
Second Simplex Tableau:
Product Quantity 2 3 0 0 0 0
Cj Mix bi X1 X2 S1 S2 S3 S4 bi/aij
0 S1 24 5 0 1 0 0 -6 24/5=4.8
0 S3 10 1 0 0 0 1 0 10/1=1
3 X2 6 0 1 0 0 0 1 6/0=∞ -
Zj 18 0 0 0 0 0 0
Cj - Z j 2 0 0 0 0 -3
Max! Entering
Old S1 Row – Key No.(New X1 Values) = New S1 Values Old S3 Row – Key No.(New X1 Values) = New S3 Values
24 – 5(4) = 4 10 – 1(4) = 6
5 – 5(1) = 0 1 – 1(1) = 0
0 – 5(0) = 0 0 – 1(0) = 0
1 – 5(0) = 1 0 – 1(0) = 0
0 – 5(1) = -5 0 – 1(1) = -1
0 – 5(0) = 0 1 – 1(0) = 1
-6 – 5(-2) = 4 0 – 1(-2) = 2
Product Quantity 2 3 0 0 0 0
Cj Mix bi X1 X2 S1 S2 S3 S4 bi/aij
2 X1 4 1 0 0 1 0 -2 -
0 S3 6 0 0 0 -1 1 2 6/2=3
3 X2 6 0 1 0 0 0 1 6/1=6
Zj 26 2 3 0 2 0 -1
Cj - Z j 0 0 0 -2 0 1
Max! Entering
Old X1 Row – Key No.(New S4 Values) = New X1 Values Old S3 Row – Key No.(New S4 Values) = New S3 Values
4 – (-2)1 = 6 6 – 2(1) = 4
1 – (-2)0 = 1 0 – 2(0) = 0
0 – (-2)0 = 0 0 – 2(0) = 0
0 – (-2)¼ = ½ 0 – 2(1/4) = -½
0 – (-2)0 = 0 1 – 2(0) = 1
-2 – (-2)1 = 0 2 – 2(1) = 0
6 – 1(1) = 5
0 – 1(0) = 0
1 – 1(0) = 1
0 – 1(1/4) = -¼
0 – 1(-5/4) = 5/4
0 – 1(0) = 0
1 – 1(1) = 0
Product Quantity 2 3 0 0 0 0
Cj Mix bi X1 X2 S1 S2 S3 S4
0 S4 1 0 0 ¼ -5/4 0 1
2 X1 6 1 0 ½ -3/2 0 0
0 S3 4 0 0 -½ 3/2 1 0
3 X2 5 0 1 -¼ 5/4 0 0
Zj 27 2 3 ¼ 3/4 0 0
Cj - Z j 0 0 -¼ -3/4 0 0
Inspection of 4th Tableau reveals that “Cj – Zj” ≤ 0 for all values of “Cj – Zj”, which means the
optimal solution is attained.
The solution is X1 = 6
X2 = 5
S3 = 4
S4 = 1 .
In order to achieve maximum profit, it is necessary to produce 6 units of Product A, and 5 units of
Product B, This combination will result in a maximum of 27 MU. The S 3 value indicates that Hurşit will
have 4 units of unused capacity for producing Product A as given in the original formulation of the
problem. The S4 value of 1 indicates that there will be 1 unit of unused capacity for producing
Product B. Since S1 and S2 do not appear in the solution set, they both equal zero. Hence
production an d inspection time will be totally consumed.
4. Data Summary:
X1 X2 ___
Profit 6 MU 5 MU ___
Objective function:
Subject to:
X 1 , X2 ≥ 0 All variables ≥0
Product Quantity 6 5 0 0
Cj Mix bi X1 X2 S1 S2 bi/aij
0 S1 40 4 3 1 0 10
Zj 0 0 0 0 0
_____Cj-Zj 6 5 0 0__________
Max! Entering
Product Quantity 6 5 0 0
Cj Mix bi X1 X2 S1 S2
0 S1 10 0 -2 1 -1
6 X1 15/21 5/4 0 ¼
Thus
Total profit = 45 MU