HighTech Industries imports electronic components that are used to assemble two different models of personal computers. One model is called the Deskpro, and the other model is called the Portable.
HighTechโs management is currently interested in developing a weekly production schedule for both products. The Deskpro generates a profit contribution of $50 per unit, and the Portable generates a profit contribution of $40 per unit. For next weekโs production, a maximum of 150 hours of assembly time can be made available. Each unit of the Deskpro requires 3 hours of assembly time, and each unit of the Portable requires 5 hours of assembly time. In addition, HighTech currently has only 20 Portable display components in inventory; thus, no more than 20 units of the Portable may be
assembled. Finally, only 300 square feet of warehouse space can be made available for new
production. Assembly of each Deskpro requires 8 square feet of warehouse space; similarly, each Portable requires 5 square feet. Formulate a mathematical model of HighTechโs situation that can be used to maximize the companies profit.
Solving LPs-Simplex Method
Example:
Source: Anderson (2012)
Maximize Z = 50X
1+ 40X
2Subject to:
3X
1+ 5X
2โค 150
X
2โค 20 8X
1+ 5X
2โค 300 X
1โฅ 0
X
2โฅ 0
X1 = Number of units of Deskpro X2 = Number of units of Portable
Solving LPs-Simplex Method
Note: The simplex method applied to this problem is for maximization LPs with โโคโ constraints. Similar method applies for minimization with few changes
Max Z = 50X
1+ 40X
2S.t
3X
1+ 5X
2+ S
1= 150 X
2+ S
2= 20 8X
1+ 5X
2+ S
3= 300 X
1,X
2,S
1,S
2,S
3โฅ ๐
Solving LPs-Simplex Method
Step 1: Convert LP into standard form
Solving LPs โ Simplex Method
Basic solution and basic feasible solutions
Solving LPs โ Simplex Method
Picturing basic feasible and non feasible basic solutions
Points (1)-(5) are basic feasible solutions. Points (6)-(9) are basic solutions that are not feasible
Solving LPs โ Simplex Method
Graphically, the simplex method
moves from one extreme point to the next, carefully improving upon the objective value on each move.
Picturing the simplex method graphically
Max Z = 50X1+40X2 s.t
3X1 + 5X2 โค 150 X2 โค 20 8X1 + 5X2โค 300
Solving LPs-Simplex Method
Step 2: Determine the initial Basic Feasible Solution
Basic solution:
A basic solution to an LP with n variables and m constraints is obtained by setting (n-m) of the variables to zero and solving the m linear constraint equations for the remaining m variables
For example if we set ๐ฅ2 = 0 and ๐ 1 = 0 the system of constraint equations becomes:
3๐ฅ1 = 150 1๐ 2 = 20
8๐ฅ1 +1๐ 3 = 300
A basic feasible solution (BFS):
This is a basic solution that also satisfies the nonnegativity conditions of the LP problem.
For example if we set ๐ฅ1 = 0 and ๐ฅ2 = 0 the system of constraint equations becomes:
1๐ 1 = 150 1๐ 2 = 20
+1๐ 3 = 300
Hint: Start by setting the actual decision variables to zero
Solving this yield ๐ 1=150, ๐ 2=20, ๐ 3=300, and Z =0
Solving LPs-Simplex Method
How can the current solution be improved?
Max Z = 50X1 + 40X2+ 0S1+0S2+0S3 S.t
3X1 + 5X2 + S1 = 150 X2 + S2 = 20 8X1 + 5X2 + S3 = 300 X1,X2,S1, S2, S3โฅ ๐
At S1 =150, S2 =20, S3 =300, Z = 0 . Is there a combination of the variables than will improve upon the current objective value?
When x1 =1, Z improves by 50, which is a gain. However, setting x1 =1 affect the values of S1, S2, and S3.
From the constraints, S1 = 147, S2 =20, S3 =292. This results in no loss to Z only because S1, S2, and S3 all have zero coefficient. Total gain is 50
When x2 =1, Z improves by 40, which is a gain. However, setting x2 =1 affect the values of S1, S2, and S3.
From the constraints, S1 = 145, S2 =19, S3 =295. This results in no loss to Z only because S1, S2, and S3 all have zero coefficient. Total gain is 40.
Between x1 and x2 which one would you select to improve on the objective Z?
Solving LPs-Simplex Method
Step 3: Form the initial simplex tableau
For our example we have:
Solving LPs-Simplex Method
Step 4: Determine Reduced Cost for each variable
Reduced cost is the amount by which an objective function coefficient would have to improve before it would be possible for the corresponding variable to assume a positive value in the optimal solution.
๐ง๐ represents the decrease in the value of the objective function that will result if one unit of the variable corresponding to the j th column of matrix A is brought into the basis Value of the obj.
function
How can the current solution be improved?
Solving LPs-Simplex Method
Step 4: Improve the solution
Determine which variable leaves and which enters the basic feasible solution
For maximization, pick a variable from the current non-basic with the largest ๐๐ โ ๐ง๐ to enter the BFS. In the case of a tie, select the variable to enter the basis that corresponds to the leftmost of the columns.
Thus, x1 enter the BFS
Minimum Ratio Test
Pick a variable from the current BFS with the smallest ๐๐
๐๐๐ to leave the BFS. In case of a tie, select the variable that corresponds to the uppermost of the tied rows. Thus, S3 leaves the BFS
Solving LPs-Simplex Method
Step 4: Calculate the next improved tableau
Convert the column associated with the new basic variable into a unit column; in this way its value will be given by the right-hand- side value of the corresponding row
๐ฅ2 and ๐ 3 are non-basic, Thus, ๐ฅ2 = 0 and ๐ 3 = 0.
If The new basic feasible solution has:
๐ 1 = 75
2 , ๐ 2 = 20, and ๐ฅ1 = 75
2 . This yield a new objective value of:
0 โ 75
2 + 0 โ 20 + 50 โ 75
2 = 1875
Solving LPs-Simplex Method
Step 4: Move towards a better solution
Calculate a new ๐๐ โ ๐ง๐
Pick a variable from the current
non-basic with the largest ๐๐ โ ๐ง๐ to enter the BFS
Pick a variable from the current BFS with the smallest ๐๐
๐๐๐ to leave the BFS
Optimality Criterion
When all of the entries in the net evaluation row (๐๐ โ ๐ง๐) are zero or negative, stop. Current basic feasible solution is the optimal solution.
Solving LPs-Simplex Method
Convert column of new basic variable to unit column.
Elements of ๐๐ โ ๐ง๐ are all zero or negative
Solving LPs-Simplex Method
Interpreting the optimal solution.
The optimal solution has:
๐ฅ1 = 30, ๐ฅ2 = 12, ๐ 1 = 0, ๐ 2 = 8, ๐ 3= 0 And the value of the objective function is: $1980
If management wants to maximize the total profit contribution, HighTech should produce 30 units of the Deskpro and 12 units of the Portable. When ๐ 2 = 8, management should note that there will be eight unused Portable display units.
Also, because ๐ 1 = 0 and ๐ 3 = 0, no slack is associated with the assembly
time constraint and the warehouse capacity constraint; in other words, these constraints are both binding. Consequently, if it is possible to obtain additional assembly time and/or additional warehouse space, management should consider doing so.