OR2019 02 Modeling Examples
OR2019 02 Modeling Examples
OR2019 02 Modeling Examples
Modelling Examples
Dr. Özgür Kabak
Basic OR Concepts
} Basic concepts required to define for mathematical
modeling:
} Variables
} Constraints
} Objective
2
ÖZgür KAbak 2019
Linear Programming
} all variables continuous (i.e. can take fractional values)
} a single objective (minimize or maximize)
} the objective and constraints are linear i.e. any term is
either a constant or a constant multiplied by an unknown.
3
ÖZgür KAbak 2019
Oil Blending
} Sunco Oil manufactures three types of gasoline (gas 1, gas 2, and gas 3). Each
type is produced by blending three types of crude oil (crude 1, crude 2, and
crude 3). Sunco can purchase up to 5,000 barrels of each type of crude oil daily.
The three types of gasoline differ in their octane rating and sulfur content
} Gas 1 > average octan rating at least 10, sulfur content at most %1
} Gas 2 > average octan rating at least 8, sulfur content at most %2
} Gas 3 > average octan rating at least 6, sulfur content at most %1
} It costs $4 to transform one barrel of oil into one barrel of gasoline, and
Sunco’s refinery can produce up to 14,000 barrels of gasoline daily.
} Demands (barrels) - gas 1: 3000, gas 2: 2000, gas 3: 1000
} Each dollar spent daily in advertising a particular type of gas increases the daily
demand for that type of gas by 10 barrels.
} Formulate an LP that will enable Sunco to maximize daily profits
5
ÖZgür KAbak 2019
Production Process
} We produce six products. Each unit of processed
raw material yields four units of product 1, two
units of product 2, and one unit of product 3. we
can sell at most 1200 units of product 1 and 300
units of product 2. Produ Sales Production
ct price cost (TL)
} Product 1 can also be processed to one units of
product 4. Demands of product 3 and 4 are (TL)
unlimited. 1 7 4
} Product 2 can also be processed to 0,8 units of 2 6 4
product 5 and 0,3 units of product 6. demands of
product 5 and 6 are – at most- 1000 and 800 3 4 2
respectively. 4 3 1
} We can provide at 3000 units of raw material at a
cost of TL 6 per unit. 5 20 5
} Leftover units of products 5 and 6 must be 6 35 5
destroyed. It costs $4 to destroy each leftover unit
of product 5 and $3 to destroy each leftover unit of
product 6.
} Formulate an LP whose solution will yield a profit
maximizing production schedule.
6
ÖZgür KAbak 2019
Workforce Scheduling
} Each year, Ayakco Shoes faces demands (which must be met on
time) for pairs of shoes as shown in the following Table. During
a month in which a worker works, he or she can produce up
to 50 pairs of shoes. Each worker is paid $500 per month. At
the end of each month, a holding cost of $50 per pair of shoes
is assessed. Workers will work four months and receive one
month off in the following 5 months.
} Formulate an LP that can be used to minimize the cost per
year (labor + holding) of meeting the demands for shoes.
7
ÖZgür KAbak 2019
Multi-Period Planning
} You own a wheat warehouse with a capacity of Month Sales Purchase
20,000 bushels. At the beginning of month 1, you Price $ Price $
have 6,000 bushels of wheat. Each month, wheat
can be bought and sold at the price per 1000 1 3 8
bushels given in the table. 2 6 8
} The sequence of events during each month is as 3 7 2
follows:
} You observe your initial stock of wheat. 4 1 3
} You can sell any amount of wheat up to your initial 5 4 4
stock at the current month’s selling price.
} You can buy (at the current month’s buying price) 6 5 3
as much wheat as you want, subject to the 7 5 3
warehouse size limitation.
} Your goal is to formulate an LP that can be used 8 1 2
to determine how to maximize the profit earned 9 3 5
over the next 10 months.
10 2 5
8
ÖZgür KAbak 2019
Production Planning
} ATK-White manufactures three products P1, P2, and P3 on two
machines M1 and M2. Each of the products must be processed on
both machines in arbitrary order. Operators are required to
operate the machines. 0.5 hours of operator hour is required to
operate a machine for one hour. The unit profits of the products are
8TL, 11TL, and 7TL, respectively, the machine capacities are 40 and
30 hours per planning period, and 30 operator hours available per
planning period. The following Table indicates how many units of the
products can be made each hour.
} In addition, it is required that at least fifteen units of the second
product are made. Formulate a profit-maximizing linear
programming problem.
P1 P2 P3
M1 4 6 9
M2 7 3 13
9
ÖZgür KAbak 2019
Cash Flow Problem
} ITU Cafeteria enterprise $1,000 in available cash. At the beginning of each of the
next six months, they will receive revenues and pay bills as shown in the table. It is
clear that the firm will have a short-term cash flow problem until the opening of the
university. To solve this problem, ITU Cafe must borrow money.
} At the beginning of May, ITU Cafe may take out a six-month loan. Any money borrowed
for a six-month period must be paid back at the end of October along with 9% interest
(early payback does not reduce the interest cost of the loan).
} ITU Cafe may also meet cash needs through month-to-month borrowing. Any money
borrowed for a one-month period incurs an interest cost of 4% per month.
} Use linear programming to determine how ITU Cafe can minimize the cost of
paying its bills on time.
12
ÖZgür KAbak 2019