0% found this document useful (0 votes)
20 views

Chapter 5 Linear Programming

This document discusses linear programming and optimization. It defines linear programming and identifies its key features. It also outlines the steps to solve linear programming problems graphically and using the simplex method. Examples are provided to illustrate solving linear programming problems.

Uploaded by

tobiwan0101
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Chapter 5 Linear Programming

This document discusses linear programming and optimization. It defines linear programming and identifies its key features. It also outlines the steps to solve linear programming problems graphically and using the simplex method. Examples are provided to illustrate solving linear programming problems.

Uploaded by

tobiwan0101
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

88

CHAPTER 5: LINEAR PROGRAMMING


LEARNING OBJECTIVES:
By the end of this section, the student will be able to

1. Define linear programming and optimization.


2. Identify the critical features of linear programming.
3. Use graphical method and simplex algorithm to show the optimum solution.
4. Elaborate the steps in applying linear programming.
5. Solve optimization problem using the concept of linear programming.
6. Perform sensitivity analysis on solutions to optimization problems.

5.1 LINEAR PROGRAMMING


It is a mathematical modelling technique useful for the allocation and decision making that
involves scarce or limited resources, such as labor, material, machine, time, warehouse space,
etc. to several competing activities such as product, service, job, new equipment, projects etc.
based on given criteria or optimality. Some applications of Linear programming are product mix
problem, diet problems, profit planning, make-or-buy problems, transportation problems, and
agriculture problems.
The general procedure for solving linear programming problems is to graph the
inequalities that represent the constraints and is expected to form a closed region (feasible
region) bounded by the constraints. The intersection points of the boundary lines are the corner
points of the feasible region. The solution set of this system of inequalities is set of points called
the feasible solution and the objective function can be evaluated for different feasible solutions
and the maximum and minimum values obtained.
The following are requirements when solving linear programming problem:
1. Decision variables are quantities to be determined, should be interrelated and non-
negative.
2. Objective function are values that needs to be optimized, it is the basis for decision
making.
3. Constraints represent how each decision variable would use the controlled amount of
resources, either scarce or abundant. These are the limitations or restrictions on the decision
variables.
4. Data gives the evaluation on the relationship between objective function and the
constraints.
5. Non-negative restriction for all linear programs, which means the values for decision
variables should be greater than or equal to 0.
For a problem to be a linear programming problem, the decision variables, objective function, and
constraints must be linear functions. If all the three conditions are satisfied, it is called a Linear
Programming Problem.
*Optimization – A mathematical technique for finding a maximum or minimum value of a function
of several variables subject to a set of constraints, as linear programming, or systems analysis.

5.2 STEPS IN THE GRAPHICAL METHOD OF LINEAR PROGRAMMING


A graphical method involves formulating a set of linear inequalities subject to the constraints. The
following are suggested steps in the graphing linear programming model.
1. Identify the decision variables and write the objective function.
2. State the constraints and the non-negative restriction.
3. Graph the feasible region for the set of constraints in a rectangular coordinate system.
The feasible region explains all values the problem can take, and it also gives the optimal solution.
89

Graphing can be done using slope-intercept form or by providing table of values of decision
variables.
4. Determine the corner points, (Intersection of the plotted inequalities which shows the
feasible region). This can be solved using any of the algebraic solutions such as Cramer’s rule of
determinants, Methods of elimination by addition or subtraction and Method of Substitution.
5. Calculate the optimum value of the objective function. This may be done by substituting
the corner points obtained previously to the objective function and determine which corner points
yield the maximum and minimum value.
Example 5.0: Use the graphical method to compute the maximum and minimum value of
P = 5x + 3y, given the following constraints,

x + 2y ≤ 14
3x – y ≥ 0

x–y≤2
Solutions:
Steps 1 - 2: Identifying the constraints with decision variables and the objective function.
Objective: Maximize P = 5x + 3y
Constraints: x + 2y ≤ 14

3x – y ≥ 0
x–y≤2
Non-negative restriction:
𝑥 ≥ 0, 𝑦 ≥ 0
Step 3: Graph the given constraints in the rectangular coordinate system as follows:

Figure 5.0
Take note that the solid lines represent the boundary of the given constraints (inequality) and the
shaded portion of the graph are the feasible region.
When the graphs above are put together in a rectangular coordinate system as shown below, it
shows the feasible region and its corner points.

Figure 5.1
Step 4: The corner points can be solved algebraically. The corner points are assigned the names
points A, B and C.
90

Figure 5.2
Using Cramer’s Rule to solve for corner points A, B and C.
Corner point A is the intersection of lines x + 2y = 14 and 3x – y = 0,
14 2
| | (14)(−1)−(0)(2) −14−0 −14
0 −1
𝑥= 1 2 = = = =2
| | (1)(−1)−(3)(2) −1−6 −7
3 −1
1 14
| | (1)(0)−(3)(14) −42
3 0
𝑦= 1 2 = (1)(−1)−(3)(2) = =6 therefore A (2,6)
| | −7
3 −1

Corner point B is the intersection of lines x + 2y = 14 and x – y = 2,


14 2
| | (14)(−1)−(2)(2) −14−4 −18
2 −1
𝑥= 1 2 = (1)(−1) −(1)(2)
= = =6
| | −1−2 −3
1 −1
1 14
| | (1)(2)−(1)(14) 2−14 −12
1 2
𝑦= 1 2 = = = =4 therefore B (6,4)
| | (1)(−1)−(1)(2) −1−2 −3
1 −1

Corner point C is the intersection of lines 3x – y = 0 and x – y = 2


2 −1
| | (2)(−1)−(0)(−1) −2−0 −2
0 −1
𝑥= 1 −1 = (1)(−1)−(3)(−1) = = = −1
| | −1+3 2
3 −1
1 2
| | (1)(0)−(3)(2) 0−6
3 0
𝑦= 1 −1 = (1)(−1)−(3)(−1) = = −3 therefore C(-1,-3)
| | −1 + 3
3 −1

