04 - Matrices (III) and LP
04 - Matrices (III) and LP
Learning
Objective
Solve linear system using
inverse matrix
Inverse Matrices
If the product 𝐴 and 𝐵 is the identity matrix, it is said
that 𝐵 is the inverse of 𝐴 (and 𝐴 is the inverse of 𝐵).
The matrix 𝐵 is called the inverse matrix of 𝐴,
denoted 𝐴#$
3
Inverse Matrices
Is 𝐵 the inverse of 𝐴 if 𝐴 = 1 2 and 𝐵 = −1 2
?
1 1 1 −1
1 2 −1 2 1 0
𝐴𝐵 = = =𝐼
1 1 1 −1 0 1
−1 2 1 2 1 0
𝐵𝐴 = = =𝐼
1 −1 1 1 0 1
5
Inverse Matrices
8
2 Inverse Matrices
Perform row operaYons unYl it has been augmented
to the form 𝐼 |𝐵
9
3 Inverse Matrices
The matrix 𝐵 is the inverse of matrix 𝐴
0 1/4 1/4
𝐴#$ = −1/3 0 2/3
−1/3 1/4 −1/12
10
4 Inverse Matrices
MulYply matrix 𝐵/𝐴#$ with the constant matrix (𝐶)
to find the soluYon
0 1/4 1/4 2
𝑋 = −1/3 0 2/3 −3
−1/3 1/4 −1/12 7
11
Matrices
• Understand the concept
of matrix
• Express a system as a
single matrix equation
When graphing,
• a solid line – included in the solution (≤, ≥)
• a dashed line – not included in the solution (<, >)
15
Linear Inequalities in Two Variables
The graph of 𝑦 < 𝑥 consists of all points
in which the 𝑦-coordinate is less than the
𝑥-coordinate
16
System of Linear Inequalities
If we have two or more inequalities in two variables,
we can find the solutions that satisfy all the
inequalities. We call the inequalities a system of
inequalities, and the solution of the system can be
found by finding the intersection of the solution sets
of all the inequalities.
17
Steps in Solving SLI
① Rearrange the inequality, so that the appropriate
plane is obvious
② Plot the graph
③ Determine the region
18
Example: System of Linear Inequalities
3𝑥 − 2𝑦 < 6
Graph the solution to the inequalities D
𝑥 − 3𝑦 > 9
19
Linear Programming
Linear programming is used to find the optimal value of a
linear function subject to constraints.
e.g. A manufacturer may want to maximise a profit, subject to
production restrictions imposed by limitations on the use of
machinery and labour.
If the limitations on the variables (called constraints) can be
expressed as linear inequalities and the function that is to be
maximised or minimised (called the objective function) is a
linear function, then the problem is called a linear
programming problem.
Hence, any point in the region determined by the constraints
is called a feasible solution, and the region itself is called the
feasible region. 21
Feasible Region
The feasible region is an example of
a closed and bounded region
because it is entirely enclosed by,
and includes, the lines associated
with the constraints. The objective
function occurs at one of the corner
of the region
24
Example: Linear Programming
A company produces 2 types of can openers: manual and electric.
Each requires the use of 3 machines: A, B and C. Each manual can
opener requires the use of machine A for 2 hrs, machine B for 1 hr,
and machine C for 1 hr. An electric can opener requires 1 hr on A, 2
hrs on B and 1 hr on C. Suppose the maximum number of hours
available per month for the use of machines A, B and C are 180, 160
and 100 respectively. The profit on manual can opener is $4, and on
an electric can opener is $6. If the company can sell all the can
openers, how many of each type should it make in order to maximise
the monthly profit?
25
28
The Simplex Method
• Useful if there are more than 2 variables
29
Simplex: Maximisation Problems
Standard maximisation problems, satisfy the
following conditions:
1. The objective function is to be maximised
2. All variables are nonnegative
3. The constraints are of the form
𝑎$𝑥$ + 𝑎G𝑥G + ⋯ + 𝑎I 𝑥I ≤ 𝑏
where 𝑏 > 0
33
Solutions of Simplex Method
§ Unique solution
§ Multiple solution (when nonbasic variable has a zero
indicator in its column)
37
Simplex: Multiple Solutions
Task 𝐵: Determine necessary operations and implementing
those operations to reach a solution
1 #NOPNQ→NQ
GNOPNS→NS
3 ÷ −3 = −1
#GNOPNQ→NQ
TNOPNS→NS 0÷0=0
If, after the pivot column has been found, there are no
positive coefficients in that column, no maximum
solution exists.
40
43