Professional Documents
Culture Documents
Introduction
September 4, 2012
Operations Research
OR Models
Characteristics
Decision Alternatives
OR Models
General Format
subject to
Constraints
OR Models
An Example
We are to produce soda cans with a volume of 355 ml and with smallest
surface. Determine
I
Decision Alternatives
Restrictions (Constraints)
OR Models
An Example Solution
Standard OR Tools
Queueing Theory
Inventory Theory
etc. . .
During the current production time, 240 hours of carpentry time are
available, and 100 hours in painting and varnishing time are available.
Each table sold yields a profit of $7; each chair produced is sold for a $5
profit.
Determine the best possible combination of tables and chairs in order to
reach the maximum profit.
Toy Model
+4x2
+2x2
240
100
with xi 0, i = 1, 2.
1 We
Presence of constraints
Certainty
Proportionality
Additivity
Divisibility
Nonnegative variables
Problem 1
The Apex Television Company has to decide on the number of 27- and
20-inch sets to be produced at one of its factories. Market research
indicates that at most 40 of the 27-inch sets and 10 of the 20-inch sets
can be sold per month. The maximum number of work-hours available is
500 per month. A 27-inch set requires 20 work-hours and a 20-inch set
requires 10 work-hours. Each 27-inch set sold produces a profit of $120
and each 20-inch set produces a profit of $80. A wholesaler has agreed to
purchase all the television sets produced if the numbers do not exceed
the maxima indicated by the market research.
Formulate a linear programming model for this problem.
Problem 1
Solution
x2
+10x2
40
10
500
Problem 2
Dwight is an elementary school teacher who also raises pigs for
supplemental income. He is trying to decide what to feed his pigs. He is
considering using a combination of pig feeds available from local
suppliers. He would like to feed the pigs at minimum cost while also
making sure each pig receives an adequate supply of calories and
vitamins. The cost, calorie content, and vitamin content of each feed are
given in the table below.
Contents
Calories (per pound)
Vitamins (per pound)
Cost (per pound)
Feed Type A
800
140 units
$0.40
Feed Type B
1,000
70 units
$0.80
Each pig requires at least 8,000 calories per day and at least 700 units of
vitamins. A further requirement (constraint) is that no more than
one-third of the diet (by weight) can consist of Feed Type A, since it
contains an ingredient which is toxic if consumed in too large a quantity.
Formulate a linear programming model for this problem.
Problem 2
Solution
Let A and B be the quantity (pounds) of Feed Type A and Feed Type B,
respectively, used per day.
The mathematical formulation is
A Diet Problem
Winston, Chapter 3
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
$0.50, each scoop of chocolate ice cream costs $0.20, each bottle of cola
costs $0.30 and each piece of pineapple cheesecake costs $0.80. Each
day, I must ingest at least 500 calories, 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.
Formulate a linear programming model that can be used to satisfy my
daily nutritional requirements at minimum cost.
A Diet Problem
Winston, Chapter 3
Brownie
Chocolate Ice Cream
(1 scoop)
Cola (1 bottle)
Pineapple
Cheesecake
Calories
400
Chocolate (oz)
3
Sugar (oz)
2
Fat (oz)
2
200
150
2
0
2
4
4
1
500
The demand for ice cream during the three summer months (June, July
and August) at All-Flavors Parlor is estimated at 500, 600 and 400
20-gallon cartons, respectively. Two wholesalers, 1 and 2, can supply
All-Flavors with its ice cream. Although the flavors from the two
suppliers are different, they are interchangeable. The maximum number
of cartons either supplier can provide is 400 per month. Also, the prices
each supplier charges from one month to the next varies, according to
the schedule
June July August
Supplier 1 $100 $110
$120
Supplier 2 $115 $108
$125
(price per carton)
Problem 3.4-8, HL
Web Mercantile sells many household products through an online
catalog. The company needs substantial warehouse space for storing its
goods. Plans are now being made for leasing warehouse storage space
over the next 5 months. Just how much space will be required in each of
these months is known. However, since these space requirements are
quite different, it may be most economical to lease only the amount
needed each month, on a month-by-month basis. On the other hand, the
additional cost for leasing space for additional months is much less than
for the first month, so it may be less expensive to lease the maximum
amount needed for the entire 5 months. Another option is the
intermediate approach of changing the total amount of space leased (by
adding a new lease and/or having an old lease expire) at least once, but
not every month. The space requirements and the leasing costs for the
various leasing periods are as follows.
Problem 3.4-8, HL
Month
1
2
3
4
5
Required space
(sq ft)
30,000
20,000
40,000
10,000
50,000
Leasing period
(months)
1
2
3
4
5
Cost per sq ft
Leased
$65
$100
$135
$160
$190
Transportation Problem
Orchard 1
Orchard 2
Orchard 3
Retailer 1
$1
$2
$1
Retailer 2
$2
$4
$3
Retailer 3
$3
$1
$5
Retailer 4
$2
$2
$3
Orchard 1
Orchard 2
Orchard 3
Retailer 1
$1
$2
$1
Retailer 2
$2
$4
$3
Retailer 3
$3
$1
$5
Retailer 4
$2
$2
$3
Problem 3.4-9, HL
Larry Edison is the director of the Computer Center for Buckly College.
He now needs to schedule the staffing of the center. It is open from 8AM
until midnight. Larry has monitored the usage of the center at various
time of the day and determined that the following number of consultants
are required:
Time of day
8AM Noon
Noon 4PM
4PM 8PM
8PM Midnight
Problem 3.4-9, HL
Investment Problem
Taha, Problem 1, Problem Se 2.3C
Investment Problem
Taha, Problem 1, Problem Se 2.3C
Project
Year 1
Year 2
Year 3
Year 4
1
2
3
4
5
6
Available
Funds ($1000)
10.5
8.3
10.2
7.2
12.3
9.2
60
14.4
12.6
14.2
10.5
10.1
7.8
70
2.2
9.5
5.6
7.5
8.3
6.9
35
2.4
3.1
4.2
5
6.3
5.1
20
Return
($1000)
32.4
35.8
17.75
14.9
18.2
12.35
Investment Problem
Taha, Problem 1, Problem Se 2.3C
Blending Model
The Metalco Compan desires to blend a new alloy of 40 percent zinc, 35
percent tin, and 24 percent lead from several available alloys having the
following properties:
Table: Alloy
Property
% zinc
% tin
% lead
Cost ($/lb)
1
60
10
30
22
2
25
15
60
20
3
45
45
10
25
4
20
50
30
24
5
50
40
10
27
Transportation Model
Taha, Problem Set 5.1A, Problem 6
Three electric power plants with capacities of 25, 40, and 30 million kWh
supply electricity to three cities. The maximum demands at the three
cities are estimated at 30, 35, and 25 million kWh. The price per million
kWh at the three cities is given by the table below:
Table: Price/Million kWh
City 1
City 2
City 3
$600
$320
$500
$700
$300
$480
$400
$350
$450
Transportation Model
Taha, Problem Set 5.2A, Problem 6
The demand for a special small engine over the next five quarters is 200,
150, 300, 250, and 400 units, respectively. The manufacturer supplying
the engine has different production capacities estimated at 180, 230, 430,
300, and 300 units for the five quarters. Backordering is not allowed, but
the manufacturer can use overtime to fill the immediate demand, if
necessary. The overtime capacity for each period is half the regular
capacity.
The production costs per unit for the five periods are $100, $96, $116,
$102, and $106, respectively. The overtime production costs are 50%
higher than the regular production costs.
If an engine is produced now for use in later periods, an additional
storage cost of $4per engine per period is incurred.
Formulate the problem as a transportation model.
A Multiperiod Model
A Multiperiod Model
The number of trained employees that the company needs in the next
four months (January through April) are:
I
January: 100
February: 150
March: 200
April: 250
A Multiperiod Model
A Multiperiod Model
Formulation Decision Variables
The decision variables are the number of trained operators who act as
instructors and the number of idle trained operators. In any given period
(month) the number of trained operators working the machines is given
by the corresponding monthly requirements.
So, we define xT ,j as the number of trained operators employed as
instructors, and xId,j as the number of trainde operators who are idle in
month j = January (J), February (F), March (M) and April (A).
A Multiperiod Model
Formulation Constraints
(January)
(February)
(March)
(April)
A Multiperiod Model
Formulation Objective Function
The objective function need not include the payroll cost of the trained
employees working the machines because it is a constant cost. Pertinent
costs are
I
A Multiperiod Model
Formulation The LP Model
+xId,J
xT ,F
7xT ,F
+7xT ,F
xId,F
xT ,M
+7xT ,M
xId,M
= 30
= 20
= 70
= 120
Aircraft type
Capacity (passengers)
1
50
2
30
3
20
Daily number of customers
Number of aircrafts
5
8
10
Associated costs, including penalties for losing customers because of space unavailability, are:
Aircraft type
1
2
3
Penalty ($) per lost customer
Develop a linear model for determining the optimum allocation of aircrafts to routes.
Minimize z =
1000(3x11
800(4x21 )
600(5x31 )
40S1
+1100(2x12 )
+900(3x12 )
+800(5x32 )
+50S2
+1200(2x13 )
+1000(3x13 )
+800(4x13 )
+45S3
+1500(x14 )
+1000(2x24 )
+900(2x14 )
+70S4
x1j 5,
j=1
4
X
j=1
x2j 8,
4
X
x3j 10
j=1
Nonnegativity: xij 0, Sj 0, i = 1, 2, 3, j = 1, 2, 3, 4.
Blending Models
Hawaii Sugar Company produces brown sugar, processed (white) sugar,
powdered sugar and molasses from sugar cane syrup. The company
purchases 4000 tons of syrup weekly and is contracted to deliver at least
25 tons weekly of each type of sugar. The production process starts by
manufacturing brown sugar and molasses from the syrup. A ton of syrup
produces 0.3 tons of brown sugar and 0.1 ton of molasses. White sugar is
produced by processing brown sugar; it takes 1 ton of brown sugar to
produce 0.8 tons of white sugar. Powdered sugar is produced from white
sugar through a special grinding process that has a 95% conversion
efficiency (1 ton of white sugar produces 0.95 ton of powdered sugar).
The profit per ton for brown sugar, white sugar, powdered sugar and
molasses are $150, $200, $230 and $35, respectively. Formulate the
problem of determining the optimal weekly production schedule as a
linear program.
Blending Models
Solution
Let x1 = tons of brown sugar produced per week; let x2 = tons of white
sugar produced per week; let x3 = tons of powdered sugar produced per
week; and let x4 = tons of molasses produced per week.
A schematic of the production process is given below:
x1
x1+(1/(0.8)(x2+(x3/0.95)))
x2+(x3/0.95)
x2
x3/0.95
1:0.8
1:0.95
x3
1/(0.8)(x2+(x3/0.95))
0.3
One ton
of syrup
0.1
x4
Blending Models
Solution
Mixing Model
Two alloys are made from four metals M1, M2, M3 and M4 according to
the following specifications
Alloy
A
Specifications
At most 80% of M1
At most 30% of M2
At least 50% of M4
Between 40% and 60% 0f M2
At least 30% of M3
At most 70% of M4
Selling price
$200
$300
Mixing Model
The four metals, in turn, are extracted from three ores according to the
following data:
Ore
1
2
3
Max Qty
(tons)
1000
2000
3000
M1
20
10
5
Constituents (%)
M2
M3
10
30
20
30
5
70
M4
30
30
20
Others
10
10
0
Develop a linear programming model for determining the optimum alloy production.
Price/ton
($)
30
40
50
Mixing Model
Solution
September 4, 2012
Production Models
Production Models
Tool
Production type
Wrenches
Regular
Overtime
Subcontracting
Regular
Overtime
Subcontracting
Chisels
Weekly production
range (units)
0 550
551 800
801
0 620
621 900
901
Production Models
Solution
Cr 620
Wo 250,
Co 280
Wr + Wo + Ws 1500,
All variables are 0.
Cr + Co + Cs 1200
Investment Problem
Blending Model
Taha, Section 2.3
Blending Model
SolutionObjective Function
Blending Model
SolutionConstraints
Raw material.
Blending Model
SolutionConstraints
Raw Material
xs 200,
xg 100,
xa 150
Transformation
xsA +xsB = 1500xs ,
xA = xsA + xgA ,
Proportion rates
xsA = xgA ,
xsB = xgB ,
xgB = 0.5xaB ,
3xgC = 2xaC
Blending Model
Taha, Section 2.3Extra Homework
Same as in the previous problem, except that we are using metric units.
Consider that one liter of fruit juice is approximately one kilogram. The
cans hold 355 ml. Modify the LP model for this new situation.
0
$1
$0
$1
$1
$0
1
+$0.50
$1
+$1.20
$0
$0
2
+$1
+$0.50
$0
$0
$1
3
$0
+$1
$0
+$1.9
+$1.50
Operator
K.C.
D.H.
H.B.
S.C.
K.S.
N.K.
Wage Rate
$10.00/hour
$10.10/hour
$9.90/hour
$9.80/hour
$10.80/hour
$11.30/hour
Mon
6
0
4
5
3
0
Tue
0
6
8
5
0
0
Wed
6
0
4
5
3
0
Thurs
0
6
0
0
8
6
Fri
6
0
4
5
0
2
There are six operators (four undergraduate students and two graduate
students). They all have different wages because of their experience in
with computers and in their programming ability. The above table shows
their wage rates, together with the maximum number of hours that each
can work each day.
Let yij the number starting their working day on day i and having their
two days off on day j, j 6= i. The total number starting on day i
(regardless of when they have their days off) is
xi =
7
X
yij , j 6= i
j=1
Blending Model
Shale Oil, located on the island of Aruba, has a capacity of 600,000
barrels of crude oil per day. The final products from the refinery include
two types of unleaded gasoline: regular and premium. The refining
process encompasses three stages: (1) a distillation tower that produces
feedstock; (2) a cracker unit that produces gasoline stock by using a
portion of the feedstock produced from the distillation tower; and (3) a
blender unit that blends the gasoline stock from the cracker unit and the
feedstock from the distillation tower.
Both regular and premium gasoline can be blended from either the
feedstock or the gasoline stock at different production costs. The
company estimates that the net profit per barrel of regular gasoline is
$7.70 and $5.20, depending on whether it is blended from feedstock or
from gasoline stock. The corresponding profit values for the premium
grade are $10.40 and $12.30.
Blending Model
Blending Model
Solution
R x11
5:1
Cracker
Distillation
Crude
x12
Blender
R x21
x22
Blending Model
SolutionLP Model
Each week, 200 barrels of C1, at $2/bbl, and 300 barrels of C2, at
$3/bbl, may be purchased. All gasoline produced can be sold at the
following per-barrel prices: G1, $9; G2, $10; G3, $24.
Formulate an LP whose solution will maximize total profit (revenue
minus costs). Assume that only 100 hours are available at the catalytic
cracker each week.
Output
Hours of
process
Barrels of
Oil
Barrels of
gasoline
Barrels of
gasoline
x1
2o1, 3o2
2g1, g2
x2
1o1, 3o2
3g2
x3
2o2
3g2
2g3
Thus:
o1 = 2x1 + x2
o2 = 3x1 + 3x2 + 2x3
g2 + 3x3 = x1 + 3x2
o1 < 200
o2 < 300
x1 + x2 + x3 < 100
g1 = 2x1
g3 = 2x3
All variables are positive, or zero.
Blending Model
Winston, Section 3.8
SunCo Oil manufactures three types of gasoline (G1, G2, G3). Each type
is produced by blending three tys of crude oil (C1, C2, C3). The sales
price per barrel (bbl) of gasoline and the purchase price per bbl of crude
oil are given in the table below. SunCo can purchase 5000 bbl of each
type of crude daily.
The three types of crude differ in their octane rating and sulfur content.
The octane ratings and sulfur content of each type of crude is given in a
second table below. The crude oil blended to form G1 must have an
average (per volume) octane rating of at least 10 and contain at most
1% sulfur. The crude oil blended to form G2 must have an average
octane rating of at least 8 and contain at most 2% sulfur. The crude oil
blended to form G3 must have an average octane rating of at least 6 and
contain at most 1% sulfur. It costs $4 to transform one barrel of oil into
one barrel of gasoline, and SunCos refinery can produce up to 14,000
barrels of gasoline daily.
Blending Model
Winston, Section 3.8
Sales Price/bbl
$70
$60
$50
C1
C2
C3
Purchase Price/bbl
$45
$35
$25
C1
C2
C3
Octane Rating
12
6
8
Sulfur Content
0.5%
2.0%
3.0%
j = 1, 2, 3
Demand G1
Demand G2
Demand G3
Supply C1
Supply C2
Supply C3
2 This
constraint is redundant
Blending Model
Extra Homework
Consider the same problem as above. Assume, moreover, that SunCo can
increase the sale of the gasoline it sells by advertising. More precisely, for
each dollar spent in advertising a particular type of gasoline, the daily
demand will increase by the following amounts: 10 barrels, for G1; 15
barrels for G2; and 12 barrels, for G3. For example, if SunCo spends $10
in advertising G2, then its demand will increase by 10(15) = 150 barrels.
Modify the above LP model to take into account this extra assumption.