0% found this document useful (0 votes)
94 views10 pages

Introduction To Linear Programming: Simplex Method: Lesson/ Learning Plan

The document provides guidance for developing a lesson plan to teach linear programming using the simplex method to students in grade 11 or 12. It outlines the topic, target group, goals, objectives, materials, teacher resources, student resources, and activities plan. The lesson plan introduction covers linear programming problems with more than two variables that cannot be solved graphically. It then introduces the simplex method as an algebraic method that can efficiently solve problems with thousands of variables and is suited for computer programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views10 pages

Introduction To Linear Programming: Simplex Method: Lesson/ Learning Plan

The document provides guidance for developing a lesson plan to teach linear programming using the simplex method to students in grade 11 or 12. It outlines the topic, target group, goals, objectives, materials, teacher resources, student resources, and activities plan. The lesson plan introduction covers linear programming problems with more than two variables that cannot be solved graphically. It then introduces the simplex method as an algebraic method that can efficiently solve problems with thousands of variables and is suited for computer programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

The following example is a guiding format for developing a Lesson Plan in a situation of supporting the

students working in the context of the INNOMATH project. This mathematical content is expected to be
useful for the students in their effort for solving industrial problems.

Lesson/ Learning Plan


Topic: Specify a particular mathematical topic
Introduction to Linear Programming: Simplex method

Target Group: Specify age, grade level and mathematical background of the students
“Gifted” Students in a high school at grade level 11 or 12 (5th or 6th year in a secondary school)
Mathematical background of the students:
Basic Concepts of Matrices,
Functions, Graphs of linear functions,
Solving linear equations and systems of equations,
Solving linear inequalities. Representing the solutions on graph diagrams
Capability of using graph software and interpreting the concepts involved
Capability of using a spreadsheet software

Goal/ Content/ Description: (Provide a brief description of the content of the lesson as well as the
general goals in relation to the prospects of usefulness, applications and mathematical value of the
particular mathematical topic.)

in the introduction of linear programming, we used the geometrical method to solve linear programming
problems, but the geometrical approach will not work for problems that have more than two variables. In
real life situations, linear programming problems consist of literally thousands of variables and are solved by
computers. We can solve these problems algebraically, but that will not be very efficient. Suppose we were
given a problem with, say, 5 variables and 10 constraints. By choosing all combinations of five equations
with five unknowns, we could find all the corner points, test them for feasibility, and come up with the
solution, if it exists. But the trouble is that even for a problem with so few variables, we will get more than
250 corner points, and testing each point will be very tedious. So we need a method that has a systematic
algorithm and can be programmed for a computer. The method has to be efficient enough so we wouldn't
have to evaluate the objective function at each corner point. We have just such a method, and it is called
the simplex method.

Objectives: Will be able to solve some industrial problems that involves more than two constraints that
can be solved using the graphical method.
General Mathematical Objectives
To develop skills for problem solving
To develop motives and positive affective tendencies for mathematics
To identify/ develop/ create applications of the related concepts and processes in the real world.
To develop mathematical skills/ through the use/ exploitation of  mathematical topics or means as help/
support in modelling, calculations and representations,
To develop digital skills/ through the use/ exploitation of digital means as help/ support in calculations and
representations,
To develop skills for collecting and analyzing data and other information as they appear in the real world
To exploit the flipped classroom method for supporting the various processes.

Particular Mathematical Objectives


1. Identify and set up a linear program in standard maximization form
2. Convert inequality constraints to equations using slack variables
3. Set up the initial simplex tableau using the objective function and slack equations
4. Find the optimal simplex tableau by performing pivoting operations.
5. Identify the optimal solution from the optimal simplex tableau.

Materials/ Tools: for example ppt, use of graphing software etc.


Computers and or scientific calculators.
Graphing software (eg Geogebra, Graph etc)
Power Point Presentations
Graph Paper
Simplex method application

Resources used by the teacher:


Introductory books on linear programming
Articles, examples, exercises, ppt presentations, YouTube videos (eg Khan Academy) on the topic by using
the Internet. Appendix.

Resources for the student:


