Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Decision Making
Sessions 7 and 8
• Integer Linear Program (ILP)
1 15 12
2 20 6
3 18 15
4 13 7
5 12 7
• This is the classic knapsack problem
• Decision Variables:
xi = 1 if item i is put in knapsack
= 0 if not chosen
– 3 if and only if 4
– If 1, then 2
6
➢ Investment opportunities 3 and 4 are mutually exclusive and so
are 5 and 6. Furthermore, neither 5 nor 6 can be undertaken
unless either 3 or 4 is undertaken.
7
Example 3: Production Planning
➢ A toy manufacturer is planning to produce new toys. The setup
cost of the production facilities and the unit profit for each toy are
given below. :
1 45000 12
2 76000 16
The company has two factories that are capable of producing these
toys. In order to avoid doubling the setup cost only one factory could
be used.
8
➢ The production rates of each toy are given below (in units/hour):
Toy 1 Toy 2
Factory 1 52 38
Factory 2 42 23
9
Example 4: Staffing Problem
The Clark County Sheriff’s department schedules police officers for 8-hour
shifts. The beginning times for the shifts are 8:00AM, noon, 4:00PM, 8:00PM,
midnight and 4AM. An officer beginning a shift at of these times works for the
next 8 hours. During normal and weekday operations, the number of officers
needed varies depending on the time of the day. The department staffing
guidelines require the following minimum number of officers on duty.
Time of Day Minimum officers on Duty
8:00AM – Noon 5
Noon – 4:00PM 6
4:00PM – 8:00PM 10
8:00PM – Midnight 7
Midnight – 4:00AM 4
4:00AM – 8:00AM 6
The Department wants to minimize the total number of officers needed to meet
all shift requirements.
Formulate as an LP to determine the number of officers that should be scheduled
to begin the each of the 8-hour shifts, so as to minimize the total number of
officers required.
That is:
min x1 + x2 + x3 + x4 + x5 + x6
Constraints
Each shift must have at least the minimum number of
officers
• x6+x1 ≥ 5
• x1+x2 ≥ 6
• x2+x3 ≥ 10
• x3+x4 ≥ 7
• x4+x5 ≥ 4
• x5+x6 ≥ 6
Non-negativity constraints
x1 ≥ 0, x2 ≥ 0, x3 ≥ 0, x4 ≥ 0, x5 ≥ 0, x6 ≥ 0
Integer constraints
min x1 + x2 + x3 + x4 + x5 + x6
s.t.
x6+x1 ≥ 5
x1+x2 ≥ 6
x2+x3 ≥ 10
x3+x4 ≥ 7
x4+x5 ≥ 4
x5+x6 ≥ 6
x1, x2, x3, x4, x5, x6 ≥ 0 , int
Example 5: Product Mix Problem
➢ A company is attempting to decide the mix of products which it should
produce next week. It has seven products, each with a profit (£) per
unit and a production time (person-hours) per unit as shown below:
1 10 1.0
2 22 2.0
3 35 3.7
4 19 2.4
5 55 4.5
6 10 0.7
7 115 9.5
15
➢ The company has 720 person-hours available next week.
➢ Formulate the problem of how many units (if any) of each product
to produce next week as an integer linear program.
16
Additional Constraints:
The prices for buying each oil are given below (in £/tonne)
18
➢ The final product sells at £180 per tonne. Vegetable oils and non-
vegetable oils require different production lines for refining. It is not
possible to refine more than 210 tonnes of vegetable oils and more than
260 tonnes of non-vegetable oils. There is no loss of weight in the refining
process and the cost of refining may be ignored.
➢ It is required to determine what to buy and how to blend the raw oils so
that the company maximises its profit.
19
➢ Additional Constraints:
❖ if either of VEG1 or VEG2 are used then OIL2 must also be used
20
Example 7: Production Planning Problem
➢ In the planning of the monthly production for the next six months
a company must, in each month, operate either a normal shift or
an extended shift (if it produces at all). A normal shift costs
£100,000 per month and can produce up to 5,000 units per
month. An extended shift costs £180,000 per month and can
produce up to 7,500 units per month. Note here that, for either
type of shift, the cost incurred is fixed by a union guarantee
agreement and so is independent of the amount produced.
21
➢ The cost of holding stock is estimated to be £2 per unit per month
(based on the stock held at the end of each month) and the initial
stock is 3,000 units (produced by a normal shift). The amount in
stock at the end of month 6 should be at least 2,000 units. The
demand for the company's product in each of the next six months
is estimated to be as shown below:
Month 1 2 3 4 5 6
➢ The company wants a production plan for the next six months that
avoids stockouts, formulate their problem as an integer program.22
Example 8: Capital Budgeting Problem
There are four possible projects, which each run for 3 years and have
the following characteristics.
Capital requirements
➢ we need not satisfy all four nutrient constraints but need only
satisfy three of them
Example 10: Yet Another Staffing
Problem
Requirement 5 3 2 4 5 2 2
A person works for 5 consecutive days and takes 2 days off. Assuming
that a cyclical schedule is to be made find the minimum number of people
that will meet the daily requirements.
Decision Variables
• xi= Number of people who begin work on i th
day
Formulation
Min Z= x1 + x2 + x3 + x4 + x5 + x6 + x7
Subjected to
x1 + x4 + x5 + x6 + x7 >=5
x1 + x2 + x5 + x6 + x7 >=3
x1 + x2 + x3 + x6 + x7 >=2
x1 + x2 + x3 + x4 + x7 >=4
x1 + x2 + x3 + x4 + x5 >=5
x2 + x3 + x4 + x5 + x6 >=2
x3 + x4 + x5 + x6 + x7 >=2
x1 , x2 , x3 ,x4 ,x5 , x6 ,x7 >= 0
Optimal Solution
x1 = 3
x4 = 2
x2 ,x3 , x5 , x6 , x7 =0
Example 11
XYZ Soaps operates two factories from which it
distributes soaps to different depots. XYZ has
four depots in the region. The minimum
demand for soaps at these four depots is:
• Production costs are currently Rs. 1000 per IC101 chip and
Rs. 600 per IC222 chip. A planned wage increase with effect
from the beginning of the next financial year, that is from April
1, 2016, will raise each of these production costs by 10%.
• The holding costs of IC101 and IC222 chips are Rs. 18 per
month and Rs. 13 per month respectively. Monthly ending
inventories are used as the average inventory levels of the
respective months.
• XYZ has made minor changes to their design
specifications, to be incorporated from 1 February
2016, implying no inventory to begin with.
• At KMLI:
7000 + x1 <= 13000
• At KBOS:
7000 + x1 – 4800 + x2 <= 13000
• At KTEB:
7000 + x1 – 4800 + x2 – 2000 + x3 <= 13000
• At KDAL:
7000 + x1 – 4800 + x2 – 2000 + x3 – 5300 + x4 <= 13000
• Upon return to KMLI: (This constraint is redundant. Why?):
7000 + x1 – 4800 + x2 – 2000 + x3 – 5300 + x4 – 3100 + x5 <= 13000
Constraint on min. fuel on landing
• 7000 + x1 – 4800 >= 2400
• 7000 + x1 – 4800 + x2 – 2000 >= 2400
• 7000 + x1 – 4800 + x2 – 2000 + x3 – 5300 >= 2400
• 7000 + x1 – 4800 + x2 – 2000 + x3 – 5300 + x4 – 3100 >= 2400