Step 5: Finding the optimum value of the objective functions, by substituting each corner points
to the objective function P = 5x + 3y, and the result is summarized in the table below:
Table 5.0

Value of P
Corner Point Coordinates
P = 5x + 3y
A (2,6) 5(2) + 3(6) = 28

B (6,4) 5(6) + 3(4) =42

C (-1, -3) 5(-1) + 3(-3) = -14

It can be seen from table 5.0 that the maximum value of P is obtained at corner point B (6,4),
which yields a value 42 and the minimum value of P is obtained at C (-1, -3) which yields a value
of -14.

Example 5.2: Some of the products of a Furniture manufacturing company are tables and chairs.
Each table is sold at ₱1,900 and each chair at ₱650. One of the carpenters can afford to spend
up to 40 hours per week working and takes six hours to make a table and three hours to make a
chair. Clientele demand requires that he makes at least three times as many chairs as tables.
Tables take up four times as much as storage space as chairs and there is room for at most four
tables each week. Determine the number of tables and chairs to make per production to maximize
profit of Furniture manufacturing company.
91

Express this problem as a linear programming problem and solve it graphically.

Solution:

Steps 1-2: Determining variables, constraints, and objective and the non-negative restrictions.

Let x – be the number of tables produced per week.


y – be the number of chairs produced per week.
Constraints

Total worked time

6x + 3y ≤ 40

Clientele demand
y ≥ 3x

Storage space
𝑌
+𝑥 ≤4
4

x ≥ 0 and y ≥ 0
Objective:
Maximize: 1900x + 650y

Step 3: Construct the graph of the constraints as shown in figure 5.3.

Figure 5.3

Figure 5.4 shows that the solution lies at the intersection of constraints.

Figure 5.4

Step 4: Solving simultaneously for the corners A, B and C of the constraints:

𝑌
For corner A: The intersection of 6x + 3y = 40 and + 𝑋 = 4
4

Multiply equation with fraction by 4 then,

6x + 3y = 40 Equation 1
4x + y = 16 Equation 2
92

Multiplying equation 2 by 3, then subtract equation 1,

12x + 3y = 48
- 6x + 3y = 40
6x = 8
8 𝟒
x = =
6 𝟑

To find y, substitute value of x to equation 2,


4 32
4( )+y = 16; y =
3 3

𝟒 𝟑𝟐
therefore, Corner A ( , )
𝟑 𝟑

𝑦
For corner B: The intersection of y = 3x and + 𝑥 = 4
4

𝑌 3𝑥 16
By Substituting y to + 𝑋 = 4 +𝑥 =4 3x + 4x = 16 x=
4 4 7

16 48
Substituting value of x to y, y = 3( ) =
7 7

𝟏𝟔 𝟒𝟖
therefore, corner B ( , )
𝟕 𝟕

For corner C: The intersection of Y = 3X and 6x + 3y = 40

Substituting Y = 3X to 6x + 3y = 40 6x + 3(3x) = 40
40 8
15x = 40 x= =
15 3

8
Solving for y, y = 3( ) = 8
3

𝟖
therefore, corner C ( , 𝟖)
𝟑

Summarizing the coordinates of corner points in table 5.1, and substituting to P:

Table 5.1

Value of P
Corner Point Coordinates
P = 1900X + 650Y
4 32 4 32
A ( , ) 1900( ) + 650( ) = 9,466.67
3 3 3 3

16 48 16 48
B ( , ) 1900( ) + 650( ) = 8,800.00
7 7 7 7

8 8
C ( , 8) 1900( ) + 650(8) = 10,266.67
3 3

8
Step 5: The optimum value are at C ( , 8) which yields maximum value of ₱ 10,266.67 while at
3
16 48
B( , ) which yields a minimum value of ₱8,800.00
7 7

Example 5.3: A Young Entrepreneur is choosing to invest his funds of P50,000.00 in either mutual
funds or bank’s time deposit or maybe both. The mutual fund pays 8% per year and time
deposit pays 9%. A finance manager advised him to invest ₱ 30,000.00 in time deposit and at
least ₱ 10,000.00 to mutual funds. How much should he allot to each investment in order to
maximize returns on his investment?
Solution: To determine the amount that should be allotted to each investment and to maximize
return on investment, the following are assumptions:

Let x – be the amount invested in the mutual fund.


93

Y – be the amount invested in time deposit.


Certainly, 𝑥 ≥ 0, and 𝑦 ≥ 0
Summarizing the given conditions in the table 5.2
Table 5.2

Return Amount,
Mutual Fund, x at 8% Time Deposit, y at 9%
Requirements ₱
Total Investment 1 1 50,000.00
Mutual Fund 1 30,000.00
Time Deposit 1 10,000.00

So, the equations for total funds must be, x + y = 50,000


While the mutual fund has no more than 30,000 𝑥 ≤ 30,000
And for time deposit 𝑦 ≥ 10,000
Linear programming model is to maximize P = 0.08x + 0.09y
Subject to the following: x + y = 50,000

𝑥 ≤ 30,000
𝑦 ≥ 10,000

𝑥 ≥ 0 and 𝑦 ≥ 0
Graphing the feasible region for the constraints as shown in figure 5.5,

Figure 5.5
The graph on the right side of Figure 5.6 shows constraints when put together, take note that the
corner points are labeled A, B, C and D.

Figure 5.6
94

Solving for corner points A, B, C and D of the feasible region,


For A: It is obvious from the graph that A (0, 50,000)
For B: Substitute y = 10,000 to x + y = 50,000
X + 10,000 = 50,000
X = 40,000
Therefore B (40,000, 10,000)
For C: It is the point of intersection of the lines x = 30,000 and y = 10,000
Therefore C (30,000, 10,000)
For D: From the graph line y = 10,000 and intersect the y axis.
Therefore D (0, 10,000)
Table 5.3
Corner Value of P
Coordinates
Point P = 0.08x + 0.09y
A (0, 50,000) 0.08(0) + 0.09(50,000) = 4,500
B (40,000, 10,000) 0.08(40,000) + 0.09(10,000) = 4,100
C (30,000, 10,000) 0.08(30,000) + 0.09(10,000) = 3,300

