Recitation 3
Recitation 3
1 Integer Programming
Question 1
A company is considering opening warehouses in four cities: New York, Los Angeles, Chicago, and
Atlanta. Each warehouse can ship 100 units per week. The weekly fixed cost of keeping each warehouse
open is $400 for New York, $500 for Los Angeles, $300 for Chicago, and $150 for Atlanta. Region 1 of
the country requires 80 units per week, region 2 requires 70 units per week, and region 3 requires 40
units per week. The costs (including production and shipping costs) of sending one unit from a plant
to a region are shown in Table 9. We want to meet weekly demands at minimum cost, subject to the
preceding information and the following restrictions:
• If the New York warehouse is opened, then the Los Angeles warehouse must be opened.
• At most two warehouses can be opened.
• Either the Atlanta or the Los Angeles warehouse must be opened.
Formulate an IP that can be used to minimize the weekly costs of meeting demand.
Question 2
Glueco produces three types of glue on two different production lines. Each line can be utilized by up
to seven workers at a time. Workers are paid $500 per week on production line 1, and $900 per week
on production line 2. A week of production costs $1,000 to set up production line 1 and $2,000 to set
up production line 2. During a week on a production line, each worker produces the number of units of
glue shown in Table 9. Each week, at least 120 units of glue 1, at least 150 units of glue 2, and at least
200 units of glue 3 must be produced. Formulate an IP to minimize the total cost of meeting weekly
demands.
Question 3
The Lotus Point Condo Project will contain both homes and apartments. The site can accommodate
up to 10,000 dwelling units. The project must contain a recreation project: either a swimmingtennis
complex or a sailboat marina, but not both. If a marina is built, then the number of homes in the project
must be at least triple the number of apartments in the project. A marina will cost $1.2 million, and a
swimmingtennis complex will cost $2.8 million. The developers believe that each apartment will yield
revenues with an NPV of $48,000, and each home will yield revenues with an NPV of $46,000. Each
home (or apartment) costs $40,000 to build. Formulate an IP to help Lotus Point maximize profits.
Question 4
A Sunco oil delivery truck contains five compartments, holding up to 2,700, 2,800, 1,100, 1,800, and
3,400 gallons of fuel, respectively. The company must deliver three types of fuel (super, regular, and
IE 342
Recitation 3
unleaded) to a customer. The demands, penalty per gallon short, and the maximum allowed shortage
are given in Table 9. Each compartment of the truck can carry only one type of gasoline. Formulate an
IP whose solution will tell Sunco how to load the truck in a way that minimizes shortage costs.
Type of Gasoline Demand Cost per Gallon Shortage Max Shortage Allowed
Super 2,900 10 500
Regular 4,000 18 500
Unleaded 4,900 16 500
Question 5
Ford has four automobile plants. Each is capable of producing the Taurus, Lincoln, or Escort, but it can
only produce one of these cars. The fixed cost of operating each plant for a year and the variable cost
of producing a car of each type at each plant are given in Table 5. Ford faces the following restrictions:
Plant Fixed Cost (in billions) Var. Cost - Taurus Var. Cost - Lincoln Var. Cost - Escort
1 7 12,000 16,000 19,000
2 6 15,000 18,000 11,000
3 4 17,000 19,000 12,000
4 2 19,000 22,000 14,000
1 X X - X X - - X X -
2 X - X - - - - - - -
3 - - X - - X - X - -
4 - X - - X - X - - -
5 X X - X - X X - X X
Question 7
At a machine tool plant, five jobs must be completed each day. The time it takes to do each job depends
Page 2
IE 342
Recitation 3
on the machine used to do the job. If a machine is used at all, there is a setup time required. The
relevant times are given in Table 7. The companys goal is to minimize the sum of the setup and machine
operation times needed to complete all jobs. Formulate the problem.
Question 8
Governor Blue of the state of Berry is attempting to get the state legislature to gerrymander Berrys
congressional districts. The state consists of 10 cities, and the numbers of registered Republicans and
Democrats (in thousands) in each city are shown in Table 8. Berry has five congressional representatives.
To form congressional districts, cities must be grouped according to the following restrictions:
Question 9
A company has three plants on different sides of a country. Each of these plants produces the same
products and then sells them to wholesalers within its part of the country. The orders from wholesalers
have already been received for the next month where the number of units requested are shown below.
(The company is not obligated to completely fill these orders but will do so if it can without decreasing
its profits.)
Page 3
IE 342
Recitation 3
Each plant has same production process. The production cost per unit produced of each product for
each plant and maximum production capacity of each plant are shown below. Each plant has to use at
least 30% of its production capacity.
The net sales revenue (selling price minus normal shipping costs) the company receives when the plant
sells the products to its own customers is $ 300. However, it is also possible (and occasionally desirable)
for a plant to make a shipment to the other plants to satisfy their demands. When this happens, a $30
fixed cost to fill the items in a truck and $1 extra shipping cost occurs for each unit product per mile.
Distance (mile)
Plant 1 Plant 2 Plant 3
Plant 1 - 240 155
Plant 2 240 - 110
Plant 3 155 110 -
Management now needs to determine how much product should be produced in each plant during this
month and how much each plant should ship to the other plants? customers. The objective is to deter-
mine which feasible plan would maximize the total profit.
Question 10
You are asked to design an easy stage of Candy Crush. You should place 3 different color candies (blue,
red, yellow) on a 6x6 square game screen. There are 12 candies of each color. But there are some
requirements. Two candies of each same color can be adjacent at most 3 and there must be exactly one
possible crush once the game is started. Model the game to maximize total Euclidean distance between
candies from same color.
Question 11
Some football fans want to fly kites when the team wins the match. They have blue and yellow cartons
to be split in order to make 2 colorful kites in 40x40 centimeter square sizes. Any color must be intense
for any kite. For example, first kite has to have more blue. A carton’s sizes are 40x40 centimeter squares.
While splitting the cartons, parts can be cut as 10x10 or 20x20 centimeter squares. For each kite, parts
in each color and each size must be used at least once. Model the problem to make the kites in order to
minimize the total number of cartons used.
Page 4