Articles, examples, exercises, ppt presentations, YouTube videos (eg Khan Academy) on the topic by using
the Internet. For this the teacher is to prepare a list of webpages in the mother language of the students.
Work sheets prepared by the teacher. The teacher can use the following example to provide a sample of the
procedure and a step-by-step guidance.
https://www.youtube.com/watch?v=XK26I9eoSl8

Approaches/ Methodology: Describe briefly the approaches to be used (e.g. problem solving
project, flipped classroom,… ,the role of the teacher, etc)
The flipped classroom approach will be used in order to give to the student the possibility for investigation,
and access of information, and watching videos demonstrating the approach and posing the problem of
linear programming.
The project based problem solving approach will be utilised in order to help the students to acquire the
skill to investigate the prospect of extending the consideration of linear programming for non-graphical
methods (in the case of more than two variables)

Activities Plan:
Introductory activities (creation of interest, reference to real value issues, relation to background
experiences etc)
Time Description of the activity Instructions/ Hints/ Support/
When / Comments
length

Previous Revise the concepts of solving linear equations and See Appendix 1 for a
Day determining regions that are satisfied by linear inequalities problem
10 min Present a problem that is faced by the real world eg. Discussion on the issues
when more variables are
A factory manufactures chairs, tables and bookcases each
involved in the problem and
requiring the use of three operations: Cutting, Assembly, and
the difficulty to solve the
Finishing. The first operation can be used at most 600 hours;
problem using the graphical
the second at most 500 hours; and the third at most 300
approach.
hours. A chair requires 1 hour of cutting, 1 hour of assembly,
and 1 hour of finishing; a table needs 1 hour of cutting, 2
hours of assembly, and 1 hour of finishing; and a bookcase
requires 3 hours of cutting, 1 hour of assembly, and 1 hour of
finishing. If the profit is $20 per unit for a chair, $30 for a table,
and $25 for a bookcase, how many units of each should be
manufactured to maximize profit?

Development activities
Time Description of the activity Instructions/ Hints/
Support/ Comments
15 min Provide the Simplex method What are the important
processes in a Simplex
1.Set up the problem. That is, write the objective function and
method :
the inequality constraints.
1. Identify and set up a
2. Convert the inequalities into equations. This is done by
linear program in
adding one slack variable for each inequality.
standard maximization
3. Construct the initial simplex tableau. Write the objective form
function as the bottom row.
2. Convert inequality
4. The most negative entry in the bottom row identifies the constraints to equations
pivot column. using slack variables
5. Calculate the quotients. The smallest quotient identifies a 3. Set up the initial
row. The element in the intersection of the column simplex tableau using
identified in step 4 and the row identified in this step is the objective function
identified as the pivot element. The quotients are and slack equations
computed by dividing the far right column by the identified
4. Find the optimal
column in step 4. A quotient that is a zero, or a negative
simplex tableau by
number, or that has a zero in the denominator, is ignored.
performing pivoting
6. Perform pivoting to make all other entries in this column operations.
zero. This is done the same way as we did with the
5. Identify the optimal
Gauss-Jordan method.
solution from the
7. When there are no more negative entries in the bottom optimal simplex
row, we are finished; otherwise, we start again from step 4. tableau.
8. Read off your answers. Get the variables using the columns
with 1 and 0s. All other variables are zero. The maximum
value you are looking for appears in the bottom right hand
corner.
Practicing Activities
Time Description of the activity Instructions/ Hints/ Support/
When / Comments
length

40 min Implement the plan by using a worked example on a simpler Discussion, Solutions
problem:
Niki holds two part-time jobs, Job I and Job II. She never
wants to work more than a total of 12 hours a week. She has
determined that for every hour she works at Job I, she needs
2 hours of preparation time, and for every hour she works at
Job II, she needs one hour of preparation time, and she
cannot spend more than 16 hours for preparation. If she
makes $40 an hour at Job I, and $30 an hour at Job II, how
many hours should she work per week at each job to
maximize her income?
10 min Suggest the consideration of problems with more than 3
variables and suggest to work at home referring to
supporting webpages.
10 min Introduce the simplex method algorithm.
Students can watch a youtube link on how to use the
programme and experience some programming techniques
which will be an extension of the topic.

Reflection and Closure


For maximization we set the inequalities in which direction?
What are the slack variables?
How do we find the pivot column?
How do we find the pivot row?

Assignment for further work


Using the Internet, Study other methods and approaches for the consideration of quadratic
approximation.
What is the Jacobi Method?
What is the Hessian Matrix?
Appendix
Niki holds two part-time jobs, Job I and Job II. She never wants to work more than a total of 12 hours a
week. She has determined that for every hour she works at Job I, she needs 2 hours of preparation time,
and for every hour she works at Job II, she needs one hour of preparation time, and she cannot spend more
than 16 hours for preparation. If she makes $40 an hour at Job I, and $30 an hour at Job II, how many hours
should she work per week at each job to maximize her income?

Solution

In solving this problem, we will follow the algorithm listed above.

STEP 1. Set up the problem. Write the objective function and the constraints.

Let

● 𝑥1 = The number of hours per week Niki will work at Job I and
● 𝑥2 = The number of hours per week Niki will work at Job II.

It is customary to choose the variable that is to be maximized as Z.

The problem is formulated as:

Maximize subject to: 𝑧 = 40𝑥1 + 30𝑥2

𝑥1 + 𝑥2≤12

2𝑥1 + 𝑥2≤16

𝑥1≥0 ; 𝑥2≥0

STEP 2. Convert the inequalities into equations. This is done by adding one slack variable for each
inequality.

For example to convert the inequality 𝑥1 + 𝑥2≤12 into an equation, we add a non-negative variable 𝑦1 ,
and we get 𝑥1 + 𝑥2 + 𝑦1 = 12.

Here the variable 𝑦1  picks up the slack. In this problem, if Niki works fewer than 12 hours, say 10, then 
𝑦1 = 2. Later when we read off the final solution from the simplex table, the values of the slack variables
will identify the unused amounts.

We write the objective function 𝑧 = 40𝑥1 + 30𝑥2 as − 40𝑥1 − 30𝑥2 + 𝑧 = 0.

After adding the slack variables, our problem reads

Objective function − 40𝑥1 − 30𝑥2 + 𝑧 = 0


Subject to constraints: 𝑥1 + 𝑥2 + 𝑦1 = 12

2𝑥1 + 𝑥2 + 𝑦2 = 16

𝑥1≥0 ; 𝑥2≥0

STEP 3. Construct the initial simplex tableau. Each inequality constraint appears in its own row. (The
non-negativity constraints do not appear as rows in the simplex tableau.) Write the objective function as the
bottom row.
Now that the inequalities are converted into equations, we can represent the problem into an augmented
matrix called the initial simplex tableau as follows.

Here the vertical line separates the left hand side of the equations from the right side. The horizontal line
separates the constraints from the objective function. The right side of the equation is represented by the
column C.

STEP 4. The most negative entry in the bottom row identifies the pivot column.
The most negative entry in the bottom row is -40; therefore the column 1 is identified

Question Why do we choose the most negative entry in the bottom row?


Answer The most negative entry in the bottom row represents the largest coefficient in the objective
function - the coefficient whose entry will increase the value of the objective function the quickest.

The simplex method begins at a corner point where all the main variables, the variables that have symbols
such as 𝑥1, 𝑥2, 𝑥3 etc., are zero. It then moves from a corner point to the adjacent corner point always
increasing the value of the objective function. In the case of the objective function 𝑧 = 40𝑥1 + 30𝑥2, it will
make more sense to increase the value of 𝑥1, rather than 𝑥2,. The variable 𝑥1, represents the number of
hours per week Niki works at Job I. Since Job I pays $40 per hour as opposed to Job II which pays only $30,
the variable 𝑥1, will increase the objective function by $40 for a unit of increase in the variable 𝑥1.
STEP 5. Calculate the quotients. The smallest quotient identifies a row. The element in the intersection of
the column identified in step 4 and the row identified in this step is identified as the pivot element.

Following the algorithm, in order to calculate the quotient, we divide the entries in the far right column by
the entries in column 1, excluding the entry in the bottom row.

The smallest of the two quotients, 12 and 8, is 8. Therefore row 2 is identified. The intersection of column 1
and row 2 is the entry 2, which has been highlighted. This is our pivot element.
Question Why do we find quotients, and why does the smallest quotient identify a row?

