Recitation 2
Recitation 2
Recitation 2
Clothing Cost
nice red shirt $ 30
nice blue shirt $ 25
nice black shirt $ 35
nice red pants $ 50
nice blue pants $ 55
nice black pants $ 75
ugly red shirt $ 30
ugly blue shirt $ 25
ugly black shirt $ 35
ugly red pants $ 50
ugly blue pants $ 55
ugly lack pants $ 75
at a level of more than lA and lB , respectively, or not at all. Unit profits are PA and PB . Formulate a
mathematical programming model to maximize total profit.
Question 6
I have n integers: a1 , a2 , a3 , , an . Suppose I wish to assign some numbers to Set 1, and some numbers to
Set 2, in order to minimize the difference in the sum of numbers in each set. Write an integer program
to solve this problem. For instance, if n = 4, a1 = 2, a2 = 3, a3 = 6, a4 = 10, then I could assign numbers
a1 , a2 , and a3 to Set 1, and a4 to Set 2, with a difference of 11 − 10 = 1.
Question 7
Truck deliveries are made to five locations. A total of six routes are available. The following information
summarizes the location that can be reached by each route:
• Route 1: 1, 2, 3, 4
• Route 2: 1, 3, 4, 5
• Route 3: 1, 2, 5
• Route 4: 2, 3, 5
• Route 5: 1, 3, 5
• Route 6: 3, 4
The delivery distances of the routes are 10, 5, 9, 13, 8, and 6 miles, respectively. It is desired to make
exactly one delivery to each location. Formulate an IP model that will result in the shortest total
distance routing.
Page 2
IE 342
Recitation 2
Question 8
Using a mixed integer programming system, solve an instance of the uncapacitated facility location
problem with 5 depots and 6 clients, where fj is the cost of opening depot j, and cij is the cost of
satisfying all of client i’s demand from depot j, with f = (4,3,4,4,7) and the cost information is given in
Table 2.
Question 9
The R&D Division of a company has been developing four possible new product lines. Management
must now make a decision as to which of these four products actually will be produced and at what
levels. Therefore, they have asked the OR Department to formulate a mathematical programming model
to find the most profitable product mix. A substantial cost is associated with beginning the production
of any product. The marginal net revenue from each unit produced is shown on Table 3 (in $):
Page 3
IE 342
Recitation 2
Toy 1 Toy 2
Factory 1 52 38
Factory 2 42 23
Factories 1 and 2, respectively, have 480 and 720 hours of production time available for the production
of these toys. The manufacturer wants to know which of the new toys to produce, where and how many
of each (if any) should be produced so as to maximize the total profit. Formulate the problem as an
integer program.
Question 12
Jason, as always, has a busy schedule over the weekend. He has to schedule a four hour brunch (yes,
a four hour brunch), a three hour dinner, a four hour dinner, a three hour coffee break (at Starbucks
Bebek), and two one hour spinning sessions. Obviously, these activities should be scheduled on either
Saturday and Sunday (assume that each day has 8 hours). Also, the brunch should be the first activity
of the day and the dinners should be the last activities of the corresponding days. Again, both dinners
cannot be scheduled on the same day. Formulate an IP to help Jason to schedule these activities or
convince him that this is too much for a given weekend (not feasible).
Question 13
In a container terminal, five container carrier vessels are waiting for the unloading their cargo to the
dock. The unloading time of a vessel is based on the total capacity and the current load on its deck and
storage areas. The unloading times of the vessels and the due dates of their cargo are given in the table
below.
(a) Formulate an IP that determine the best sequence of vessels that minimizes the average tardiness.
(b) Formulate an IP that determine the best sequence of vessels that minimizes the maximum tardiness.
Vessel Number Unloading Time (in hours) Due Date (in hours)
1 9 17
2 17 33
3 5 41
4 11 21
5 14 40
Question 14
A software company is planning to release an anti virus software for home and professional users. Before
the final release to the market, the company wants test the software using beta testers. First 1000 beta
testers cost the company $10 each and the next 1000 beta testers cost $8 each and finally last 1000 beta
testers cost $5 each. The company may sell this product to the home users if the number of beta testers
is at least 1500 and to the professional users if the number of beta testers is at least 2500. The selling
price of the software for home and professional users will be $45 and $100 respectively. The expected
market demand is 10,000 for the home users and 5,000 for the professional users. The company has
enough employees to give after sales support to 12,000 home users and professional users require %50
more support hours compared to home users.
Page 4
IE 342
Recitation 2
(a) Assuming that the company can hire beta testers only at the integer multiples of 1000, formulate
an IP to maximize the profits of the company.
(b) Assuming that the company may hire any integer number of beta tester, formulate an IP to maximize
the profits of the company.
Question 15
Suppose a Constructor Company is employed to restore the residence of the government and they
need a scheduling to assign the workers appropriate tasks depends on their skills. The restoration of
the residence is divided into a number of tasks and each task requires number of skills. (gardening,
plumbing). Depending on skills, a worker might or might not perform a task. In addition to, each
worker can be hired for a cost that depends on his qualifications and the problem includes selecting a set
of workers in order to perform tasks, while minimizing the total cost. Formulate the mathematical model
to make sure all the tasks are performed. Assume there are available 15 workers and the information is
on Table 15.
Number of Workers
Tasks 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Carpentry x x x x x
Plumbing x x x x x
Ceiling x x x x x
Electricity x x x x x
Heating x x x x x
Insulation x x x x
Roofing x x x x x
Painting x x x x x
Windows x x x x
Face x x x x
Cost ($1000) 1 1 2 3 2 1 2 1 4 3 2 3 1 1 2
Question 16
Marks and Spencer is considering to build warehouses in a number of locations to supply its stores . Each
possible warehouse includes a fixed cost and has a maximum capacity to define how many stores it may
support. In addition to, each store must be supplied by exactly one warehouse and the transportation
cost to supply a store can be changed depends on the selected warehouse. Assume there are 5 possible
warehouses to build and 10 stores to be supplied. Formulate an integer programming to decide which
warehouses to build and which warehouse assigns to which store in order to minimize the total cost.
Assume that fixed maintenance cost to open a warehouse is same for each warehouse and it is $100000.
The required information is on Table 16.
Question 17
A wood company has four machines to assign four tasks. Any task can be assigned on any machine and
each task requires some processing time on any machine. The requirement time for the each task to be
assigned on each machine is shown on the Table 17.
Formulate the mathematical model to minimize the total setup time needed to process of all four tasks
Question 18
A local football team Ozu United wants to join a futsal World Cup. Sir Alex Ferguson is the coach of
Page 5
IE 342
Recitation 2
Page 6
IE 342
Recitation 2
the team and he is trying to choose its starting line-up six players from ten players so as the maximize
goal rate. The table includes some information about the footballers’ skills to choose them.
The starting line-up must satisfy the following constraints:
• At least one goalkeeper must start.
• Either Zico or Platini must be held in reserve.
• Only one forward can start.
• If Pele or Maradona starts, then Rivaldo cannot start.
• If Beckenbauer starts, then Blanc and Zico cannot start.
• At least two of Maldini, Zico, Pele and Platini must start.
Page 7
IE 342
Recitation 2
(a) Formulate an integer program to choose the subset of bids that maximizes profit for the auctioneer,
i.e. the total value for which the items are sold is maximum. We remark that each item can be sold
at most once, and that bids cannot be split, that is: a bid for items {1, 2} can only be accepted if
both item 1 and 2 are available.
(b) Suppose now that we are still auctioning off the set of items {1, 2, 3, 4, 5}, but now we have two
copies each of items 1, 2, 3. In other words, the set of items for auctions looks like this: {1, 1, 2,
2, 3, 3, 4, 5, 6}. The set of received bids does not change, and each bid can only be accepted at
most once. Modify your answer to the previous question to take into account the new availability
of items.
Page 8