BAB 2
PEMROGRAMAN LINIER
(LINEAR PROGRAMMING)
INTRODUCTION 2
xj ≥ 0, j = 1,…,n
Komponen Model PL 4
• Satu mainan tentara dijual seharga $27 dan memerlukan $10 untuk material. Setiap
mainan tentara memerlukan biaya tenaga kerja dan biaya produksi sebesar $14.
• Satu mainan kereta dijual seharga $21 dan memerlukan $9 untuk material. Setiap
kereta memerlukan biaya tenaga kerja dan biaya produksi sebesar $10.
• Perusahaan memerlukan 2 tipe keahlian dari tenaga kerja, carpentry dan finishing.
Satu mainan tentara memerlukan 1 jam untuk carpentry dan 2 jam untuk finishing.
Satu mainan kereta memerlukan 1 jam carpentry dan 1 jam finishing.
• Tiap minggu, perusahaan hanya memiliki waktu kerja 80 jam untuk carpentry dan
100 jam untuk finishing.
• Permintaan pasar dari mainan kereta dalam setiap minggu jumlahnya tak terbatas,
namun mainan tentara hanya memiliki permintaan pasar sebesar 40 mainan tiap
minggu.
2. Fungsi Obyektif:
Pada model PL, pengambil keputusan pada
umumnya berusaha untuk memaksimalkan
keuntungan (revenue atau profit) atau
meminimalkan biaya (cost) sebagai fungsi dari
variable keputusan.
Fungsi yang harus dimaksimalkan atau
diminimalkan disebut fungsi obyektif atau fungsi
tujuan.
Pada contoh ini, perusahaan akan memaksimalkan
keuntungan bersih (net profit) per minggu, yang
dapat didefinisikan sebagai:
Hasil Penjualan (Revenue) – Biaya Material – Biaya
Tenaga Kerja dan Biaya Produksi
SOLUTION: GIAPETTO WOODCARVING INC.,
8
3. Batasan:
Logikanya, fungsi obyektif (keuntungan maksimal)
akan diperoleh perusahaan jika nilai X1 dan X2
semakin besar. Artinya perusahaan akan
berusaha (jika dimungkinkan) memproduksi X1
dan X2 sebanyak-banyaknya.
Namun sayangnya, X1 dan X2 hanya dapat
diproduksi secara terbatas karena beberapa
keterbatasan (biasa disebut sebaga constraints):
Batasan 1: setiap minggu, waktu yang tersedia
untuk carpentry tidak lebih dari 80 jam.
Batasan 2: setiap minggu, waktu yang tersedia
untuk finishing tidak lebih dari 100 jam.
Batasan 3: setiap minggu, permintaan mainan
tentara tidak lebih dari 40 buah.
SOLUTION: GIAPETTO WOODCARVING INC.,
10
Problem
Model PL
Solusi
14
WHAT IS LINEAR PROGRAMMING PROBLEM (LP)?
Example
Formulate a linear programming model for this
problem, to determine how many containers of
each product to produce tomorrow in order to
maximize the profits. The company makes four types
of juice using orange, grapefruit, and pineapple.
The following table shows the price and cost per
quart of juice (one container of juice) as well as the
number of kilograms of fruits required to produce
one quart of juice.
EXAMPLE (CONT.)
ON HAND THERE ARE 400 KG OF ORANGE, 300 KG. OF
GRAPEFRUIT, AND 200 KG. OF PINEAPPLES.
THE MANAGER WANTS GRAPEFRUIT JUICE TO BE USED
FOR NO MORE THAN 30 PERCENT OF THE NUMBER OF
CONTAINERS PRODUCED. HE WANTS THE RATIO OF
THE NUMBER OF CONTAINERS OF ORANGE JUICE TO
THE NUMBER OF CONTAINERS OF PINEAPPLES JUICE
TO BE AT LEAST 7 TO 5. PINEAPPLES JUICE SHOULD
NOT EXCEED ONE-THIRD OF THE TOTAL PRODUCT.
PRODUCT MIX PROBLEM 18
Solution
Decision variables
X1 = # of containers of orange juice
X2 = # of containers of grapefruit juice
X3 = # of containers of pineapple juice
X4 = # of containers of All-in-one juice
Objective function
Max Z = 2 X1 + 1.5 X2 + 1 X3 + 2 X3
Constraints
Example
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 50 cents, each scoop
of chocolate ice cream costs 20 cents, each bottle of
cola costs 30 cents, and each piece of pineapple
cheesecake costs 80 cents. 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 following table. Formulate a linear
programming model that can be used to satisfy my
daily nutritional requirements at minimum costs.
20
DIET PROBLEM
Calories Chocolate Sugar Fat
Solution
• Decision variables: as always, we begin by
determining the decisions that must be made
by the decision maker: how much of each food
type should be eaten daily. Thus, we define the
decision variables:
X1 = number of brownies eaten daily
X2 = number of scoops of chocolate ice cream
eaten daily
X3 = number of bottles of cola drunk daily
X4 = number of pieces of pineapple cheesecake
eaten daily
DIET PROBLEM 22
Example
The Low Knock Oil company produces two grades of cut rate
gasoline for industrial distribution. The grades, regular and
economy, are produced by refining a blend of two types of crude
oil, type X100 and type X220. each crude oil differs not only in cost
per barrel, but in composition as well. The accompanying table
indicates the percentage of crucial ingredients found in each of
the crude oils and the cost per barrel for each. Weekly demand for
regular grade of Low Knock gasoline is at least 25000 barrels, while
demand for the economy is at least 32000 barrels per week. At
least 45% of each barrel of regular must be ingredient A. At most
50% of each barrel of economy should contain ingredient B. the
Low Knock management must decide how many barrels of each
type of crude oil to buy each week for blending to satisfy demand
at minimum cost .
Solution
Let
X1 = # of barrels of crude X100 blended to produce the refined regular
X2 = # of barrels of crude X100 blended to produce the refined
economy
X3 = # of barrels of crude X220 blended to produce the refined regular
X4 = # of barrels of crude X220 blended to produce the refined
economy
Example
A company has budgeted up to $8000 per
week for local advertisement. The money is to
be allocated among four promotional media:
TV spots, newspaper ads, and two types of
radio advertisements. The company goal is to
reach the largest possible high-potential
audience through the various media. The
following table presents the number of
potential customers reached by making use of
advertisement in each of the four media. It
also provides the cost per advertisement
placed and the maximum number of ads that
can be purchased per week.
MEDIA SELECTION 29
Solution
Let
X1 = number of 1-miute TV spots taken Each week
X2 = number of full-page daily newspaper ads taken each week.
X3 = number of 30-second prime-time radio spots taken each week.
X4 = number of 1-minute afternoon radio spots taken each week.
Example
A law firm maintains a large staff of young attorneys
who hold the title of junior partner. The firm concerned
with the effective utilization of this personnel resources,
seeks some objective means of making lawyer-to-
client assignments. On march 1, four new clients
seeking legal assistance came to the firm. While the
current staff is overloads and identifies four junior
partners who, although busy, could possibly be
assigned to the cases. Each young lawyer can handle
at most one new client. Furthermore each lawyer
differs in skills and specialty interests.
Seeking to maximize the overall effectiveness of the new
client assignment, the firm draws up the following
table, in which he rates the estimated effectiveness (of
a scale of 1 to 9) of each lawyer on each new case.
ASSIGNMENT PROBLEM 32
Client case
Adam 6 2 8 5
Brook 9 3 5 8
Carter 4 8 3 4
Darwin 6 7 6 4
ASSIGNMENT PROBLEM 33
Solution
Decision variables:
1 if attorney i is assigned to case j
Let Xij =
0 otherwise
Where : i = 1, 2, 3, 4 stands for Adam, Brook,
Carter, and Darwin respectively
j = 1, 2, 3, 4 stands for divorce, merger,
embezzlement, and exhibitionism respectively.
The LP formulation will be as follows:
ASSIGNMENT PROBLEM 34
Example
The Top Speed Bicycle Co. manufactures and markets a
line of 10-speed bicycles nationwide. The firm has final
assembly plants in two cities in which labor costs are
low, New Orleans and Omaha. Its three major
warehouses are located near the larger market areas
of New York, Chicago, and Los Angeles.
The sales requirements for next year at the New York
warehouse are 10000 bicycles, at the Chicago
warehouse 8000 bicycles, and at the Los Angeles
warehouse 15000 bicycles. The factory capacity at
each location is limited. New Orleans can assemble
and ship 20000 bicycles; the Omaha plant can
produce 15000 bicycles per year. The cost of shipping
one bicycle from each factory to each warehouse
differs, and these unit shipping costs are:
TRANSPORTATION PROBLEM
36
Omaha 3 1 4
Solution
To formulate this problem using LP, we again employ the
concept of double subscribed variables. We let the first
subscript represent the origin (factory) and the second
subscript the destination (warehouse). Thus, in general,
Xij refers to the number of bicycles shipped from origin i
to destination j. Therefore, we have six decision
variables as follows:
St
X11 + X21 = 10000 (New York demand)
X12 + X22 = 8000 (Chicago demand)
X13 + X23 = 15000 (Los Angeles demand)
X11 + X12 + X13 20000 (New Orleans Supply
X21 + X22 + X23 15000 (Omaha Supply)
Xij 0 for i = 1, 2 and j = 1, 2, 3
The optimal solution is: X11 = 10000, X12 = 0, X13 = 8000, X21 = 0, X22 =
8000, X23 = 7000, and Z = $96000
7. PORTFOLIO SELECTION 39
Example
The International City Trust (ICT) invests in short-
term trade credits, corporate bonds, gold
stocks, and construction loans. To encourage a
diversified portfolio, the board of directors has
placed limits on the amount that can be
committed to any one type of investment. The
ICT has $5 million available for immediate
investment and wishes to do two things: (1)
maximize the interest earned on the
investments made over the next six months, and
(2) satisfy the diversification requirements as set
by the board of directors. The specifics of the
investment possibilities are:
PORTFOLIO SELECTION 40
Solution
To formulate ICT’s investment problem as a linear
programming model, we assume the following decision
variables:
X1 = dollars invested in trade credit
X2 = dollars invested in corporate bonds
X3 = dollars invested in gold stocks
X4 = dollars invested in construction loans
PORTFOLIO SELECTION 42
Example
Microsoft has a 24-hour-a-day, 7-days-a-week toll
free hotline that is being set up to answer questions
regarding a new product. The following table
summarizes the number of full-time equivalent
employees (FTEs) that must be on duty in each time
block.
(8 15.20) (4 12.95)
Min 121.6 (x1 + ••• + x6) + 51.8 (y1 + ••• + y 6)
5
s.t. x6 + x1 + 6
y1 15
5
x1 + x2 + 6
y2 10
5
All shifts
x2 + x3 + 6
y3 40 must be
5
x3 + x4 + 6
y4 70 covered
5
x4 + x5 + 6
y5 40
5
x5 + x6 + 6
y6 35
xt, yt 0
PT employee is 5/6 FT employee