D (0,10,000) 0.08(0) + 0.09(10,000) = 900

From the above computations, P is maximum at corner point A where the


investment should only be made to time deposit.

Example 5.4: A Popular Ferry boat company offers cheap tickets for economy seats from
Batangas port to Puerto Galera. Despite the cheap tickets the company still expect to gain a
maximum profit, and to realize profit it must sell a minimum of 25 economy seats tickets and a
minimum of 40 business seats tickets. The company makes a profit of ₱ 225 for each economy
seats ticket and ₱200 for each business seats ticket. At most, the ferry boat has a capacity of 150
travelers. How many of each ticket should be sold in order to maximize company’s profits?
Solution: Identifying unknown quantities
Let x – be the number of economy seats tickets.
Y – be the number of business class seats tickets.
Since the goal is to maximize profits, then the objective function, P = 225x + 200y
The company still expect the largest profit as possible, despite the following constraints,

• Sell at least 25 economy seats.


• Sell at least 40 business class tickets.
• No more than 150 tickets can be sold since it is the capacity of the boat.
Thus, the three mathematical constraints are,

x ≥ 25; y ≥ 40 x + y ≤ 150
Next step is to graph the constraints, see figure 5.7.
And then determine the corners A, B and C.
Corner A: Substitute x = 25 to x + y = 150
25 + y = 150 y = 125
Therefore A (25, 125)
Corner B: Is the intersection of x = 25 and y = 40
95

Therefore B (25,40)
Corner C: Substitute y = 40 to x + y =150
X + 40 = 150
x = 110
Therefore C (125, 25)
The graph of the constraints is shown in figure 5.7.

Figure 5.7

Table 5.4, summarizes values obtained for corner points A, B and C.


Table 5.4

Corner Value of P
Coordinates
Point P = 225 x + 200y
A (25, 125) 225(425) + 200(125) = 120,625

B (25, 40) 225(25) + 200(40) = 13,625

C (110, 40) 225(125) + 200(25) = 33,125

Finally, this popular boat company should sell 25 economy seats tickets and 125 business
class seats tickets to maximize profit.
96

REVIEW EXERCISES 5.0


Name ___________________________________ Score ___________ Date ______________
Course, Year & Section _______________Student no. __________ Professor______________

A. Calculate the maximum and minimum value of the following linear programs using graphical
method.
1. Objective: P = 3x + 4y 2. Objective: P = 8x + 2y
Constraints: x + 2y ≤ 10 Constraints: x + y ≥ 24
x–y≥0 x ≤ 10
x+y≤2 y ≤ 15
x≥0 x≥0
y≥0 y≥0

3. Objective: P = 30x + 40y 4. Objective: P = 12x + 8y


Constraints: 4x + 2y ≤ 32 Constraints: 5x + y ≤ 32
x + 3y ≤ 18 x + 3y ≤ 12
x≥0 x≥0
y≥0 y≥0

5. Objective: P = 5x + 3y 6. Objective: P = 12x + 5y


Constraints: 2x + 6y ≥ 36 Constraints: -x + y ≤ 4
x + y ≥ 12 x-y≤4
x + y ≥ 12 x+y≥4
x≥0 x + y ≤ 12
y≥0 x≥0
y≥0

7. Objective: P = x + 4y 8. Objective: P = 6x + 9y
Constraints: x + y ≤ 6 Constraints: -x + y ≤ 4
2x + y ≤ 8 6x + 3y ≥ 30
x≥0 4x + 5y ≥ 40
y≥0 2x + 5y ≥ 30
x≥0
y≥0

9. Objective: P = 5x + 14y 10. Objective: P = 12x + 3y


Constraints: 2x + 3y = 24 Constraints: 0.1x + 0.5y ≤ 3.2
2x + y ≥ 12 0.3x + 0.3y ≥ 1.2
4x + 18y ≥ 36 x≥0
4y ≥ 0 y≥0
x≥0
y≥0

B. Solve the following problems as indicated:


11. A teacher plans to invest ₱ 100,000in a mutual fund, time deposit savings and treasury bills.
The teacher plans to invest a minimum of ₱ 30,000 in each of the investment to gain a highest
profit?
12. A Pizza parlor is baking two flavors of Pizza, meat flavor and all veggies flavor. The meat
flavor pizza contains pepperoni, bacon and beef with cheese and onions. The veggies flavor has
pineapple, green pepper, mushroom, onions, capers, and cheese. The parlor sells at least 150
units a day of meat flavor and at least 120 units of veggies flavor. The meat flavor cost ₱ 200 per
unit and veggie flavor cost ₱ 150 per unit. The meat flavor is paired with a special type of dough
which cost ₱ 60 per unit and the dough for veggies flavor is ₱ 30 per unit. The parlor can spend
no more than ₱ 12,000 per day on dough. Determine the daily sales volume that will realize a
maximum return on both flavors of pizza.
97

13. A chocolate manufacturing company that produces two types of chocolate candies, M and N.
Both candies need milk and chocolates as ingredients. To produce each unit of M and N chocolate
candies requires the following:
M: 1 unit of milk and 3 units of chocolates
N: 1 unit of milk and 2 units of chocolates
The company’s kitchen has a total of 5 units of milk and 12 units of chocolates. The company
makes a profit of ₱ 60 per unit candy M sold and ₱ 50 unit candy N sold. How many units of
candies M and N should be produced by the company in order to maximize profit?
14. To protect her skin from allergies and imperfections, a budding singer was advised by her
dermatologist to take vitamins for her daily maintenance. Every day she must take 100 units of
vitamin A, 500 units of vitamin C and 200 units of vitamin B complex. She has the option to chose
between two brands of vitamins which contain all 3 vitamins per capsule. Brand Beauty contains
2 units of vitamin A, 250 units of vitamin C and 200 units of vitamin B complex while Brand Pretty
contains 100 units of vitamin A, 500 units of vitamin C and 100 units of vitamin B complex. Brand
Beauty vitamins cost ₱ 23.50 per capsule and Brand Pretty vitamins cost ₱ 27.00 per capsule.
Determine the number of capsules she should purchase to minimize cost while maintaining good
health.
15. A newly retired lawyer has recently acquired a 110 hectares piece of land in Bataan. He has
decided to grow rice and corn on that land. Due to the quality of the sun and the region’s excellent
climate, the entire production of rice and corn can be sold. He wants to know how to plant each
variety in the 110 hectares, given the costs, net profits and labor requirements according to the
data shown below:

