Documente Academic
Documente Profesional
Documente Cultură
6, 2015
389-2216
Email: hongxia.yin@mnsu.edu
(1)
(2)
max(min)
subject to (s.t.)
(3)
(4)
(5)
xj {, }0 j = 1, 2, , n.
(6)
0) or that
Characteristics of LP
? Feasible region of LP: The set in which all the points satisfy the constraints
and signal restriction
Example 1:
max
z = 3x1 + 2x2
subject to (s.t.)
2x1 + x2 100
x1 + x2 80
(7)
x1 40
x1 0
x2 0
(x1 = 40, x2 = 20) is a point in the feasible set, we call it a feasible point.
(x1 = 15, x2 = 70), (x1 = 40, x2 = 20) is not in the feasible set, we
call it an infeasible point.
bounded set; unbounded set; empty set.
a binding constraint.
Other forms of LP
? Brief Form:
max(or min)
s.t.
Pn
j=1 cj xj
Pn
j=1 aij xj
(=, )bi , (i = 1, , m)
(8)
xj 0 (j = 1, , n).
Let
x1
a1j
.
..
c = (c1 , , cn ), x = . , pj = ..
amj
xn
b1
..
, b = . , (9)
bn
a11
a21
A= .
..
am1
a12
...
a22
...
..
.
a1n
a2n
..
.
am2
(10)
. . . amn
? Vector Form:
max(or min) cx
Pn
s.t.
j=1
pj xj (=, )b,
(11)
x 0.
? Matrix-vector Form(A is called the coefficient matrix of the constraints)
max(or min) cx
s.t.
Ax (=, )b,
x 0.
(12)
? Important concepts in LP
decision variable/activity, data/parameter
objective/goal/target
constraint/limitation/requirement
equality/inequality constraint
constraint function/the right-hand side
direction of inequality
coefficient vector/coefficient matrix
nonnegativity constraint
satisfied/violated
10
extreme point
A set of points S is a convex set if the line segment joining any pair of
points in S is wholly contained in S .
For any convex set S , a point is an extreme point if each line segment
that lied completely in S and contains the point P has P as an endpoint of
the line segment.
slack/surplus (introduce later)
11
A Diet problem
12
13
Example 2 Suppose my diet requires that all the food I eat come from one of the
four basic food groups (chocolate cake, ice cream, soda, and cheesecake). At
present, the following four foods are available for consumption: brownies,
chocolate ice cream, cola, and pineapple cheesecake. Each brownie costs 50c,
each scoop of chocolate ice cream costs 20c, each bottle of cola costs 30c, and
each piece of pineapple cheesecake costs 80c. Each day, I must ingest at least
500 calorie, 6 oz of chocolate, 10 oz of sugar, and 8 oz of fat. The nutritional
content per unit of each food is shown in the table below,
Calories
Chocolate oz
sugar (oz)
fatoz
Brownie
400
200
Cola
150
Pineapple cheesecake
500
3:
4:
Sign limitation xi 0, i = 1, 2, 3, 4.
14
15
min
subject to (s.t.)
(13)
A work-scheduling problem
16
17
Day 2=Tue.
13
Day 3=Wed.
15
Day 4=Thur.
19
Day 5=Fri.
14
Day 6=Sat.
16
Day 7=Sun.
11
Each full-time employee must work 5 consecutive days and then receive 2 days
off. Formulate an LP to minimize the number of full-time employees must be hired.
17
Solution:
? Decision Variables:
? Objective Function:
Since each employee begins work on exactly one day of the week, thus we
can obtain the objective function:
z = x1 + x2 + x3 + x4 + x5 + x6 + x7
? Constraints:
The post office must ensure that enough employees are working on each day
of the week. For example, at least 17 employees must be working on Monday.
Who is working on Monday?
18
x1
+ x4 + x5 + x6 + x7 17.
x1 + x2
+ x5 + x6 + x7 13.
x1 + x2 + x3
+ x6 + x7 15.
x1 + x2 + x3 + x4 + x7 19.
Constraint 5: at least 14 employees must be working on Friday
x1 + x2 + x3 + x4 + x5
14.
x2 + x3 + x4 + x5 + x6
16.
19
x3 + x4 + x5 + x6 + x7 11.
? Sign Restrictions:
xi 0, i = 1, , 7.
20
21
min
z = x1 + x2 + x3 + x4 + x5 + x6 + x7
s.t.
x1
+ x4 + x5 + x6 + x7 17
x1 + x2
+ x5 + x6 + x7 13
x1 + x2 + x3
+ x6 + x7 15
x1 + x2 + x3 + x4 + x7 19
x1 + x2 + x3 + x4 + x5
14
x2 + x3 + x4 + x5 + x6
15
x3 + x4 + x5 + x6 + x7 11
xi 0, i = 1, , 7.
(14)
x1 = 2, x2 = 3, x3 = 2, x4 = 8, x5 = 0, x6 = 4, x7 = 5. and z = 25.
22
Integer programming model ( in which the variables are integer) can be used
the solve this problem. An optimal solution to the post office problem is
x1 = 4, x2 = 4, x3 = 2, x4 = 6, x5 = 0, x6 = 4, x7 = 3, and z = 23.
Notice: There is no way that the optimal linear programming solution could have
been rounded to obtain the optimal all-integer solution.
23
24
Homework
max
z = x1 + x2
s.t.
x1 + x2 4
(15)
x1 x2 5
x1 , x2 0.
max
z = 4x1 + x2
s.t.
8x1 + 2x2 16
5x1 + 2x2 12
x1 , x2 0.
(16)
max
z = x1 + 3x2
s.t.
x1 x2 4
25
(17)
x1 + 2x2 4
x1 , x2 0.
max
z = 3x1 + x2
s.t.
2x1 + x2 6
x1 + 3x2 9
x1 , x2 0.
(18)
Homework:
In the post office example (Example 2 of Lecture 2), suppose that each full-time
employee works 8 hours per day. Thus, Mondays requirement of 17 workers may
be viewed as a requirement of 8(17)=136 hours. The post office may meet its
daily labor requirements by using both full-time and part-time employees. during
each week, a full-time employee works 8 hours a day for five consecutive days,
and a part-time employee works 4 hours a day for five consecutive days. A
full-time employee costs the post office $15per hour, whereas a part-time
employee (with reduced fringe benefits) costs the post office only 10 per hour.
Union requirements limit part-time labor to25% of weekly labor requirements.
Formulate an LP to minimize the post offices weekly labor costs.
26