Linear Programming
Linear Programming
LINEAR PROGRAMMING
Learning Objectives
represent geometrically a linear inequality in two
variables.
state a linear programming problem and solve it
geometrically.
consider situations in which a linear
programming problem exists.
Introduction
Linear programming is constrained
optimization, where the constraints and
the objective function are all linear.
It is called "programming" because the
goal of the calculations help you choose a
"program" of action.
Introduction
A linear function in x and y has the form
Z ax by
The function to be maximized or minimized is
called the objective function.
Start with
A manufacturer makes wooden desks (X)
and tables (Y). Each desk requires 2.5
hours to assemble, 3 hours for buffing,
and 1 hour to crate. Each table requires 1
hour to assemble, 3 hours to buff, and 2
hours to crate. The firm can do only up to
20 hours of assembling, 30 hours of
buffing, and 16 hours of crating per week.
Profit is $3 per desk and $4 per table.
Maximize the profit.
10
11
13
Solution
The objective function is Profit =
3x + 4y
x is the number of desks
y is the number of tables
14
Solution
Constraints:
assembling
2.5x + y 20
buffing
3x + 3y 30
crating
x + 2y 16
non-negativity
x ,y 0
15
Solution
The optimum is
at x=4, y=6,
profit=36
16
Example 2
Maximize the objective function Z = 3x + y subject to the
constraints
2x y 8
2 x 3 y 12
x0
y 0
17
Solution:
The feasible region is nonempty and
bounded.
Evaluating Z at these points, we
obtain
Z A 3 0 0 0
Z B 3 4 0 12
Z C 3 3 2 11
Z D 3 0 4 4
Example 3
Example: Product Mix Problem
The N. Dustrious Company produces two products: I and II. The raw
material requirements, space needed for storage, production rates, and
selling prices for these products are given in Table 1.
The total amount of raw material available per day for both products is
15751b. The total storage space for all products is 1500 ft2, and a
19
maximum of 7 hours per day can be used for production.
Example 3
All products manufactured are shipped out of the storage
area at the end of the day. Therefore, the two products must
share the total raw material, storage space, and production
time. The company wants to determine how many units of
each product to produce per day to maximize its total
income.
Solution
The company has decided that it wants to maximize its sale income,
which depends on the number of units of product I and II that it
produces.
Therefore, the decision variables, x1 and x2 can be the number of units
of products I and II, respectively, produced per day.
20
Example 3
The object is to maximize the equation:
Z = 13x1 + 11x2
subject to the constraints on storage space, raw materials,
and production time.
Each unit of product I requires 4 ft2 of storage space and
each unit of product II requires 5 ft2. Thus a total of 4x1 +
5x2 ft2 of storage space is needed each day. This space
must be less than or equal to the available storage space,
which is 1500 ft2. Therefore,
4X1 + 5X2 1500
Similarly, each unit of product I and II produced requires 5
and 3 1bs, respectively, of raw material. Hence a total of 5x l
21
+ 3x2 Ibs of raw material is used.
23
24
25
26