Cost Net Profit


Variety Man-days/Hectare
(Price/Hectare) (Price/Hectare)
Rice 100 50 10
Corn 200 120 30

The lawyer has a budget of ₱ 1,000,000 and availability of 1,200 man- days during the planning
stage. Find the optimal solution and the optimal value.

16. A stuffed toy manufacturer in Bulacan produces two types of stuffed toys such as stuffed dolls
and stuffed animals. Stuffed dolls are sold at ₱ 100.00 at stuffed animals at ₱ 90.00. There are
2,000 resource units available every day from which the dolls require 20 units while animals
require 12 units. Both stuffed dolls and animals require a production time 15 minutes with a total
of 8 working a day. What quantity of stuffed dolls and stuffed animals would yield the maximum
profit?

17. A diet chart shown below includes data on calories, proteins, carbohydrate, and fat content of
some vegetables. Emily wants a diet with minimum cost.

Nutrients Cabbage Carrot Cauliflower Potato


Calories 11.1 35.1 14.3 57
Fat in (grams) 0.1 0.1 0.3 0
Carbohydrates (grams) 2.4 8.2 2.5 13
Protein (grams) 0.6 0.9 1.1 1
Cost in Peso per gram 0.06 0.07 0.2 0.08

Source: https://www.blogilates.com/6141902952/andhttp://www.magkano.com/market/vegetables_price.htm

The chart provides the nutrient as well as the per-unit cost of each food item. The diet has to be
planned in such a way that it should contain at least 500 calories, 6 grams of protein, 10 grams
of carbohydrates and 8 grams of fat.

18. A small bakery in Bulacan is baking our favorite breads like pandesal, monay and ensaymada.
The bakery have an order of 100 pieces of pandesal for a breakfast meeting early morning the
next day. The pandesal can be baked using the new and old oven or both. When bake in the old
oven, would take 30 minutes of time and when bake in the new oven would take 25 minutes. The
cost of using the old oven is ₱ 25 per minute and using new oven is ₱ 20. The old oven has only
10 hours to operate while the new oven can be operated as desired. Determine the number of
hours to schedule the baking of pandesal in each oven that minimize the cost of operation?
98

19. Engr Isaac is investing her savings of ₱500,000 into Food cart franchises, the Milk Tea Craze
and Fish balls and squid balls cart. The milk tea craze is offering a rate of returns of 12% while
the fish balls and squid balls cart offers 11.5%. She plans to invest ₱ 280,000 on Milk Tea Craze
and ₱ 150,000 on fish balls and squid balls carts. How much should Engr. Isaac invest to
maximize profit? What is the maximum annual interest?

20. A bag factory started producing two products last month, product X and Y using two new
machines A and B.

Machine The cost of producing each unit of X The cost of producing each unit of Y
A 50 minutes 24 minutes
B 30 minutes 33 minutes

Working plans for a week are: The week starts with:

• 40 hours of work for machine A • A stock of 30 units of X and 90 units of Y


• 35 hours of work on machine B • A demand of 75 units of x and 95 units of Y

How to plan the production, to end the week with maximum stock?
99

THE FOLLOWING ARE TOPICS INCLUDED IN THE FULL COURSE OF LINEAR


PROGRAMMING.

✓ Linear Programming by Graphical Method


✓ Linear Programming by Simplex Method

• Standard Maximization
• Maximization with Mixed Constraints
• Minimization

✓ Linear Programming by Transportation Method

• Stepping stone Method


• Modified Method

✓ Linear Programming by Assignment Method


✓ Break Even Analysis
✓ Network Analysis
✓ Inventory Models
✓ Forecasting
✓ Decision Theory

5.3 THE SIMPLEX ALGORITHM

It is one of the most popular and powerful methods of linear programming. It is a repetitive
procedure for obtaining the most feasible solution. It is carried out by performing elementary row
operations on a matrix called simplex tableau. The tableau consists of augmented matrix
corresponding to the constraint equations and the coefficients of objective functions.

A linear programming function is in its standard form if it seeks to maximize the objective
function as follows:

𝑃 = 𝑐1 𝑥1 + 𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛

Subject to the following constraints,

𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥𝑛 ≤ 𝑏1

𝑎21 𝑥1 + 𝑎22 𝑥2 + ⋯ + 𝑎2𝑛 𝑥𝑛 ≤ 𝑏2

. . . . . .

𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + ⋯ + 𝑎𝑚𝑛 𝑥𝑛 ≤ 𝑏𝑚

Where 𝑥𝑖 ≥ 0 and 𝑏𝑖 ≥ 0

Adding slack variables, s1, s2…sn to each of the constraints and equating to constant,

𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥𝑛 + 𝑠1 = 𝑏1

𝑎21 𝑥1 + 𝑎22 𝑥2 + ⋯ + 𝑎2𝑛 𝑥𝑛 + 𝑠2 = 𝑏2

. . . . . .

𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + ⋯ + 𝑎𝑚𝑛 𝑥𝑛 + 𝑠𝑚 = 𝑏𝑚

The slack variables are the non-negative numbers that are added to the constraints to
remove the inequalities from the equation.

A basic solution is a solution (x1, x2,…, xn, s1, s2 ,…, sm) for a linear programming problem
in standard form in which at most m variables are nonzero.
100

A basic variable is a variable that corresponds to a column in tableau, in which column


is cleared out and has only one non-zero element. The values of the basic variables are found
by reading the solution from the matrix that results by deleting out the non-basic columns.

A non-basic variable is a variable that corresponds to a column that is not cleared out
and has more than one non-zero element. Its value is zero.

