7-FENG 346 Linear Programming_B
7-FENG 346 Linear Programming_B
•Graphical Approach
2
Linear Optimization Problems
If both objective function and constraint equations are linear (including only first-order terms), it is a
linear optimization problem.
Linear objective function
Linear constraints
y=x
3
Graphical Approach for Linear Optimization Problems
Optimization problems having only two design variables can be solved by observing how
they are graphically represented.
Step 1: All constraint functions are plotted, and a set of feasible designs (the feasible
set) for the problem is identified.
Step 2: In linear optimization problems, the optimum point is known to be on one
vertex. Hence, the optimum point is found by checking all vertices on feasible region
boundary. In other words, optimum solution, if it exists, always lies on the boundary
of the feasible set.
Therefore, when trying to find the extremum points, we are not interested in4 the
Graphical Approach for Constrained Optimization Problems
Problem: A company manufactures two machines, . Using available resources, either or can be
manufactured daily. The sales department can sell up to machines or machines. The shipping facility can
handle no more than machines per day. The company makes a profit of on each machine and on each
machine. How many machines should the company manufacture every day to maximize its profit?
𝒈𝟏 :
𝒈𝟐 :
𝒈𝟑 :
𝒈 𝟒 𝒂𝒏𝒅 𝒈 𝟓 𝒓𝒆𝒔𝒑𝒆𝒄𝒕𝒊𝒗𝒆𝒍𝒚 :
6
Graphical Approach for Constrained Optimization Problems
Step 2: Compare results of the vertices and determine the optimum solution.
7
Linear Programming Methods
If the number of design variable is higher than 2, the graphical approach does not work. Then it becomes
necessary to solve linear optimization problems via analytical or numerical ways. A linear optimization
problem may include linear equality constraints and ( or ) form linear inequality constraints.
equality constraints
8
Linear Programming Methods
Standard Linear Optimization Form
m independent
equality constraints
Non-negativity constraints
on the variables
9
Linear Programming Methods
In most engineering optimization problems, the decision variables represent some physical dimensions,
and hence the variables will be nonnegative. However, a variable may be unrestricted in sign in some
problems. In such cases, an unrestricted variable (which can take a positive, negative, or zero value) can
be written as the difference of two nonnegative variables.
Thus if is unrestricted in sign, it can be written as
10
Linear Programming Methods
All in all, in linear optimization problems, there are number of equations and number of decision variables.
12
Linear Programming Methods
Matrix Form of LP
Step 1: Since is unrestricted in sign, split it into its positive and negative signs
Step 3: The right side of the second constraint is negative. Convert it positive by multiplying -1 and change
form into form.
Step 4:Convert the maximization problem into minimization problem. Then convert the inequality
constraints into equality ones by adding slack and surplus nonnegative decision variables.
Maximize Minimize
Where is slack variable
Where is slurplus variable
15
Linear Programming Methods
Minimize
Subject to
(number of equations)
(number of variables)
16
Linear Programming Methods
Method of Solution
In linear optimization problems, there are number of equations and number of variables. (). It means that
there are infinitely many solutions. It is desired to find the best solution among these infinitely many
solutions.
Step 1: Represent the optimization problem in matrix form. (Linear simultaneous equations)
Step 2: Obtain the canonical form (row reduced form) by using Gauss Elimination method. A method of
solving the system consists of reducing the equations to a form known as canonical form (simplification of
17
the system).
Linear Programming Methods
Step 3: Solve the system of equations repeatedly by changing the nonbasic variables. Check each case to see
if it is within a feasible region boundary. Then, the feasible ones are compared for their results in the
objective function. Determine the optimum point.
18
Linear Programming Methods
Elementary Operations
1. Interchange of two rows
19
Linear Programming Methods
Example: Find all the basic solutions corresponding to the system of equations
20
Linear Programming Methods
Canonical Form.
Step 3: Solve the system of equations repeatedly by changing the nonbasic variables.
Case 1 : Let us first select as basic variables and as nonbasic variable. Now, we can write the in
terms of as
𝑥 1=2− 𝑥 4
𝑥 2=1+ 𝑥 4 (nonbasic variable)
(You do not have to do this step. You can directly use previous set of equations. )
1
𝑥 1=1+ 𝑥3
3
1
𝑥 2=2 − 𝑥3 (nonbasic variable)
3
1
𝑥 4=1− 𝑥3
3 Since , it is a basic feasible solution.
22
Linear Programming Methods
Case 3: select as basic variables and as nonbasic variable.Let us use the same equations now but only
change the nonbasic variable.
1
𝑥 1=1+ 𝑥3
3
1
𝑥 2=2 − 𝑥3 (nonbasic variable)
3
1
𝑥 4=1− 𝑥3 Since all are not nonnegative , this basic solution is not feasible.
3
Case 4: select as basic variables and as nonbasic variable. Let us use again the same equations now
but only change the nonbasic variable.
1
𝑥 1=1+ 𝑥3
3
1
𝑥 2=2 − 𝑥3 (nonbasic variable)
3
1
𝑥 4=1− 𝑥3 Since all are not nonnegative , this basic solution is not feasible.
3 23
Linear Programming Methods
Problem: Profit Maximization Problem. Let us solve same problem via Simplex method. (is solved via
graphical approach)
24
Linear Programming Methods
Conversion to standard LP form: All inequalities are in ‘less than or equal to’ forms, which are desired
forms.
𝑥 1 𝑥2
+ + 𝑥 4 =1
28 14
=3 equations ( number of basic
variables).
𝑥 1 𝑥2
+ + 𝑥 5=1 number of variables
14 24
number of nonbasic variable.
25
Linear Programming Methods
Step 1: Represent the system in matrix form
x 1+ x 2+ x 3=16
𝑥 1 𝑥2
+ + 𝑥 4 =1
28 14
𝑥 1 𝑥2
+ + 𝑥 5=1
14 24
26
Linear Programming Methods
Step 2: Convert it to canonical form.
Canonical form
x 1+ x 2+ x 3=16
28
Linear Programming Methods
Problem: Find all basic solutions to the following problem and identify basic feasible solutions in a figure
of the feasible set:
Maximixe
Subject to
29
30
31
Linear Programming Methods
32
Linear Programming Methods
Step 1: Since is unrestricted in sign, split it into its positive and negative signs
Step 3: The right side of the second constraint is negative. Convert it positive by multiplying -1 and change
form into form.
Step 4:Convert the maximization problem into minimization problem. Then convert the inequality
constraints into equality ones by adding slack and surplus nonnegative decision variables.
Maximize Minimize
Where is slack variable
Where is slurplus variable
34
Linear Programming Methods
36
Linear Programming Methods
37
Linear Programming Methods
38
Linear Programming Methods
39
Linear Programming Methods
40
Linear Programming Methods
41
Linear Programming Methods
42
Linear Programming Methods
43