2-Linear Programming Formulation
2-Linear Programming Formulation
PROGRAMMING:
Model Formulation
1
Mathematical Programming
A family of tools designed to help solve
managerial problems in which the
decision maker must allocate scarce (or
limited) resources among various
activities to optimize a measurable
goal.
2
Characteristics of Mathematical
Programming
1. A limited quantity of economic resources (such as labor,
capital, etc.) is available for allocation.
2. The resources are used in the production of products or
services.
3. There are two or more ways in which the resources can be
used. Each is called a solution or a program. (Usually the
number of ways is large, or even infinite.)
4. Each activity (product or service) in which the resources are
used yields a return (or reward) in terms of the stated goal.
5. The allocation is usually restricted by several limitations or
requirements called constraints.
3
Assumptions in Mathematical
Programming
1. Returns from different allocations can be
compared; that is, they can be measured by a
common unit (such as dollars or utility).
2. All data are known with certainty.
3. The resources are to be used in the most
economical manner.
4
In the case of LINEAR PROGRAMMING,
two additional assumptions are:
(Linear Programming is a class of mathematical
programming models concerned with the efficient
allocation of limited resources to known activities
with the objective of meeting a desired goal. The distinct
characteristic of LP models is that the functions
representing the objective and the constraints are linear. )
4. The return from any allocation is independent of other
allocations.
5. The total return is the sum of the returns yielded by the
different activities.
5
FORMULATION: THE LINEAR
PROGRAMMING MODEL
The LP model is composed of three components:
9
General Format of LP Models
max (or min) z = c1x1 + c2x2 + … + cnxn
= n
c
j 1
j xj
subject to:
a11x1 + a12x2 + … + a1nxn (≤, =, ≥) b1
a21x1 + a22x2 + … + a2nxn (≤, =, ≥) b2
.
.
am1x1 + am2x2 + … + amnxn (≤, =, ≥) bm
x1, x2, …, xn≥ 0
10
Structural Constraint General
Form:
ai1x1 + ai2x2 + … + ainxn (≤, =, ≥) bi for i = 1,2,…, m
where
x1, x2, …, xn = decision variables (unknowns)
c1, c2, …, cn = objective function coefficients
aij = technological coefficients or input/output
coefficients (rate at which resources are used)
b1, b2, …, bn = right hand coefficients (available
resources or capacities)
11
Properties of LP Problems
1. All LP problems seek to maximize or minimize
some quantity.
2. All LP problems have restrictions or
constraints that limit the degree to which the
objective can be pursued.
3. There must be alternative courses of action to
choose from.
4. The objective and constraints in LP problems
must be expressed in terms of linear equations or
inequalities.
12
Operations Research/ Operational Research
13
LP PROBLEM FORMULATION
1. List concerns
2. Define decision variables
3. Formulate objective function
4. List constraints which define decision
variables
5. Remember the non-negativity constraint
14
Two of the most common allocation problems
15
Two of the most common allocation problems
16
EXAMPLE: THE PRODUCT-MIX
PROBLEM
Jules completed the development of a new
Plasma television projection system for the
NS Corporation. “They’ll be installing the
system on two models for initial sales next
week,” he was saying to his wife Jillien. “I
wish we had a larger workforce, more
machine time, and better marketing
capabilities; I’m sure we could make
considerably more profit. But even as it is,
we don’t know how much of each model to
produce.”
17
CONT………EXAMPLE: THE PRODUCT-MIX
PROBLEM
21
In summary,
the problem is to find the best daily production plan so that
the total profit will be maximized. The problem can now be
written in canonical form as follows:
22
EXAMPLE: THE BLENDING
PROBLEM
Jules’s wife Jillien was thinking about her problem at
the Tom Paint Company. A new, expensive, special-
purpose paint, Moongold, was becoming very
popular, and the production manager had asked
Jillien to see if she could find a combination of two
new ingredients, code named Alpha and Beta, that
would result in an equivalent brilliance and hue,
but at less cost than the original ingredients. In
preparing Moongold paint, it is required that the
paint have a brilliance rating of at least 300
degrees and a hue level of at least 250 degrees.
23
CONT…..EXAMPLE: THE BLENDING
PROBLEM
Brilliance and hue levels are determined by 2
ingredients: Alpha and Beta. Both Alpha and Beta
contribute equally to the brilliance rating, one
ounce (dry weight) of either producing one degree
of brilliance in one drum of paint. However, the
hue is controlled entirely by the amount of Alpha,
one ounce of it producing 3 degrees of hue in one
drum of paint. The cost of Alpha is 45 cents per
ounce, and the cost of Beta is 12 cents per ounce.
Assuming that the objective is to minimize the cost
of the ingredients, then the problem is to find the
quantity of Alpha and Beta to be included in the
preparation of each drum of paint.
24
CONT…..EXAMPLE: THE BLENDING PROBLEM
26
In summary,
the blending problem is formulated as follows.
Find x1 and x2 such that:
27
EXAMPLES OF
APPLICATION
S
28
Example -Blending Problem
The Kayan pharmaceutical of Arkadia produces a weight loss drug
called Manizac. Manizac is made of 3 chemicals and requires two
active ingredients, called A and B, found in these chemicals. The
cost per kg of each chemical and the amount of each active
ingredient (by weight) in each chemical is given as
Chemical Cost A B
1 PhP 14 0.05 0.06
2 13 0.06 0.04
3 10 0.11 0.02
The FDA requires that Manizac must consist of, by weight, at least
8% of ingredient A and 5% of ingredient B. Assume that the weight
is conserved during the drug production. Formulate a linear
program for Kayan that will minimize raw material costs to
produce 1 kg of Manizac. 29
LP Formulation
Decision Variable
Let X1, X2 and X3 be the amount (in kg) of chemicals 1,2 and 3 used in the
production
Objective Function
Min Z = 14X1 + 13X2 + 10X3
Subject to:
X1 + X 2 + X 3 = 1
0.05X1 + 0.06X2 + 0.11X3 ≥ 0.08(X1 + X2 + X3 )
0.06X1 + 0.04X2 + 0.02X3 ≥ 0.05(X1 + X2 + X3 )
X1, X2, X3 ≥ 0
30
Example-Product Mix Problem
Lara Valves produces valves. Two alternative
production lines are available. The company just
received an order for producing 1000 Mark I
valves. Line 1 can produce the valves at a rate of
15 minutes for each valve. The production
capacity on Line 2 is 5 valves per hour. Line 1 is
available, for this order, for not more than 200
hours at a cost of PhP 8 per hour. Line 2 is
available, for this order, for not more than 170
hours at a cost of PhP 5 per hour. (This can be
formulated in two different ways.)
31
LP Formulation
METHOD 1 METHOD 2
Decision Variable
Decision variable
X1 = hrs on line 1,
X2 = hrs on line 2 Y1 = # valves line 1,
Objective Function Y2 = # valves line 2
Min Z = PhP 8X1 + 5X2
Objective Function
Subject to:
4X1 + 5X2 = 1000
Min Z = 2Y1 + 1Y2
X1 ≤ 200 Subject to:
X2 ≤ 170 Y1 + Y2 = 1000
X1, X2 ≥ 0
Y1 ≤ 800
Y2 ≤ 850
Y1, Y2 ≥ 0
32
Example -Budget Problem
Voice Fair Co. advertises its weekly sales in newspapers, television,
and radio. Each dollar spent in advertising in newspapers is
estimated to reach an exposure of 12 buying customers; each
dollar in TV reaches an exposure of 15 buying customers; and
each dollar in radio reaches an exposure of 10 buying customers.
The company has an agreement with all three media services
according to which it will spend not less than 20% of its total
money actually expended in each medium. Further, it is agreed
that the combined newspaper and TV budget will not be larger
than three times the radio budget. The company has just decided
to spend no more than PhP 17,000 on advertising. How much
should the company budget for each medium if it is interested in
reaching as many buying customers as possible?
33
LP Formulation
Decision Variable
Let X1 = Peso (PhP) spent in newspaper,
X2 = Peso spent in television,
X3 = Peso spent in radio
Objective Function
Max Z = 12X1 + 15X2 + 10X3
Subject to:
X1 + X2 + X3 ≤ 17,000
X1 ≥ .2(X1 + X2 + X3)
X2 ≥ .2(X1 + X2 + X3)
X3 ≥ .2(X1 + X2 + X3)
X1 + X2 ≤ 3X3
X1, X2, X3 ≥ 0
34
Example- A CARGO PLANE
A cargo plane has three compartments for storing cargo: front, center and rear.
These compartments have the following limits on both weight and space:
Compartment Weight capacity (tons) Space capacity (cubic meters)
Front 10 6800
Centre 16 8700
Rear 8 5300
Furthermore, the weight of the cargo in the respective compartments must be the
same proportion of that compartment's weight capacity to maintain the balance of
the plane.
The following four cargoes are available for shipment on the next flight:
Cargo Available Weight Volume Profit
(tons) (cubic meters/tons) ($/tons)
C1 18 480 310
C2 15 650 380
C3 23 580 350
C4 12 390 285
Any proportion of these cargoes can be accepted. The objective is to determine how
much (if any) of each cargo C1, C2, C3 and C4 should be accepted and how to
distribute each among the compartments so that the total profit for the flight is
maximized 35
LP Formulation
Decision Variables
We need to decide how much of each of the four cargoes to put in each of the three
compartments. Hence let:
xij be the number of tonnes of cargo i (i=1,2,3,4 for C1, C2, C3 and C4 respectively) that is put into
compartment j (j=1 for Front, j=2 for Centre and j=3 for Rear) where x ij ≥ 0 i=1,2,3,4; j=1,2,3
Objective Function
maximize Z= 310[x11+ x12+x13] + 380[x21+ x22+x23] + 350[x31+ x32+x33] + 285[x41+ x42+x43]
Subject to the ff Constraints
cannot pack more of each of the four cargoes than we have available
x11 + x12 + x13 ≤ 18
x21 + x22 + x23 ≤ 15
x31 + x32 + x33 ≤ 23
x41 + x42 + x43 ≤ 12
the weight capacity of each compartment must be respected
x11 + x21 + x31 + x41 ≤ 10
x12 + x22 + x32 + x42 ≤ 16
x13 + x23 + x33 + x43 ≤ 8
the volume (space) capacity of each compartment must be respected
480x11 + 650x21 + 580x31 + 390x41 ≤ 6800
480x12 + 650x22 + 580x32 + 390x42 ≤ 8700
480x13 + 650x23 + 580x33 + 390x43 ≤ 5300
the weight of the cargo in the respective compartments must be the same proportion of that
compartment's weight capacity to maintain the balance of the plane 36
[x + x + x + x ]/10 = [x + x + x + x ]/16 = [x + x + x + x ]/8
Example -Production planning problem
A company manufactures four variants of the same product and in the final part
of the manufacturing process there are assembly, polishing and packing
operations. For each variant the time required for these operations is shown
below (in minutes) as is the profit per unit sold.
Assembly Polish Pack Profit (PhP)
Variant 1 2 3 2 1.50
2 4 2 3 2.50
3 3 3 2 3.00
4 7 4 5 4.50
Given the current state of the labor force the company estimate that, each year,
they have 100000 minutes of assembly time, 50000 minutes of polishing time
and 60000 minutes of packing time available. How many of each variant should
the company make per year and what is the associated profit?
Suppose now that the company is free to decide how much time to devote to
each of the three operations (assembly, polishing and packing) within the total
allowable time of 210000 (= 100000 + 50000 + 60000) minutes. How many of
each variant should the company make per year and what is the associated
profit?
37
LP FORMULATION
Decision Variables
Let:
xi be the number of units of variant i (i=1,2,3,4) made per year
Tass be the number of minutes used in assembly per year
Tpol be the number of minutes used in polishing per year
Tpac be the number of minutes used in packing per year
Objective Function
Presumably to maximize profit - hence we have
Maximize Z = 1.5x1 + 2.5x2 + 3.0x3 + 4.5x4
38
Constraints
(a) operation time definition
Tass = 2x1 + 4x2 + 3x3 + 7x4 (assembly)
Tpol = 3x1 + 2x2 + 3x3 + 4x4 (polish)
Tpac = 2x1 + 3x2 + 2x3 + 5x4 (pack)
(b) operation time limits
The operation time limits depend upon the situation being considered. In the first situation,
where the maximum time that can be spent on each operation is specified, we simply have:
Tass ≤ 100000 (assembly)
Tpol ≤ 50000 (polish)
Tpac ≤ 60000 (pack)
In the second situation, where the only limitation is on the total time spent on all operations, we
simply have:
Tass + Tpol + Tpac ≤ 210000 (total time)
39
ADVANTAGES AND LIMITATIONS OF LP
Advantages:
Finds an optimal solution(s).
Fast determination of the solution, especially if
a computer is used.
Finds solutions to a wide variety of problems
that can be formulated as an LP.
Finds solutions (efficiently) to problems with a
very large or infinite number of possible
solutions.
Provides a natural sensitivity analysis.
40
ADVANTAGES AND LIMITATIONS OF LP
Limitations of LP due to Assumptions:
43