A Simplex tableau consists of the augmented matrix corresponding to the constraint


equations together with slack variables and the objective function.

Standard Maximum-Type Problem

A linear programming problem is a standard maximum type of problem if the following


conditions are met:

1. The objective function is linear and to be maximized.


2. All variables are non-negative, (zero or positive).
3. All explicit constraints involve ≤.
4. All the constants in the constraints are positive, (right hand side of each constraint).

Steps in solving linear programming problem in standard form:

1. Add the slack variable to constraints and rewrite it in the equation form, the objective
function is also rewritten the same way as the constraints.
2. Construct the Simplex Tableau.
3. Determination of Pivotal column, Pivotal row and the Pivot element.
4. Reduction of the value of pivot to 1 and reduction of all other entries in the pivotal column
to zero using elementary row operations.
5. Iteration of steps 3 and 4 until the optimum solution is obtained. This is where all entries
at the bottom row are zero or positive.
6. If you obtain a final tableau, then the linear programming problem has a maximum
solution, which is given by the entry in the lower-right corner of the tableau.

Example 5.5: Use simplex algorithm to maximize P = 4x + 6y, subject to the following
constraints.

-x + y ≤ 11
X+ y ≥ 27
2x + 5y ≤ 90
𝑥 ≥ 0; 𝑦 ≥ 0

Solution: The steps in solving linear programming problems is demonstrated using this
example

Step 1: Add the slack variable to constraints and rewrite it in the equation form, the objective
function is also rewritten as shown below,

The new linear program,

-x + y + S1 = 11
x + y + S2 = 27
2x + 5y + S3 = 90
-4x – 6y + P = 0

Step 2: Construct the Simplex Tableau

Below is the initial simplex tableau, the number of rows should be equal to the equations
in the new linear program + 1 and the number of columns is equal to the number of variables + 2.
The entries to the table at the topmost row are the variables in the new linear program, the 2nd,
third and 4th row are coefficients of the constraints arranged according to the way they are listed.
The last row entries are coefficients of the variables of objective function and its constant value.
101

Basic x y S1 S2 S3 P Q
S1 -1 1 1 0 0 0 11
S2 1 1 0 1 0 0 27
S3 2 5 0 0 1 0 90
-4 -6 0 0 0 1 0

On the other hand, the first column is called the basic column, this is the column where
the decision is based, while the last column is called the quantity (Q) column where the
constants are listed and where the values of the decision variables are obtained. And the columns
in between are called coefficient column.

In the table that follows, S1, S2, S3 and P are basic variables since they correspond to a
column which is cleared out and has only one non-zero element. So, the initial values of basic
variables are S1 = 1, S2 = 0, S3 = 2 and P = 0.

S1 S2 S3 P Q
1 0 0 0 11
0 1 0 0 27
0 0 1 0 90
0 0 0 1 0

Variables x and y are non-basic variables, so their values are x = 0 and y = 0.

Step 3: Determination of Pivotal column, Pivotal row and the Pivot element.

The pivotal column (entering column) is the most negative entry in the objective row,
(bottom) with entry under the column of variable y is -6, column y is the pivotal column. In case
of tied entries, any one of them can be used to determine the pivotal column. However, if all
entries in the entering column are 0 or negative, there is no maximum solution.

The pivotal row (departing row) can be determined by the taking the smallest positive
ratio of the entries in the quantity column to its corresponding entries in the pivotal column.

11 ÷ 1 = 𝟏𝟏 27 ÷ 1 = 27 90 ÷ 5 = 18

In the above table, the smallest positive ratio is 11 which is in 1st row, this indicates that
1st row is the pivotal row. If no non-negative ratios can be found, the problem does not have a
solution. If one of the ratios is 0, that qualifies as a non-negative value.

Encircle the pivot column and pivot row, the entry at the intersection of the pivotal row and
pivotal column is 1 becomes the pivot element or simply pivot.

Step 4: Reduction of the value of pivot to 1 and reduction of all other entries in the pivotal column
to zero using elementary row operations. This process is called pivoting.

Since the pivot is 1, no need to reduce further, its row is now called R0, the reduced
pivotal row.

R0 : -1 1 1 0 0 0 11

Other entries in the pivotal column may be reduced as follows:


102

Multiply R0 by -1 (additive inverse of 1 in R1 of pivotal column) then add to all entries of R2,

-R0 : 1 - 1 - 1 + 0 + 0 + 0 - 11
R2 : 1 + 1 + 0 + 1 + 0 + 0 + 27
2 + 0 - 1 + 1 + 0 + 0 + 16

Now, reducing R3, multiply R0 by -5, then add to all entries of R3

-5R0 : 5 - 5 - 5 + 0 + 0 + 0 - 55
R3 : 2 + 5 + 0 + 0 + 1 + 0 + 90
7 + 0 - 5 + 0 + 1 + 0 + 35

Reducing the objective row, multiply R0 by 6, then add to all entries of the objective row,

6R0 : -6 + 6 + 6 + 0 + 0 + 0 + 66
R4 : -4 - 6 + 0 + 0 + 0 + 1 + 0
-10 + 0 + 6 + 0 + 0 + 1 + 66

The reduced entries are reflected in the table below, the pivotal row S1 is replaced by y,

Note that the basic variables are y, S2, S3 and P and non-basic variables are x and S1

Basic y S2 S3 P Q Summarizing new values,


Variables
y 1 0 0 0 11 Y = 11 x=0
S2 0 1 0 0 16 S2 = 16 S1 = 0
S3 0 0 1 0 35 S3 = 35
0 0 0 1 66 P = 66

But since the objective column still has a negative number in its row, this means that the optimum
solution is not reached yet, this means we need to continue with the next step.

Step 5: Iteration of steps 3 and 4 until the optimum solution is obtained.

Repeat doing steps 3 and 4 using the new entries listed in the table, the purpose is to
reduce the entries in the objective row to positive numbers and zeros. Zeros and positive numbers
in the objective rows indicate that the optimum solution is reached.

From the table, the most negative value is - 10 which is in column x, this means that
column x is the new pivotal column, and to determine the pivotal row,

Basic x y S1 S2 S3 P Q To determine the pivotal row,


Variables
y -1 1 1 0 0 0 11 R1: 11 ÷ −1 = −11
S2 2 0 -1 1 0 0 16 R2: 16 ÷ 2 = 8
S3 7 0 -5 0 1 0 35 R3 : 35 ÷ 7 = 5
-10 0 6 0 0 1 66

The smallest positive ratio is 5, therefore the pivotal row is S3 row,


103

Basic x y S1 S2 S3 P Q
Variables
y -1 1 1 0 0 0 11
S2 2 0 -1 1 0 0 16
S3 7 0 -5 0 1 0 35
-10 0 6 0 0 1 66
𝟏
The pivot element is 7, so multiply the entries of the pivotal row by , the new reduced
𝟕
pivotal row is as follows.
5 1
R0 : 1 + 0 - 𝟕
+ 0 + 𝟕
+ 0 + 5

Then, we add R0 to the entries in row R1,


5 1
R0 : 1 + 0 - 𝟕
+ 0 + 𝟕
+ 0 + 5
R1 : -1 + 1 + 1 + 0 + 0 + 0 + 11
𝟐 𝟏
0 + 1 + + 0 + + 0 + 16
𝟕 𝟕

The next row to be reduced is R2, multiply R0 by -2, then add all entries of R2,

10 2
-2R0 : -2 + 0 + 𝟕
+ 0 - 𝟕
+ 0 - 10
R2 : 2 + 0 - 1 + 1 + 0 + 0 + 16
𝟑 𝟐
0 + 0 + + 1 - + 0 + 6
𝟕 𝟕

Next, reducing the objective row, multiply R0 by 10, then add R4,
50 10
10R0 : 10 + 0 - + 0 + 𝟕
+ 0 + 50
𝟕
R4 : -10 + 0 + 6 + 0 + 0 + 1 + 66
𝟖 𝟏𝟎
0 + 0 - + 0 + + 1 + 116
𝟕 𝟕

The result of the second pivoting is as follows, S3 is now replaced by x,

The tableau shows that the basic variables and their values are x = 5, y = 16, S2 = 6 and
P = 116, while non-basic variables are S1 = 0 and S3 = 0 but there is still a negative entry in the
bottom row, so we continue the steps 3 and 4, this time the pivoting column is S1 and the
pivoting row is S2,

Basic x y S1 S2 S3 P Q
Variables 𝟐 𝟏
y 0 1 0 0 16
𝟕 𝟕
𝟑 𝟐
S2 0 0 1 − 0 6
𝟕 𝟕
𝟓 𝟏
x 1 0 − 0
𝟕
0 5
𝟕
𝟖 𝟏𝟎
0 0 − 0 1 116
𝟕 𝟕

𝟑 𝟕
Since the pivot is , multiply R2 by in order to produce R0, the reduced pivotal row,
𝟕 𝟑

𝟕 2
R0 : 0 + 0 + 1 + - 3
+ 0 + 14
𝟑
104

𝟕
To reduce R1, multiply R0 by − and add R1,
𝟐

𝟐 𝟐 𝟐 𝟒
− R0 : 0 + 0 - - + + 0 - 4
𝟕 𝟕 𝟑 𝟐𝟏
𝟐 𝟏
R1 : 0 + 1 + + 0 + + 0 + 16
𝟕 𝟕
𝟐 𝟏
0 + 1 + 0 - + + 0 + 12
𝟑 𝟑
𝟓
To reduce R3, multiply R0 by and add R3,
𝟕

𝟓
𝟓 𝟓 𝟏𝟎
𝟕 : 0 + 0 + + - + 0 + 10
𝟕 𝟑 𝟐𝟏
R0
𝟓 𝟏
R3 : 1 + 0 - + 0 + + 0 + 5
𝟕 𝟕
𝟓 𝟏
1 + 0 + 0 + - + 0 + 15
𝟑 𝟑

𝟖
To reduce the objective row, multiply R0 by and add R4,
𝟕

𝟖
𝟖 𝟖 𝟏𝟔
𝟕 : 0 + 0 + + - + 0 + 16
R0 𝟕 𝟑 𝟐𝟏
𝟖 𝟏𝟎
R4 : 0 + 0 - + 0 + + 1 + 116
𝟕 𝟕
𝟖 𝟐
0 + 0 + 0 + + + 1 + 132
𝟑 𝟑

Now, shown below is the new tableau,

Basic x y S1 S2 S3 P Q
Variables 𝟐 𝟏
y 0 1 0 − 0 12
𝟑 𝟑
𝟕 𝟐
S1 0 0 1 − 0 14
𝟑 𝟑
𝟓 𝟏
x 1 0 0 − 0 15
𝟑 𝟑
𝟖 𝟐
0 0 0 1 132
𝟑 𝟑

There is no more negative element at the bottom row, this indicates that the optimum
solution is determined: x = 15, y = 12, S1 = 14 and P =132

Checking with the objective function: P = 4x + 6y


P = 4 (14) + 6(12) = 132

The Simplex Method: Minimization

a21x1 + a22x2 + . . . a2nxn ≥ b2

am1x1 + am2x2 + . . . amnxn ≥ b2

where xi ≥ 0 and b1≥0

To solve this linear programming problem is to convert it to a maximization problem in


standard form, and then apply the simplex method discussed previously.

Example 5.6: Find the minimum value of Objective function z = 3x1 + 8x2, subject to the
following
constraints,

2x1 + 7x2 ≥ 9
x1 + 2x2 ≥ 4
x1, x2 ≥ 0

where x1 ≥ 0 and x2 ≥ 0.
105

Solution: We first convert the given problem to a maximization problem by forming


augmented matrix, we transpose of matrix by interchanging its rows and columns

2 7 ⋮ 9 2 1 ⋮ 3
1 2 ⋮ 4 7 2 ⋮ 8
[ ] then transposing [ ]
⋯ ⋯ ⋮ ⋯ ⋯ ⋯ ⋮ ⋯
3 8 ⋮ 0 9 4 ⋮ 0

