Professional Documents
Culture Documents
Chapter Two (Linear Proramming)
Chapter Two (Linear Proramming)
3. Solution
Mathematical relationships resulting from formulation process
are solved to identify optimal solution.
4. Interpretation and What-if Analysis
Problem solver or analyst works with the manager to:
o Interpret results and implications of problem solution.
o Investigate changes in input parameters and model
variables and impact on problem solution results.
LINEAR EQUATIONS AND INEQUALITIES
Resource Requirements
Labor Clay Profit
Product
(hr/unit) (lb/unit) ($/unit)
Bowl 1 4 40
Mug 2 3 50
Resource 40 120
PROBLEM DEFINITION EXAMPLE CONT’D
Non-Negativity x1 0; x2 0
Constraints:
MODEL FORMULATION EXAMPLE
Lines Corner
2 and 4 (0,40)
1 and 3 (40, 0)
(3 and 4) (24, 8)
if no if yes stop
1. Initialization:
a. Transform all the constraints to equality by introducing
slack, surplus, and artificial variables as follows:
= + Artificial (A)
2.4 The Simplex Method for Solving LP
Models
1. Initialization:
b. Construct the initial simplex tableau:
Basic X1 … Xn S1 …... Sn A1 …. An RHS
variable
S b1
Coefficient of the constraints
A bm
Z Objective function coefficient Z
In different signs value
2.4 The Simplex Method for Solving LP
Models
2. Test for optimality:
Basic X1 X2 S1 S2 S3 RHS
variable
S1 1 0 1 0 0 4
S2 0 2 0 1 0 12
S3 3 2 0 0 1 18
Z -3 -5 0 0 0 0
Optimality test:
Iteration:
2. For the other row apply this rule:
New row = old row – (the coefficient of this row in the pivot column) x
(coefficient of new pivot row).
For S1
1 0 1 0 0 4
-
0 (0 1 0 1/2 0 6)
1 0 1 0 0 4
For S3
3 2 0 0 1 18
-
2 (0 1 0 1/2 0 6)
3 0 0 -1 1 6
for Z
-3 -5 0 0 0 0
Substitute this values in
- the table
-5(0 1 0 1/2 0 6)
-3 0 0 5/2 0 30
2.4. The Simplex Method for Solving LP Models
Iteration:
This solution is not optimal, since there is a negative numbers in
the last row
Basic X1 X2 S1 S2 S3 RHS
variable
S1 1 0 1 0 0 4
X2 0 1 0 1/2 0 6
S3 3 0 0 -1 1 6
Z -3 0 0 5/2 0 30
The most negative value; The smallest ratio is
therefore, X1 is the 6/3 =2; therefore, S3 is
entering variable the leaving variable
2.4. The Simplex Method for Solving LP Models
Iteration:
Apply the same rules we will obtain this solution:
Basic X1 X2 S1 S2 S3 RHS
variable
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
Z 0 0 0 3/2 1 36
This solution is optimal; since there is no negative solution in the last row: basic variables are X 1 =
2, X2 = 6 and S1 = 2; the non-basic variables are S2 = S3 = 0, Z = 36.
Exercise:
The Plastic manufacturing company produces two products:
Bowls/Product I and mugs/Product II. The raw material
requirements, space needed for storage, production rates, and
selling prices for these products are given below:
Constraints Bowls / Product I Mugs/ Product II
Storage space (m2/unit 4 5
Raw material (Ib/ unit) 5 3
Production rate 1 2
(Units/hr=60 minutes)
Selling price ($/unit 13 11
The total amount of raw material available per day for both products is 1575Ib.
The total storage space for all products is 1500 m2, and a maximum of 420 minutes
per day can be used for production.
How many units of bowls/product I and mugs/product II product should the
company to produce per day to maximize its total income/profit? ( Use simplex
method).
2.5. Minimization by using Simplex LP Model
In either case, the final table of the dual problem will contain both
the solution to the dual problem and the solution to the original
problem.
1.The original greater than or equal to min” will be called the primal problem.
2. The less than or equal to max” to which we change will be called the dual
problem.
3. Convert the primal in to the dual and solve using the method developed , then
read the solution of the primal from the solution of the dual.
3P1+ 7P2
2P1+2P2
Next change > to <, use the coefficients of X1 and X2 in
-row as the right- hand constant and write:
3P1+7P2 < 2
2P1+ 2P2 < 3
Maximize = 12P1+20P2
Subject to:
3P1+7P2 < 2
2P1+ 2P2 < 3
P1,P2 > 0
Note:
1). The dual is a “less than or equal to max” problem
2). X1 and X2 are as slack variables
3). This method is known as minimization by
maximizing the dual.
© 2002 Prentice-Hall, Inc Ch 2-68
2.5.1. Dual in LP Model
Thus, we will solve the LP dual problem of the following by
using simplex method.
Maximize = 12P1+20P2
Subject to:
3P1+7P2 < 2
2P1+ 2P2 < 3
P1,P2 > 0
Solve the model by forming equations with slack variables using simplex
method.
The equation with slack variables will be constructed as follows:
X1 3 7 1 0 2
X2 2 2 0 1 3
-12 -20 0 0 0