1 - Practice Questions
1 - Practice Questions
13
Linear
Product Quantity 3 4 0
Mix
6 1
2 1 0
S
24 4 4 0
-1 0 -4
C-2
above table gives
) Looking at the C,-2, row, all entries are zero or negative; therefore the
and max z 24.
optimum solution. The optimum solution is:x, =0, x,6
first constraint, and it has C-2,=-4 in the final
)The slack variable s, corresponds to the
means that we could increase the
table. Thus the shadow price for machine I is + 4. This
hence it is the maximum
objective function by 4 if we had an additional unit of this machine;the second machine, the
machine. Similarly, for
price one should pay for 1 hour of this machine won't help, since this
shadow price is s,=0. An additional unit of the second
machine has not been fully utilised.
materials A and B are rèquired to construct tables
and book cases. For one
Example 5. Two
while for a book case 16 units of A and 8
table 12 units of A and 16 units of B are needed
case is ? 25 and 20 on a table. 100 units of
units of B are required. The profit on a book to
material A and 80 units of B are available.
How many book cases and tables be produced
have maximum profit ?
method.
Formulate this as a linear programming problem and solve by simplex
[Delhi Uni». B.Com. (H) 20141
denote the number of book cases produced.
Solution. Let x denote the number of tables and y
is:
Then the mathematical formulation of the problem
x, Y, S1, S22 0
100 and s, 80 =
Simplex Tableau
Basic Solution 20 25 0 Ratio
Variable
0 100 12 1 0 100/16 25/
4
0 S2 80 16 8 80/8 10
0 0 0 0
20 25 t 0 0
C-2
Since there is a positive C -2, entry, we must continue. The largest positiveentry, 25,.occurs
in the y-column. Thus y is the entering variable and y-column is the key column. To find the
departing variable, we divide each entry of the "solution" column by the corresponding
positive entry of the key column. The smallest nonnegative ratio is 25/4, so s, is the departing
variable and s- row is the key row. The key number, 16, is circled. Replacing key-and non
tableau.
key rows using the technique discussed in Section 4.4, we obtain second
Simplex Tableau ll
Simplex Tableau ll
C Basic Solution 20 25 0 0
Variable S
S2
25 1/10 -3/40
20 3 0 - 1/20 1/10
160 20 25 3/2 1/8
s 35 2 y and s 12 + 3y
s20 y
Since s s2, Sz are nonnegative, we have y < 20, y< 35/2 and y2- 4. Hence y can increase
at most by 35/2. The condition y> - 4 has no influence in determining the maximum increase
12/(-3)=-4 is not considered in s- row
iny. That is why the quotient
Note. Although the simplex procedure that has been developed in this section applies to linear
programming problems of standard form, other forms may be adapted to fit this form as is
illustrated in the following example.
2 X20
Solution. This is a maximization problem in which the second constraint
- 2 x 2 - * 2 -2
has the inequality symbol 2. Thus this is not the standard form of a maximization problem.
However, multiplying both sides of this constraint by 1 , we get
+2x2 +*3 S 2
-
which is in the standard form. Thus, although the given problem as stated is not in standard
form, it can easily be modified to put in standard form. Now by introducing slack variables s,
and s, the problem can be restated in form of equations:
Starting with this solution, we obtain a sequence of tableaux that leads to the final solution.
Simplex Tableau
Basic Solution 2 - 1 0 Ratio
Variable
1 0 0
0 2 2 0
Z, 0 0 0 0
C-2 2t - 1 0 0
Linear Programming-The Simplex Method 4.19
Simplex Tableau l
C
Basic Solution 2 - 1 0 Ratio
Variable
S
S2
2 1
1 0
0 S2 3 0 3 1 1
2 2 2 0 2 0
C-2 0 -1 -1 -2 0
Since all entries in C,-2, row are zero or negative, optimal solution has been obtained and
the maximum value of Z is 2 which occurs when
x,
=
1, x, =
0 and x, =
0.
g CAalpie.
X+y+S1 = 6
-X+y-S2 = 4
X+y+S = 6 .(5)
-X+y-S2 + A = 4 .6)
An obvious solution to Eqs. (5) and (6) is found by setting x, y and s, equal to 0. This gives
* y = 2 = 0, s = 6 and A = 4
Note that these values do not satisfy Eqs. (3) and (4). However, it is clear that any solution of
Eqs. (5) and (6) for which A = 0 will givea solution to Eqs. (3) and (4) and viceversa
We can eventually force 4 to be 0 if we alter the original objective function. Therefore, if the
original objective function Z 2x +y is changed to
Z* Z -
MA =2x + y -MA,
where M denotes some very large positive number. Then the maximum value of Z must occur
when 0 (A negative). Thus the modified problem is
cannot be
Z* 2xr + y - MA
Maximize
subject to the constraints: X+y+S1 = 6 .(7)
-X+y
-
S2 + A = 4 ..(8)
X, y, S1, S2, A 2 0
The simplex procedure is now applied to this problem until we obtain a B.F.S. in which the
artificial variable A equals 0. That solution will be an initial B.F.S. for the original problem
and we then proceed as before. An initial basic feasible solution to the modified problem is
x = y = S 2 = 0, sj = 6 and A = 4
In this B.F.., the basic variables s, and 4 corespond to the nonstructural variables in Eqs. (7)
and (8) that have positive coefficients. The corresponding value of Z* is Z" = - 4M, which 5
"extremely" negative. The initial simplex tableau corresponding to this solution is shown
below.
Simplex Tableau
Basic Solution 2 0 -M Ratio
Variable S2 A
0 6 6
- M A - 1 4
4 0
-4M M -
M 0 M -M
C-7 2M 1+ MT 0 - M
Since M is a large pOsitive number, I + M is the largest positive entry. Thus the enter
Linear
Programming-The Simpler Method 4.51
ariable is y. From the ratio column, we choose A as the departing variable. The key number,
1. is circled. Replacing key- and non-key rows using technique ofSection 4.4, we get Tableau
I1.
Slmplex Tableau II
Basic Solution 2 0 -M Ratio
1
Variable A
2
2
-1 0 - 1
4 1 - 1
C-2 3 0 -1-M
From Tableau l1, we have the following B.F.S. = 2, y = 4, r = 0, s2 = 0. A = 0
SinceA= 0, the values s, =2,y = 4, x =0 and s, = 0 form an initial B.F.S. for the original
problem! The artificial variable has served its purpose. For succeedingtableaux.,we shall
delete the A-column (since we want to solve the original problem) and change Z*'s to Z's
is
(since Z Z for A 0). From Tableaux II, the entering variable is x, the departing variable
=
Basic Solution 2 0 0
Variable S
2 0 1/2 1/2
1/2 - 1/2
5 0
2 1 3/2 1/2
Z, - 1/2
0 0 -3/2
C-
Since all the entries in C, - 2, row are negative or zero, the optimum solution has been
obtained. The maximum value o f Z is 7 and it occurs when x = l and y = 5.
Remark. The above example involved only one "2" constraint. If a linear programming
problem has more than one, each would be handled in just the same way. Thus each such
Constraint would be given an artificial variable to serve as its initial basic variable and the
Same coefficient -M would be assigned to each of these variables in the objective function.
ne approach to other kinds of constraints requiring artificial variables is completely
dgous. For example, if a problem involves an equality constraint of the form
a 1 +a2 X2 t . + a, X,
=
b,
where b20, then an artificial variable A is inserted as follows
A =b
a X ta2 *2 + + a, x, +
Example 29. Use simplex method to solve the following LPP
Minimize Z 8x + 12y
subject to the constraints: 2y 21
2x+
x+3y 22
X, y 2 0
Soution. Introducing two surplus variables s. s and two artificial variables A, Az the
problem can be restated as
x+3y S2 +A = 2
X, Y, S1, S2, A4, A2 2 0
where M is a large positive number. Note that the artificial variables have + M as objective
function coeficients to ensure that they are driven out of the final solution.
Simplex Tableau
Basic Solution 8 12 0 0 M M Ratio
Variable S
A A
M
A 2 - 1 0 1 0 1/2
M
A 2 1 3 0 - 1 0 2/3
2, 3M 3M 5M - M - M M M
the quotients to the right show A, is outgoing. (Continue the rule of smallest non-negative
value as designating the outgoing variable). After revision, a second solution is generated in
Simplex Tableau lI.
Simplex Tableau ll
1 -
3/2 1+1/3
Variable y has replaced A. Again, this solution is not optimal, since s, has negative C -Z,
value. As shown, s, will be the incoming variable and A, the outgoing variable. The third
solution is shown in Simplex Tableau III.
Simplex Tableau ll
C Basic Solution 3 12 0 0 M M
Variable S S 4
12 2/3 1/3 0 - 1/3 1/3
0 1/3 -4/3 0 1 -2/3 -1 2/3
Z, 8 12 -4 4
M M-4
C- 4 0 4
The BFS
corresponding to Tableau II has both artificial variables equal to 0. Thus the A and
AColumns are no longer needed. However, the entries in C - Z, row are nonnegative andd
hence an optimum solution has been reached. The solution is x =0, y = 2/3 with min Z= 8.
T2.6 Mathematics for Business Studies
Note 2. Once compound amount is obtained, compound interest may then be obtained by
using the following formula:
Compound Interest =S- P
ample 5. Find the compound amount of 7 2000 for 4 years at 6% converted
) Annually (ii) Semiannually
(ii) Quarterly (iv) Monthly
Solution. () When the interest is converted annually, we have
P 2000, i = 0.06 and n = 4
S P(1 +i" =
2000 (1.06)*
2000 (1.262476) (using Table I)
= 2524.95
S P(1+)" =
(1.03
2000
2000 (1.266770) (using Table )
= 7 2533.544
=0.06/12 0.005
i =
and n =
4(12) = 48
S =
P(1 + i" 2000 (1.005)48
=
(using Table l)
P 2500(1+0.015)*l6 =2500 (0.7880)
= 1970
(ii) interest is compounded monthly
We use the formula
P S(1+i)", where S =
2500, i = 0.06/12= 0.005, n =4(12) =48
P 2500 (1 + 0.005)*3 =
2500 (0.7870) = T1967.50
Fvample 47. Find the amount of an annuity if payment of T 200 is made at the end of every
month for 3 years at the rate of 15% compounded monthly.
10,000 R003-1 =
R(28.67648 -1) R(27.67648)
=
R 10,000 z361.32.
27.67648