Take note that the rows of matrix become the columns of first matrix and vice versa. The new
matrix can be interpreted as maximization problem, but we need to introduce new variables such
as y1, y2, y3, etc. This maximization problem is called the dual of the original minimization problem.

Dual Objective Function: w = 9y1 + 4y2

Subject to the Constraints: 2y1 + y2 ≤ 3


7y1 + 2y2 ≤ 8
Where y1, y2 ≥ 0

Adding slack variables to constraints:

2y1 + y2 + S1 = 3
7y1 + 2y2 + S2 = 8

Also, with the objective function:

- 9y1 - 4y2 + W = 0

Now, creating the tableau and applying the simplex method. Initially the pivotal column is
y1, the pivotal row is R2 and pivotal element is 7, as shown in the tableaus below:

Basic Y1 Y2 S1 S2 P Q Basic Y1 Y2 S1 S2 P Q
Variables Variables
S1 2 1 1 0 0 3 S1 2 1 1 0 0 3

S2 7 2 0 1 0 8 S2 7 2 0 1 0 8
-9 -4 0 0 1 0 -9 -4 0 0 1 0

1
Applying elementary operations, R0 = R2,
7

𝟐 𝟏 𝟖
R0 : 1 + 0 + + 0 +
𝟕 𝟕 𝟕

Multiply R0 by (-2), then add to R1, the result is the new R1.

4 2 16
-2R0 : -2 - + 0 - + 0 -
𝟕 𝟕 𝟕
R1 : 2 + 1 + 1 + 0 + 0 + 3
𝟑 𝟐 𝟓
0 + + 1 - + 0 +
𝟕 𝟕 𝟕

Next is to multiply R0 by 9, then add to R3, the result is the new R3.

18 9 72
9R0 : 9 + + 0 + + 0 +
𝟕 𝟕 𝟕
R3 : -9 - 4 + 0 + 0 + 1 + 0
𝟏𝟎 𝟗 𝟕𝟐
0 - + 0 - + 1 +
𝟕 𝟕 𝟕
106

In the tableau that follows, note that there is still a negative entry at the objective function row,
so there is still a need continue the previous steps.

Basic Y1 Y2 S1 S2 P Q Basic Y1 Y2 S1 S2 P Q
3 2 5 3 2 5
S1 0 1 − 0 S1 0 1 − 0
7 7 7 7 7 7
2 1 8 2 1 8
Y1 1 7
0 7
0 7 1 0 0
y1 7 7 7
10 9 72 10 9 72
0 − 0 - 1 0 − 0 - 1
7 7 7 7 7 7

3
The new pivotal column is Y2 column, the pivotal row is R1 and the pivotal element is
7
and the result of applying elementary operations is shown below:

Basic Y1 Y2 S1 S2 P Q
7 2 5
Y2 0 1 − 0
3 3 3
2 1 2
1 0 − 0
y1 3 3 3
10 1 𝟑𝟖
0 0 3 3
1
𝟑

x1 x2

𝟑𝟖
The above tableau shows that optimal value is and this value occurs when the value of
𝟑
𝟐 𝟓
y1 = and y2 = . Take note that this dual maximization problem has the same solution as its
𝟑 𝟑
original minimization problem.

10 1 8 𝟑𝟖
Original minimization problem: z = 3x 1 + 8x2 = 3 ( ) + 8 ( ) = 10 + =
3 3 3 𝟑

2 5 20 𝟑𝟖
of the original minimization problem: w = 9y1 + 4y2 = 9 ( ) + 4 ( ) = 6 + =
3 3 3 𝟑

Theorem: The Von Neumann Duality Principle

The objective value P of a minimization problem in standard form has a minimum value if
and only if the objective value w of the dual maximization problem has a maximum value.
Moreover, the minimum value of w is equal to the maximum value of P.

5.4 The Simplex Method: Mixed Constraints

Mixed-constraint problems is a type of linear programming problem in which constraints


involve both types of inequalities, ≤, ≥ 𝑜𝑟 =.

Maximization Problem with Mixed Constraints

A linear programming in maximization with maximization constraints form if the following


conditions are met.

a. The objective function is to be maximized.


b. All variables are non-negative.
c. All explicated constraints involve ≤, ≥ 𝑜𝑟 =.
d. All constants in the constraints are non-negative.

Example 5.7: Find the maximum value of w = 3x1 + 2x2 + 4x3


107

Subject to the following constraints

3x1 + 2x2 + 5x3 ≤ 18


4x1 + 2x2 + 3x3 ≤ 16
2x1 + x2 + x3 ≥ 4

Where x1 ≥ 0, x2 ≥ 0 and x3 ≥ 0

Solution: Add the slack variables S1 and S2 to the first two constraints and subtract a surplus
variable, S3 from the third constraint as shown below:

3x1 + 2x2 + 5x3 + S1 = 18


4x1 + 2x2 + 3x3 + S2 = 16
2x1 + x2 + x3 - S3 = 4

The initial tableau is shown below, take note that the tableau does not have a feasible
solution because S3 is negative. By trial and error, column x2 can be chosen as the entering
variable and S3 as the departing variable,

Now, because this simplex tableau does represent a feasible solution, we proceed as usual, choosing the
most negative entry in the bottom row to be the entering variable. (In this case, we have a tie, so we
arbitrarily choose to be the entering variable.)

Basic x1 x2 x3 s1 s2 s3 Q
Variables
S1 3 2 5 1 0 0 18
S2 4 2 3 0 1 0 16
S3 2 1 1 0 0 -1 4
-3 -2 -4 0 0 0 0

By elementary row operations, the following tableau is obtained, there are still negative
values at the bottom row so we proceed as usual, x 3 would be the entering variable while S1 as
the departing variable

