Problem Set IP Solution PDF
Problem Set IP Solution PDF
Problem 1: The Northshore Bank is working to develop an efficient work schedule for full time and
part time tellers. The schedule must provide for efficient operation of the bank including adequate
customer service, employee breaks, and so on. On Friday, the bank is open from 9:00 A.M to 7:00
P.M. The number of tellers necessary to provide adequate customer service during each hour of
operation is summarized here.
a) Formulate an integer-programming model that can be used to develop a schedule that will
satisfy customer service needs at a minimum employee cost.
b) Solve the LP Relaxation of your model in part (a)
c) Solve for the optimal schedule of tellers. Comment on the solution.
d) After reviewing the solution to part (c), the bank manager realized that some additional
requirement to specified. Specifically, she wants to ensure that one full time employee is on
duty at all times and that there is a staff of at least five full time employees. Revise your
model to incorporate these additional requirements and solve for the optimal solution.
It is a practical, complex scheduling problem that can be easily modelled and solved as IP. Note that
part time and full time employees are paid at different rates. So, it is important that the bank
operates to provide required service level (indicated by the number of tellers per hour) while
minimizing total cost due to staff salary.
It would help if you construct a table as shown below to better analyze the problem before
attempting to model it. Red shows work hrs of full time staff and green is for part timers. Just follow
their work hour rules. The table lists all valid alternatives.
9:00- 10:00- 11:00- 12:00- 13:00- 14:00- 15:00- 16:00- 17:00- 18:00-
10:00 11:00 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00
However, part timers don’t have 1 hr break. They work straight 4 hrs and leave. See green cells
above to understand their alternatives.
Now, decision variables should include this work hour information. Here goes their definition. You
must clearly define decision variables in exam, otherwise, the model is meaningless.
X9 = number of full time staff who start at 9 and follow the hour-related rule (no need to specify
more details; those are already undestood)
X10 = number of full time staff who start at 10 and follow the hour-related rule
X11 = number of full time staff who start at 11 and follow the hour-related rule
Y9 = number of part time staff who start at 9 and follow the hour-related rule
Y10 = number of part time staff who start at 10 and follow the hour-related rule
Objective Function:
You will need one “covering” constraint for each working hour. Both full and part-timers can “cover”
the duty of each hour. Look at the color-coded table (above) column-wise. The 9:00-10:00 hour can
be covered only by x9 and y9 staff; next hour by x9, x10, y9, y10 only,… and so on. So, the
constraints are:
9:00- X9 + Y9 >= 6
10:00
10:00- X9 + X10 + Y9 + Y10 >=4
11:00
11:00- X9 + X10 + X11 + Y9 + Y10 + Y11 >=8
12:00
12:00- X9 + X10 + X11 + Y9 + Y10 + Y11 + Y12 >=10
13:00
13:00- X10 + X11 + Y10 + Y11 + Y12 +Y13 >=9
14:00
14:00- X9 + X11 + Y11 + Y12 +Y13 + Y14 >=6
15:00
15:00- X9 + X10 + Y12 +Y13 + Y14 + Y15 >=4
16:00
16:00- X9 + X10 +X11 +Y13 + Y14 + Y15 >=7
17:00
17:00- X10 +X11 + Y14 + Y15 >=6
18:00
18:00- X11 + Y15 >=6
19:00
c. The solution to the LP Relaxation is integral, so, it is the optimal to the IP as well.
Managerial Insight: A difficulty with this solution is that only part-time employees are used; this may
cause problems with supervision, etc. The large surpluses from 5, 12-1 (4 employees), and 3-4 (9
employees) indicate times when the tellers are not needed for customer service and may be
reassigned to other tasks.
x9 ≥ 1
x9 + x 10 + x 11 ≥ 5
x9 = 1, y9 = 5, x11 = 4, y12 = 5, y3 = 2
There is now much less reliance on part-time employees. The new solution uses 5 full-time
employees and 12 part-time employees; the previous solution used no full-time employees and 21
part-time employees.
Problem 2: Burnside Marketing Research conducted to study for Barker Foods on some designs for
a new dry cereal. Three attributes were found to be most influential in determining which cereal had
the best taste: ratio of wheat to corn in the cereal flake, type of sweetener (Sugar, honey, or
artificial), and the presence or absence of flavour bits. Seven children participated in taste tests and
provide the following part worths for attributes.
a) Suppose the overall utility (sum of part worths) of the current favourite cereal is 75 for each
child. What is the product design that will maximize the share of choices for the seven
children in sample?
b) Assume the overall utility of the current favourite cereal for the first four children in the
group is 70, and the overall utility of the current favourite cereal for the last three children in
the group is 80. What is the product design that will maximize the share of choices for the
seven children in sample?
a.
Decision variables
Math model:
b. The coefficients for the y_i variable must be changed to (-70) in constraints 1-4 and to
(-80) in constraints 5-7. The new optimal solution has L_21 = L_12 = L_23 = 1. This is a
cereal with a high wheat/corn ratio, a sugar sweetener, and no flavor bits. Four children
will prefer this design: 1, 2, 4, and 5.
Problem 3: The Bayside Art Gallery is considering installing a video camera security system to
reduce its insurance premium. A diagram of the eight display rooms that Bayside uses for exhibition
is shown in figure below; the openings between the rooms are numbered 1-13. A security firm
proposed that two-way camera be installed at some room opening. Each camera has ability to
monitor the two rooms between which the camera is located. For example, if a camera were located
at opening number 4, room 1 and 4 would be covered; if a camera were located at opening 11, room
7 and 8 would be covered; and so on. Management decided not to locate a camera system at the
entrance to the display rooms. The objective is to provide security coverage for all eight rooms using
the minimum number of two-way cameras.
a) Formulate a 0-1 integer linear programming model that will enable Bayside’s management
to determine the location for the camera systems.
b) Solve the model formulated in part (a) to determine how many two-way cameras to
purchase and where they should be located.
c) Suppose that management wants to provide additional security coverage for room 7.
Specifically, management want room 7 to be covered by two cameras. How your model
would formulate in part (a) have to change to accommodate this policy restriction?
d) With the policy, restriction specified in part (c) determines how many two-way camera
systems will need to be purchased and where they will be located.
a.
b.
x 1 = x 5 = x 8 = x 13 = 1. Thus, cameras should be located at 4 openings: 1, 5, 8, and 13.
An alternative optimal solution is x 1 = x 7 = x 11 = x 12 = 1.
c.
d.
Roedel’s sale forecast indicates that 7000 TV controllers and 5000 VCR controllers will be needed to
satisfy demand during the upcoming Christmas season. Because only 500 hours of in-house
manufacturing time are available, Roedel is considering purchasing some or all of the subassemblies
from outside suppliers. If Roedel manufactures a subassembly in-house, it incurs a fixed setup costs
as well as a variable manufacturing cost. The following table shows the setup cost, the
manufacturing time per subassembly, the manufacturing cost per subassembly, and the cost to
purchase each of the subassemblies from an outside supplier.
a) Determine how many units of each subassembly Roedel should manufacture and how many
units Roedel should purchase. What is the total manufacturing and purchase cost associated
with your recommendation?
b) Suppose Roedel is considering purchasing new machinery to produce VCR cartridges, for the
new machinery, the setup cost is $3000; the manufacturing time is 2.5 minutes per
cartridge, and the manufacturing cost is $2.60 per cartridge. Assuming that the new
machinery is purchased, determine how many units of each subassembly Roedel should
manufacture and how many units of each subassembly Roedel should purchase. What is the
total manufacturing and purchase cost associated with your recommendation? Do you think
the new machinery should be purchased? Explain.
a.
A mixed integer linear program can be set up to solve this make-buy decision problem. Binary
variables are used to indicate whether or not we setup to produce the subassemblies.
MIN Z = (0.4 BM + 2.9 TVCM + 3.15 VCRCM + 0.3 TVPM + 0.55 VCRPM)
+(0.65 BP + 3.45 TVCP + 3.7VCRCP + 0.5 TVPP + 0.7 VCRPP)
+(1000 SB + 1200 STVC + 1900 SVCRC + 1500 STVP + 1500 SVCRP)
S.T.
1) 1BM+1BP=12000 //Base’s demand
2) +1TVCM+1TVCP=7000 //TV controller’s demand
3) +1VCRCM+1VCRCP=5000 //VCR controller’s demand
4) +1TVPM+1TVPP=7000 //TV keypad’s demand
5) +1VCRPM+1VCRPP=5000 //VCR keypad’s demand
6) 0.9 BM + 2.2 TVCM + 3 VCRCM + 0.8 TVPM + 1VCRPM <= 30000 min (=500 hr) //time constraint
7) BM <= 12000 * SB
8) TVCM <= 7000STVC
9) VCRCM <= 5000SVCRC
10) TVPM <= 7000STVP
11) VCRPM <= 5000SVCRP
OPTIMAL SOLUTION
Objective Function Value = 52800.00
Variable Value
-------------- ---------------
BM 12000.000
TVCM 7000.000
VCRCM 0.000
TVPM 0.000
VCRPM 0.000
BP 0.000
TVCP 0.000
VCRCP 5000.000
TVPP 7000.000
VCRPP 5000.000
SB 1.000
STVC 1.000
SVCRC 0.000
STVP 0.000
SVCRP 0.000
b. Do it yourself.
Problem 5: East Coast Trucking provide service from Boston to Miami using regional offices located
in Boston, New York, Philadelphia, Baltimore, Washington, Richmond, Raleigh, Florence, Savannah,
Jacksonville and Tampa. The number of miles between each of the regional offices is provided in the
following table.
New Philadelphia Baltimore Washington Richmond Raleigh Florence Savannah Jacksonville Tampa Miami
York
Boston 211 320 424 459 565 713 884 1056 1196 1399 1669
New York 109 213 248 354 502 673 845 985 1188 1458
Philadelphia 104 139 245 393 564 736 876 1079 1349
Baltimore 35 141 289 460 632 772 975 1245
Washington 106 254 425 597 737 940 1210
Richmond 148 319 491 631 834 1104
Raleigh 171 343 483 686 956
The company’s expansion plans involve constructing service facilities in some of the cities where a
regional office is located. Each regional office must be within 400 miles of a service facility. For
instance, if a service facility is constructed in Richmond, it can provide service to regional office
located in New York, Philadelphia, Baltimore, Washington, Richmond, Raleigh, and Florence.
Management would like to determine the minimum number of service facilities needed and where
they should be located.
a) Formulate an integer linear program that can be used to determine the minimum number of
services facilities needed and their location.
b) Solve the linear program formulated in part (a). How many service facilities are required,
and where should they be located?
c) Suppose that each service facility can only provide service to regional office within 300
miles. How many service facilities are required and where should they be located?
min x_1 + x_2 + x_3 + x_4 + x_5 + x_6 + x_7 + x_8 + x_9 + x_10 + x_11 + x_12
s.t.
(New York) x_1 + x_2 + x_3 + x_4 + x_5 + x_6 ≥ 1
(Philadelphia) x_1 + x_2 + x_3 + x_4 + x_5 + x_6 + x_7 ≥ 1
(Baltimore) x_2 + x_3 + x_4 + x_5 + x_6 + x_7 ≥ 1
(Washington) x_2 + x_3 + x_4 + x_5 + x_6 + x_7 ≥ 1
(Richmond) x_2 + x_3 + x_4 + x_5 + x_6 + x_7 + x_8 ≥ 1
(Raleigh) x_3 + x_4 + x_5 + x_6 + x_7 + x_8 + x_9 ≥ 1
(Florence) x_6 + x_7 + x_8 + x_9 + x_10 ≥ 1
(Savannah) x_7 + x_8 + x_9 + x_10 + x_11 ≥ 1
(Jacksonville) x_8 + x_9 + x_10 + x_11 ≥ 1
(Tampa) x_9 + x_10 + x_11 ≥ 1
(Miami) x_11 ≥ 1
Problem 6. Solve the followings by branch and bound. (Z+ means set of all positive integers)
a.
b.
Note the following is a Mixed IP (MIP) problem.
c.