00 Lecture 3 - DM
00 Lecture 3 - DM
1 2
6 7
1
10/10/2023
If both the objective function and the Problem formulation or modeling is the process of
constraints are linear, the problem is referred to translating a verbal statement of a problem into
as a linear programming problem. a mathematical statement.
8 9
8 9
10 11
2
10/10/2023
8 8 (0, 6 1/3)
7 x1 = 6 7
6 6
Shaded region 2x1 + 3x2 = 19
5 contains all 5
4 feasible points 4
for this constraint Shaded
3 3
region contains
2 2 all feasible points
(6, 0) (9 1/2, 0)
1 1 for this constraint
x1 x1
1 2 3 4 5 6 7 8 9 10 12 1 2 3 4 5 6 7 8 9 10 13
12 13
14 15
3
10/10/2023
8 Arbitrary 8
value
7 7 5x1 + 7x2 = 35
(0, 5)
6 Objective Function 6
5x1 + 7x2 = 35 5x1 + 7x2 = 39
5 5
4 4
3 3 5x1 + 7x2 = 42
2 2
(7, 0)
1 1
x1 x1
1 2 3 4 5 6 7 8 9 10 16 1 2 3 4 5 6 7 8 9 10 17
16 17
18 19
4
10/10/2023
A linear program in which all the variables are non- Example 1 in Standard Form
negative and all the constraints are equalities is
Max 5x1 + 7x2 + 0s1 + 0s2 + 0s3
said to be in standard form.
s.t. x1 + s1 = 6
Standard form is attained by adding slack variables 2x1 + 3x2 + s2 = 19
to "less than or equal to" constraints, and by
subtracting surplus variables from "greater than x1 + x 2 + s3 = 8
or equal to" constraints.
x1, x2 , s1 , s2 , s3 > 0
Slack and surplus variables represent the difference
between the left and right sides of the constraints. s1 , s2 , and s3
Max 5x1 + 7x2
are slack variables
s.t. x1 < 6
Slack and surplus variables have objective 2x1 + 3x2 < 19
20 21
function coefficients equal to 0. x1 + x2 < 8
x1 > 0 and x2 >0
20 21
22 23
5
10/10/2023
24 25
LINGO LINGO
26 27
26 27
6
10/10/2023
reduced costs
28 29
28 29
Amount
unused
Max 5x1 + 7x2
s.t. x1 < 6
2x1 + 3x2 < 19 30 31
x1 + x2 < 8
x1 > 0 and x2 > 0
30 31
7
10/10/2023
EXAMPLE 1 EXAMPLE 1
32 33
32 33
34 35
34 35
8
10/10/2023
x1
36 1 2 3 4 5 6 37
36 37
38 39
9
10/10/2023
Solve for the Extreme Point at the Intersection of the Optimal Solution
Two Binding Constraints (slack/surplus value 0) x2
4x1 - x2 = 12 6
x 1+ x 2 = 4 4x1 - x2 > 12
5
Adding these two equations gives: x1 + x2 > 4
4
5x1 = 16 or x1 = 16/5 Optimal Solution:
3 x1 = 16/5, x2 = 4/5,
Substituting this into x1 + x2 = 4 gives: x2 = 4/5 5x1 + 2x2 = 17.6
2
Solve for the Optimal Value of the Objective Function 2x1 + 5x2 > 10
1
5x1 + 2x2 = 5(16/5) + 2(4/5) = 88/5
x1
40 1 2 3 4 5 6 41
40 41
Prepare a graph of the feasible solutions for each of the Example 2 in Standard Form
constraints.
Min 5x1 + 2x2 + 0s1 + 0s2 + 0s3
Determine the feasible region that satisfies all the
s.t. 2x1 + 5x2 - s1 = 10
constraints simultaneously. 4x1 - x2 - s2 = 12
Surplus Variables
Draw an objective function line. x1 + x2 - s3 = 4
42 43
10
10/10/2023
Excess
Amount
44 45
44 45
46 47
46 47
11
10/10/2023
48 49
12