Answer When we choose the most negative entry in the bottom row, we are trying to increase the value of
the objective function by bringing in the variable 𝑥1. But we cannot choose any value for 𝑥1 . Can we let 
𝑥1 = 100? Definitely not! That is because Niki never wants to work for more than 12 hours at both jobs
combined: 𝑥1 + 𝑥2≤12. Can we let 𝑥1 = 12? Again, the answer is no because the preparation time for Job I
is two times the time spent on the job. Since Niki never wants to spend more than 16 hours for preparation,
the maximum time she can work is 16 ÷ 2 = 8.

Now you see the purpose of computing the quotients; using the quotients to identify the pivot element
guarantees that we do not violate the constraints.
Question Why do we identify the pivot element?
Answer As we have mentioned earlier, the simplex method begins with a corner point and then moves to
the next corner point always improving the value of the objective function. The value of the objective
function is improved by changing the number of units of the variables. We may add the number of units of
one variable, while throwing away the units of another. Pivoting allows us to do just that.

The variable whose units are being added is called the entering variable, and the variable whose units are
being replaced is called the departing variable. The entering variable in the above table is 𝑥1, and it was
identified by the most negative entry in the bottom row. The departing variable 𝑦2 was identified by the
lowest of all quotients.

STEP 6. Perform pivoting to make all other entries in this column zero.

In chapter 2, we used pivoting to obtain the row echelon form of an augmented matrix. Pivoting is a process
of obtaining a 1 in the location of the pivot element, and then making all other entries zeros in that column.
So now our job is to make our pivot element a 1 by dividing the entire second row by 2. The result follows.
To obtain a zero in the entry first above the pivot element, we multiply the second row by -1 and add it to
row 1. We get

To obtain a zero in the element below the pivot, we multiply the second row by 40 and add it to the last
row.

We now determine the basic solution associated with this tableau. By arbitrarily choosing 𝑥2 = 0 and 
𝑦2 = 0 we obtain 𝑥1 = 8, 𝑦1 = 4 𝑎𝑛𝑑 𝑧 = 320. If we write the augmented matrix, whose left side is a
matrix with columns that have one 1 and all other entries zeros, we get the following matrix stating the
same thing.

We can restate the solution associated with this matrix as 𝑥1 = 8 , 𝑥2 = 0 , 𝑦1 = 4, 𝑦2 = 0 and 𝑧 = 320.
At this stage of the game, it reads that if Niki works 8 hours at Job I, and no hours at Job II, her profit Z will
be $320.

STEP 7. When there are no more negative entries in the bottom row, we are finished; otherwise, we start
again from step 4.
Since there is still a negative entry, -10, in the bottom row, we need to begin, again, from step 4. This time
we will not repeat the details of every step, instead, we will identify the column and row that give us the
pivot element, and highlight the pivot element. The result is as follows.

We make the pivot element 1 by multiplying row 1 by 2, and we get

Now to make all other entries as zeros in this column, we first multiply row 1 by -1/2 and add it to row 2,
and then multiply row 1 by 10 and add it to the bottom row.

We no longer have negative entries in the bottom row, therefore we are finished.
Question Why are we finished when there are no negative entries in the bottom row?
Answer The answer lies in the bottom row. The bottom row corresponds to the equation:

Since all variables are non-negative, the highest value Z can ever achieve is 400, and that will happen only
when 𝑦1 and 𝑦2 are zero.

STEP 8. Read off your answers.

We now read off our answers, that is, we determine the basic solution associated with the final simplex
tableau. Again, we look at the columns that have a 1 and all other entries zeros. Since the columns labeled 
𝑦1 and 𝑦2 are not such columns, we arbitrarily choose 𝑦1 = 0, and 𝑦2 = 0, and we get
The matrix reads 𝑥1 = 4 , 𝑥1 = 8 and  z=400.

The final solution says that if Niki works 4 hours at Job I and 8 hours at Job II, she will maximize her income
to $400. Since both slack variables are zero, it means that she would have used up all the working time, as
well as the preparation time, and none will be left.

Link with further examples on YouTube:

(6) 📚 How to use the simplex method to solve maximization problems (Question 1, Easy) - YouTube

You might also like