Linear Programming
Linear Programming
X
4x - 2y = 0
(0,0)
X y
0 0
1 2
• In the graph above the point of intersection of the
two straight lines representing the equations
2x+2y=12 and 4x-2y=0 is 2,4 , which is the solution
set of the system.
• Check by substituting these values in the
equations and see if both equations are satisfied.
Check: 2x + 2y = 12 4x – 2y = 0
2 (2) + 2 (4) = 12 4(2) – 2(4) = 0
12 = 12 0=0
Both equations are satisfied, therefore, x=2
and y=4 is correct.
Example 2: Solve graphically the following system of linear
equations. 4x - 2y = 8 and 2x + 4y = 14
Solution: 2x + 4y = 14
Y
4x - 2y = 8
( 0 , 7/2 )
X y
0 -4 (3,2) 4x - 2y = 8
2 0
(7,0)
X
(0,0)
2x + 4y = 14
X y (2,0)
0 7/2
( 0 , -4 )
7 0
Check: 4x - 2y = 8 2x + 2y = 14
4 (3) - 2 (2) = 8 2(3) + 4(2) =14
8=8 14 = 14
0 4
2 0
ANALYTICAL SOLUTION OF
SYSTEMS OF LINEAR EQUATIONS
The analytical method of solving a system of linear equations
provides a more exact roots. This method commonly employs
elimination by substitution and elimination by addition or
subtraction. Any one of these two can be used whichever is more
convenient. To Illustrate, let us take Example 1 of the graphical
method.
Example 1. Solve analytically
2x + 2y = 12 and 4x – 2y = 0
Solution: To solve for X: use addition
2x + 2y = 12
(+) 4x – 2y = 0
6x = 12
x=2
To solve for Y: use subtraction:
2x + 2y = 12 --- (multiply by 2)
(-) 4x – 2y = 0
4x + 4y = 24
4x – 2y = 0
6y = 24
y=4
Therefore, the solution set is (2,4), that is, x=2 and
y=4.
SOLVE THE FOLLOWING SYSTEMS OF LINEAR
EQUATIONS GRAPHICALLY. CHECK BY SOLVING
ANALYTICALLY
1. 2x + 2y = 8
4x – 2y = 4
2. 4x – 6y = 10
-12x + 3y = -24
3. 5x + y = 6
x-2y = 21
Example for Linear Programming
The WYNDOR GLASS CO. produces high-quality glass
products, including windows and glass doors. It has three
plants. Aluminum frames and hardware are made in Plant 1,
wood frames are made in Plant 2, and Plant 3 produces the
glass and assembles the products.
Because of declining earnings, top management has
decided to revamp the company’s product line. Unprofitable
products are being discontinued, releasing production
capacity to launch two new products having large sales
potential:
Product 1: An 8-foot glass door with aluminum framing
Product 2: A 4 6 foot double-hung wood-framed window
Products Plants
Product 1 1 and 3
Product 2 2 and 3
1 1 0 4
2 0 2 12
3 3 2 18
Profit per $3,000 $5,000
Batch 𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 : 𝑍 =3 𝑥 1+ 5 𝑥 2
Subject to restrictions:
And
Standard Form of the Model
+ ….+
Other Forms
• Minimizing rather than maximizing the
objective function:
+ ….+
• Some functional constraints with a greater-
than-or-equal-to inequality: