Integer Programming PDF
Integer Programming PDF
10.1 Introduction
This chapter presents a series of other important mathematical programming models that arise
when some of the basic assumptions of LP are made more or less restrictive. For example,
one assumption of LP is that decision variables can take on fractional values such as
X1 = 0.33, X2 = 1.57, or X3 = 109.4. Yet a large number of business problems can be solved
only if variables have integer values. When an airline decides how many Boeing 757s or Boeing
777s to purchase, it can’t place an order for 5.38 aircraft; it must order 4, 5, 6, 7, or some other
Integer programming is the integer amount. In this chapter we present the general topic of integer programming, and we
extension of LP that solves specifically consider the use of special variables that must be either 0 or 1.
problems requiring integer A major limitation of LP is that it forces the decision maker to state one objective only. But
solutions. what if a business has several objectives? Management may indeed want to maximize profit, but
it might also want to maximize market share, maintain full employment, and minimize costs.
Many of these goals can be conflicting and difficult to quantify. South States Power and Light,
for example, wants to build a nuclear power plant in Taft, Louisiana. Its objectives are to maxi-
mize power generated, reliability, and safety, and to minimize cost of operating the system and
Goal programming is the the environmental effects on the community. Goal programming is an extension to LP that can
extension of LP that permits permit multiple objectives such as these.
more than one objective to be Linear programming can, of course, be applied only to cases in which the constraints and
stated. objective function are linear. Yet in many situations this is not the case. The price of various
products, for example, may be a function of the number of units produced. As more are made,
the price per unit decreases. Hence an objective function may read as follows:
Nonlinear programming is the Maximize profit = 25X1 - 0.4X1 2 + 30X2 - 0.5X2 2
case in which objectives or
constraints are nonlinear. Because of the squared terms, this is a nonlinear programming problem.
Let’s examine each of these extensions of LP—integer, goal, and nonlinear programming—
one at a time.
produced nets the firm $7 and each fan $6, Harrison’s production mix decision can be formu-
lated using LP as follows:
Maximize profit = $7X1 + $6X2
subject to 2X1 + 3X2 … 12 1wiring hours2
Although enumeration is feasible 6X1 + 5X2 … 30 1assembly hours2
for some small integer program- X1, X2 Ú 0
ming problems, it can be difficult
or impossible for large ones. where
X1 = number of chandeliers produced
X2 = number of ceiling fans produced
With only two variables and two constraints, Harrison’s production planner, Wes Wallace,
employed the graphical LP approach (see Figure 10.1) to generate the optimal solution of
X1 = 3.75 chandeliers and X2 = 1.5 ceiling fans during the production cycle. Recognizing that
the company could not produce and sell a fraction of a product, Wes decided that he was dealing
with an integer programming problem.
It seemed to Wes that the simplest approach was to round off the optimal fractional solu-
tions for X1 and X2 to integer values of X1 = 4 chandeliers and X2 = 2 ceiling fans. Unfortu-
Rounding off is one way to reach nately, rounding can produce two problems. First, the new integer solution may not be in the
integer solution values, but it feasible region and thus is not a practical answer. This is the case if we round to X1 = 4, X2 = 2.
often does not yield the best Second, even if we round off to a feasible solution, such as X1 = 4, X2 = 1, it may not be the
solution. optimal feasible integer solution.
Listing all feasible solutions and selecting the one with the best objective function value is
called the enumeration method. Obviously this can be quite tedious for even small problems,
and it is virtually impossible for large problems as the number of feasible integer solutions is
extremely large.
FIGURE 10.1
X2
Harrison Electric Problem
6
6X1 + 5X2 ≤ 30
Optimal LP Solution
2 (X1 = 3.75, X2 = 1.5, Profit = $35.25)
2X1 + 3X2 ≤ 12
1
0 1 2 3 4 5 6 X1
398 CHAPTER 10 • INTEGER PROGRAMMING, GOAL PROGRAMMING, AND NONLINEAR PROGRAMMING
An important concept to Table 10.1 lists the entire set of integer-valued solutions to the Harrison Electric problem.
understand is that an integer By inspecting the right-hand column, we see that the optimal integer solution is
programming solution can never
be better than the solution to the X1 = 5 chandeliers, X2 = 0 ceiling fans, with a profit = $35
same LP problem. The integer
Note that this integer restriction results in a lower profit level than the original optimal LP solu-
problem is usually worse in terms
of higher cost or lower profit.
tion. As a matter of fact, an integer programming solution can never produce a greater profit
than the LP solution to the same problem; usually, it means a lesser value.
PROGRAM 10.1A
QM for Windows Input
Screen for Harrison
Electric Problem
PROGRAM 10.1B
QM for Windows
Solution Screen for
Harrison Electric Problem
PROGRAM 10.2
Excel 2010 Solver
Solution for Harrison
Electric Problem
Set Objective: D5
By Changing cells: B4:C4
To: Max
Subject to the Constraints:
Copy D5 to D8:D9
D8:D9 <= F8:F9
B4:C4 = integer
Solving Method: Simplex LP
聺 Make Variables Non-Negative
400 CHAPTER 10 • INTEGER PROGRAMMING, GOAL PROGRAMMING, AND NONLINEAR PROGRAMMING
Bagwell sells 50-pound bags of xyline for $85 and hexall in any weight for $1.50 per pound.
Integer Programming
MODELING IN THE REAL WORLD: at the USPS
Defining
Defining the Problem
the Problem The U. S. Postal Service (USPS) operates one of the largest transporation networks in the world, delivering
one-fifth of a trillion items every year. The inherent transportation-related problems are, obviously, very
large. Nevertheless, USPS’s problem is how to deliver mail in the most cost-efficient manner possible.
Acquiring
Acquiring Input Data
Input Data Geographic information system (GIS) data of all the pickup and delivery locations is integrated into the
model. Realistic time and distance constraints were placed on the model to prevent drivers from being
assigned a pickup in one area and a delivery in an area too far away.
Testing the
Testing the Solution
Solution The model was loaded into a large-scale mathematical programming solver. Several versions and models
were tested.
Analyzing
Analyizing the Results
the Results Decision makers found improvements in several areas. For example, one of the model outputs resulted in
a 20% reduction in redundant trips.
Implementing
Implementing the Results
the Results USPS has already realized over $5 million in transportation savings due to its implementation of the HCAP
integer programming optimization model. Efforts are under way to seek out additional efficiencies through
the use of HCAP.
Source: Based on A. Pajunas, E. J. Matto, M. Trick, and L.F. Zuluaga. “Optimizing Highway Transporation at the United States
Postal Service,” Interfaces 37, 6(2007): 515-525.
10.2 INTEGER PROGRAMMING 401
If we let X = number of 50-pound bags of xyline produced and Y = number of pounds of hexall
(in dry bulk) mixed, Bagwell’s problem can be described with mixed-integer programming:
Maximize profit = $85X + $1.50Y
subject to 30X + 0.5Y … 2,000
18X + 0.4Y … 800
2X + 0.1Y … 200
X, Y Ú 0 and X integer.
Note that Y represents bulk weight of hexall and is not required to be integer valued.
USING QM FOR WINDOWS AND EXCEL TO SOLVE BAGWELL’S INTEGER PROGRAMMING
MODEL The solution to Bagwell’s problem is to produce 44 bags of xyline and 20 pounds of
hexall, yielding a profit of $3,770. (The optimal linear solution, by the way, is to produce 44.444
bags of xyline and 0 pounds of hexall, yielding a profit of $3,777.78.) This is first illustrated in
Program 10.3, which uses the Mixed Integer Programming module in QM for Windows. Note
that variable X is identified as Integer, while Y is Real in Program 10.3.
In Program 10.4, we use Excel to provide an alternative solution method.
PROGRAM 10.3
QM for Windows
Solution for Bagwell Limits are used, and the best solution
Chemical Problem available after a certain time is presented.
PROGRAM 10.4
Excel 2010 Solver
Solution for Bagwell
Chemical Problem
Set Objective: D5
By Changing cells: B4:C4
To: Max
Subject to the Constraints:
D8:D10 <= F8:F10 Copy D5 to D8:D10
B4 = integer
Solving Method: Simplex LP
聺 Make Variables Non-Negative