Chapter 3 - 14-03-2021 - MRS
Chapter 3 - 14-03-2021 - MRS
Chapter 3 - 14-03-2021 - MRS
if no if yes stop
X1 + S1 = 4
2 X2 + S2 = 12
3X1 +2X2 + S3 = 18
Iteration 0:
Basic X1 X2 S1 S2 S3 RHS
variable
Z -3 -5 0 0 0 0
S1 1 0 1 0 0 4
S2 0 2 0 1 0 12
S3 3 2 0 0 1 18
Notes:
• The basic feasible solution at the initial tableau is (0,
0, 4, 12, 18) where:
X1 = 0, X2 = 0, S1 = 4, S2 = 12, S3 = 18, and Z = 0
Where S1, S2, and S3 are basic variables
X1 and X2 are non basic variables
• The solution at the initial tableau is associated to the
origin point at which all the decision variables are
zero.
b. Iteration
Step 1. Determine the entering basic variable by
selecting the variable (from a non basic variable)
with the most negative value (in case of
maximization) or with the most positive (in case of
minimization) in the objective row (Z-row). Put a
box around the column below this variable, and call
it the “pivot column”
Entering
variable
Basic X1 X2 S1 S2 S3 RHS
variable
Z -3 -5 0 0 0 0
S1 1 0 1 0 0 4
S2 0 2 0 1 0 12
S3 3 2 0 0 1 18
Basic X1 X2 S1 S2 S3 RHS
variable
S1
X2 0 1 0 1/2 0 6
S3
This solution is not optimal, since there is a negative numbers in the last row
Apply the same rules we will obtain this solution:
Iteration 02:
Basic X1 X2 S1 S2 S3 RHS
variable
Z 0 0 0 3/2 1 36
S1 0 0 1 1/3 -1/3 2
X2 0 1 0 1/2 0 6
X1 1 0 0 -1/3 1/3 2
Basic X1 X2 S1 S2 S3 RHS
variable
Z -3 -5 0 0 0 0
S1 1 0 1 0 0 4
S2 0 2 0 1 0 12
S3 3 2 0 0 1 18
Iteration 01:
Basic X1 X2 S1 S2 S3 RHS
variable
Z -3 0 0 5/2 0 30
S1 1 0 1 0 0 4
X2 0 1 0 1/2 0 6
S3 3 0 0 -1 1 6
Iteration 02:
Basic X1 X2 S1 S2 S3 RHS
variable
Z 0 0 0 3/2 1 36
S1 0 0 1 1/3 -1/3 2
X2 0 1 0 1/2 0 6
X1 1 0 0 -1/3 1/3 2
Optimality condition: The entering variable in a
maximization (minimization) problem is the non-
basic variable with the most negative (positive)
coefficient in the z-row. Ties are broken arbitrarily.
The optimum is reached at the iteration where all the
z-row coefficients are nonnegative (nonpositive).
The daily demand for interior paint cannot exceed that for exterior paint by more
than 1 ton. Also, the maximum daily demand for interior paint is 2 tons.
Reddy Mikks wants to determine the optimum (best) product mix of interior and
exterior paints that maximizes the total daily profit. Solve the problem using
simplex method.
Practice -2
A furniture company manufactures desks and chairs. The
sawing department cuts the lumber for both products, which
is then sent to separate assembly departments. Assembled
items are sent to the painting department for finishing. The
daily capacity of the sawing department is 200 chairs or 80
desks. The chair assembly department can produce 120 chairs
daily, and the desk assembly department 60 desks daily. The
paint department has a daily capacity of either 150 chairs or
110 desks. Given that the profit per chair is
$50 and that of a desk is $100, determine the optimal
production mix for the company.
Practice -3
Solve the following maximization problem -
maximize x0 =3x1+2x2+5x3
Subject to
x1+2x2+x3 430
3x1+2x3 460
x1+4x2 420
x10, x20, x3 0.
Practice -4
Solve the following minimization problem -
Subject to
3x1 - x2 + 2x3 7
-2x1+4x2 12
-4x1+3x2 +8x3 10
x10, x20, x3 0.
Artificial Starting Solution Technique
If any of the constraints in the
original problem is ( or (=), the
slack variable cannot provide a
starting (feasible) solution.
Simplex method requires initial
started
To solve such LPP there are two methods.
(i) M-Method
(ii) Two-phase Method
M-method
If equation i does not have a slack, an artificial variable
Ri, is added to form a starting solution similar to the all-
slack basic solution.
Since the artificial variables are not part of the original
problem, it is needed to force them to zero in the final
solution.
The desired goal is achieved by assigning a large value
of M, which represents a large positive cost.
.
Solving steps
Step 1: Express the problem in the standard form.
Step 2: Add non-negative artificial variables to the left side of each
of the equations corresponding to constraints of the type >, or =
Step 3: Solve until anyone of the three cases may arise.
1. If no artificial variable appears in the basic and the optimality
conditions are satisfied.
2. If at least one artificial variable in the basis at zero level and the
optimality condition is satisfied then the current solution is an
optimal basic feasible solution (though degenerated solution).
3. If at least one artificial variable appears in the basis at positive
level and the optimality condition is satisfied, then the original
problem has no feasible solution. The solution satisfies the
constraints but does not optimize the objective function, since it
contains a very large penalty M and is called pseudo optimal
solution.
Example
subject to
Standard form:
Subject to
Starting tableau:
-M -M
Using M=100,
Iteration 0:
Iteration 1:
Iteration 2:
Iteration 3:
Iteration 4:
subject to
x1 + x2 + x3 7
2x1 - 5x2 + x3 10
x10, x20, x3 0.
Practice -6
Solve the following using M-method
minimize x0 = 5x1 - 6x2 - 7x3
Subject to
x1 + 5x2 - 3x3
5x1 - 6x2 + 10x3 20
x1 + x2 + x3 = 5
x10, x20, x3 0
Assignment
Practice -2
Practice -4
Practice -6