Basic x1 x2 x3 s1 s2 s3 Q Basic x1 x2 x3 s1 s2 s3 Q
S1 -1 0 3 1 0 2 10 S1 -1 0 3 1 0 2 10
S2 0 0 1 0 1 2 8 S2 0 0 1 0 1 2 8
X2 2 1 1 0 0 -1 4 X2 2 1 1 0 0 -1 4
1 0 -2 0 0 -2 8 1 0 -2 0 0 -2 8

Repeat the procedure by elementary row operations, the new tableau is shown
below.

Basic x1 x2 x3 s1 s2 s3 Q Basic x1 x2 x3 s1 s2 s3 Q
1 1 2 10 1 1 1
X3 - 0 1 0 X3 - 0 1 - 0 1
3 3 3 3 2 2 2
1 1 4 14 1 1 3 7
S2 0 0 − 1 S2 0 0 − 1
3 3 3 3 4 4 4 2
7 1 5 2 11 3 5 13
X2 1 0 − 0 - X2 1 0 − 0
3 3 3 3 4 4 4 2
1 2 2 44
0 0 0 - 1 1 1
3 3 3 3 2
0 0 2 2
0 17

Finally, the last tableau shows the maximum value of the objective function to be w = 17
13
and this value occurs when x1 = 0, x2 = and x3 = 1.
2

Source: https://college.cengage.com/mathematics/larson/elementary_linear/4e/shared/downloads/c09s5.pdf
108

REVIEW EXERCISES 5.1


Name ___________________________________ Score ___________ Date ______________
Course, Year & Section _______________Student no. __________ Professor______________

Solve the following problems:

A. Determine which of the constraints below are not on the form appropriate for a standard
maximum-type problem. If the constraint is not on the appropriate form, rewrite it if possible, to
reduce to standard maximum type problem.

1. 5x − y ≤ 4 2. −6x + 5y + z ≥ −3
3. 7x − 4y ≤ −4 4. x + y − 11z ≤ 0
5. 7x − 5y ≥ 2 6. 4x − 5z ≤ −10

B. Solve the following linear program by Simplex algorithm.

1. Objective: P = 8x1 + x2 2. Objective: P = 2x1 + 4x2 – 4x3


Constraints: 2x1 + 3x2 ≤ 6 Constraints: 3x1 + 2x2 + 4x3 ≥ 1
x1 + 2x2 ≤ 6 4x1 - 3x2 ≥ 2
2x1 ≥ 0 2x1 + x2 + 5x3 ≤ 3
X2 ≥ 0 x1, x2 ≥ 0
x3 : Unrestricted:

3. Objective: P = 3x1 - 7x2 + 5x3 4. Objective: P = 2x1 - 3x2 + 4x3


Constraints: x2 - x3 ≤ -9 Constraints: x1 - 5x2 + 6x3 ≥ 8
-x1 - 2x3 ≥ 5 x1 - 4x2 ≤ -12
4x1 - x2 = 6 2x1 - x2 + 4x3 = 5
x1 ≤ 0 x1, x, x3 ≥ 0

X2 ≥ 0

5. Objective: P = 3x1 + 2x2 + x3 6. Objective: P = - x1 + 3x2 - 3x3


Constraints: 2x1 + 3x2 + x3 ≤ 60 Constraints: 3x1 - x2 - 2x3 ≤ 7
4x1 + x2 + x3 = 30 x1 - 2x3 ≤ 4
x1 + 2x2 + 3x3 ≤ 40 -2x1 + 2x2 + x3 ≤ 8
x1, x2, x3 ≥ 0 3x1 ≤ 5
x1, x2, x3 ≥ 0

7. Objective: P = x2 6. Objective: P = 2x1 + 10x2 + 8x3


Constraints: x1 + 5x2 ≥ 10 Constraints: x1 + x2 + x3 ≥ 6
-6x1 + 5x2 ≥ 3 x2 + 2x3 ≥ 8
x1, x2 ≥ 0 -x1 + 2x2 + 2x3 ≥ 4
x1, x2, x3 ≥ 0 x1, x2, x3 ≥ 0
x1, x2, x3 ≥ 0

C. Solve the following problems:

7. A secondhand dealer of appliances is selling used refrigerators that were sold to them. They
sell two popular brands of refrigerators Panasonic and Kelvinator. The 7.5 cubic feet, two door
Panasonic would give the dealer a profit of ₱3,500 and the 8 cubic feet, Kelvinator would give
₱3,000 profit. Before the dealer could sell the used refrigerators, they need to evaluate about their
working condition, some may need parts replacement or repairs. The Panasonic two door
refrigerators would take about 8 hours to be repaired and must pass for 4 hours of quality control
process, while the Kelvinator would only take 6 hours of repairs and 2 hours of quality control.
109

The technician has 3 days available for repairs per period of production and 5 days spend for
quality control job. How many Panasonic and Kelvinator of the same specification should be
undergone repairs and quality control per production period so that the dealer could get a
maximum profit?

8. A multinational manufacturing company has three production plants, each of which produces
three different models of a certain product. The daily capacities (in thousand units) of the three
plants are given in the following table:

Model A Model B Model C


Plant 1 8 4 8
Plant 2 6 6 3
Plant 3 12 4 8

The total demand for Model A is 300,000 units, for Model 2 is 172,000 units and for model
3 is 249,500 units. The daily operating cost for Plant 1 is ₱55,000, for Plant 2 is ₱60,000 and Plant
3 is ₱60,000. How many days should each plant be operated in order to fill the total demand and
keep the operating cost at a minimum?

9. In the problem no. 8 the multinational manufacturing company has lowered the daily operating
cost for Plant 3 to ₱50,000. How many days should each plant be operated in order to fill the total
demand and keep the operating cost at a minimum?

10. A big motorcycle company has two warehouses. One warehouse located in the city has 400
units of motorcycles (2020 model) and the other warehouse located in nearby province has 300
units of motorcycles (2019 model) in stock. There are two clients of the motorcycles. The first
client needs 200 units of the motorcycles and the second customer needs 300 units. The cost of
freight is shown in the table below:

Client 1 Client 2
Warehouse 1 30 25
Warehouse 2 36 30

How should the company ship the motorcycles in order to minimize the freight cost?

You might also like