Professional Documents
Culture Documents
1
15-01-2024
2
15-01-2024
Optimality test
3
15-01-2024
4
15-01-2024
5
15-01-2024
The first step in setting up the Simplex method is to convert the functional
inequality constraints into equivalent equality constraints.
Non-negativity constraints are left as inequalities because they are treated
separately.
Upon introduction of slack variables for the other functional constraints, the
original linear programming model can now be replaced by the equivalent
model (called augmented form of the model)
The term “augmented form” indicates that the original form has been
augmented by some supplementary variables needed to apply the simplex
method.
6
15-01-2024
Example 1
7
15-01-2024
Basic z 𝑥1 𝑥2 𝑠1 𝑠2 𝑠3 𝑠4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
𝑠1 0 6 4 1 0 0 0 24 𝑠1 -row
𝑠2 0 1 2 0 1 0 0 6 𝑠2 -row
𝑠3 0 -1 1 0 0 1 0 1 𝑠3 -row
𝑠4 0 0 1 0 0 0 1 2 𝑠4-row
8
15-01-2024
The solution starts at the origin [(𝑥1 , 𝑥2 ) = (0, 0)], thus defining (𝑥1 , 𝑥2 ) as the
nonbasic variables and (𝑠1 , 𝑠2 , 𝑠3 , 𝑠4) as the basic variables.
The associated objective z and the basic variables (𝑠1 , 𝑠2 , 𝑠3 , 𝑠4) are listed in
the leftmost Basic-column.
Their values, z = 0, 𝑠1 = 24, 𝑠2 = 6, 𝑠3 =1, 𝑠4 = 2, appearing in the rightmost
Solution-column, are given directly by the right-hand sides of the model’s
equations
Is the starting solution optimal?
The objective function z = 5𝑥1 + 4𝑥2 shows that the solution can be improved
by increasing the value of nonbasic 𝑥1 or 𝑥2 above zero.
In the simplex tableau where the objective function is written as z - 5𝑥1 - 4𝑥2
= 0, the selected variable is the nonbasic variable with the most negative
coefficient in the objective equation. This rule defines the so-called simplex
optimality condition.
In the terminology of the simplex algorithm, 𝑥1 is known as the entering
variable because it enters the basic solution.
If 𝑥1 is the entering variable, one of the current basic variables must leave—
that is, it becomes nonbasic at zero level.
The mechanics for determining the leaving variable calls for computing the
ratios of the righthand side of the equations (Solution column) to the
corresponding (strictly) positive constraint coefficients under the entering
variable, 𝑥1
9
15-01-2024
10
15-01-2024
11
15-01-2024
New Tableau
Iteration 2
12
15-01-2024
Final Tableau
Optimal solution
13
15-01-2024
Method 2
Example 2
A company makes two kinds of leather belts, belt A and belt B. Belt
A is a high quality belt and belt B is of lower quality. The respective
profits are Rs 4 and Rs 3 per belt. The production of each of type A
requires twice as much time as a belt of type B, and if all belts were
of type B, the company could make 1,000 belts per day. The supply
of leather is sufficient for only 800 belts per day (both A and B
combined). Belt A requires a fancy buckle and only 400 of these are
available per day. There are only 700 buckles a day available for
belt B. What should be the daily production of each type of belt?
Formulate this problem as an LP model and solve it using the simplex
method.
14
15-01-2024
Example 2 Solution
Initial solution
15
15-01-2024
Improved solution
𝑅3 (new) = 𝑅3 (old) / pivot element; 𝑅1 (new) = 𝑅1 (old) – 2* 𝑅3 (new)
𝑅2 (new) = 𝑅2 (old) – 1* 𝑅3 (new)
Improved solution
16
15-01-2024
Optimal solution
Exercise 1
17
15-01-2024
Exercise 2
Exercise 3
The company makes a profit of Rs. 1,000, Rs. 4,000, and Rs. 5,000 on each
ton of the products A, B, and C respectively. How many tons of each
product should the company produce to maximize its profits
18
15-01-2024
Exercise 4
Exercise 4 hint
19
15-01-2024
Big M Method
20
15-01-2024
The artificial variables are introduced for the limited purpose of obtaining
an initial solution and are required for the constraints of ‘≥’ type, or with
constraints with ‘=’ sign.
Since artificial variables do not represent any quantity relating to the
decision problem, they must be driven out of the system and must not show
in the final solution.
This can be ensured by assigning an extremely high cost to them.
Generally a value M is assigned to each artificial variable, where M represents a
number higher than any finite number (therefore, we call it Big-M Method).
When the problem is of minimization nature, we assign in the objective function a
coefficient of +M to each artificial variable
For problems with the objective function of maximization type, each of the
artificial variables introduced has a coefficient –M.
21
15-01-2024
Step 4: Determine the key row and key element in the same manner as the
simplex algorithm of the maximization case
Step 5: Continue with the procedure to update solution at each iteration till
optimal solution is obtained.
Remarks
If at any iteration, at least one artificial variable is present in the basis with zero
value and the coefficient of M in each 𝑐𝑗 − 𝑧𝑗 (j = 1,2,…,n) values is non-negative,
then the given LP problem has no solution. That is, the current basic feasible
solution is degenerate.
If any iteration, as least one artificial variable is present in the basis with a positive
value and the coefficient of M in each 𝑐𝑗 − 𝑧𝑗 (j = 1,2,…,n) values is non-negative,
then given LP problem has no optimum basic feasible solution.
Example 3
22
15-01-2024
Solution to Example 3
Solution contd…
23
15-01-2024
Solution contd…
Solution contd…
24
15-01-2024
Optimal Solution
Exercise 4
25
15-01-2024
Exercise 5
A furniture company can produce four types of chairs. Each chair is first
made in the carpentry shop and then furnished, waxed and polished in the
finishing shop. Man-hours required for each are:
Chair types
1 2 3 4
Carpentry shop 4 9 7 10
Finishing shop 1 1 3 40
Contribution per chair (Rs.) 12 20 18 40
26