6.0 Integer Linear Optimization Models
6.0 Integer Linear Optimization Models
6.0 Integer Linear Optimization Models
Models 1
Learning Objectives
• Differentiate types of integer linear optimization models –
all-integer, mixed-integer and binary integer.
• Apply geometric approach in solving linear all-integer
optimization.
• Use Excel Solver in integer linear optimization problems.
• Solve integer linear optimization problems involving binary
variables.
• Generate alternatives in binary optimization.
2
Introduction
3
Introduction
• Integer linear programs: Problems that are modeled as linear
programs with the additional requirement that one or more
variables must be integer.
4
Types of Integer Linear
Optimization Models
5
Types of Integer Linear Optimization Models
• All-integer linear program: If all variables are required to be integer.
• Binary integer linear program: The integer variables may take on only
the values 0 or 1.
6
Eastborne Realty, An Example
of Integer Optimization
7
Eastborne Realty, An Example of Integer
Optimization
• Eastborne Realty has $2 million available for the purchase of new
rental property.
• After an initial screening, Eastborne reduced the investment
alternatives to townhouses and apartment buildings.
• Each townhouse can be purchased for $282,000.
• Five are available.
• Each apartment building can be purchased for $400,000.
• The developer will construct as many buildings as Eastborne wants
to purchase.
8
Eastborne Realty, An Example of Integer
Optimization
9
Eastborne Realty, An Example of Integer
Optimization
12
Eastborne Realty, An Example of Integer
Optimization
• Model for the Eastborne Realty problem:
• Max 10T + 15A
• s.t.
282T + 400A ≤ 2000
4T + 40A ≤ 140
T ≤ 5
T, A ≥ 0 and integer
13
Figure 1 - The Geometry of the Eastborne Realty
Problem
14
The Geometry of Linear All-Integer Optimization
• The shaded region is the feasible region of the LP Relaxation.
• The optimal linear programming solution is:
• Point b: The intersection of the Managers Time constraint and the
Available Funds constraint.
• T = 2.479 townhouses and A = 3.252 apartment buildings.
• The optimal value of the objective function is 73.574.
• Indicates an annual cash flow of $73,574.
• Unfortunately, Eastborne cannot purchase fractional numbers of
townhouses and apartment buildings.
• Further analysis is necessary.
15
The Geometry of Linear All-Integer Optimization
• In many cases, a noninteger solution can be rounded to obtain an
acceptable integer solution.
• For instance, a linear programming solution to a production scheduling
problem might call for the production of 15,132.4 cases of breakfast
cereal and the rounded integer solution of 15,132 cases would probably
have minimal impact on the value of the objective function and the
feasibility of the solution.
• A near-optimal solution is fine.
• However, rounding may not always be a good strategy.
• When the decision variables take on small values that have a major
impact on the value of the objective function or feasibility, an optimal
integer solution is needed.
16
The Geometry of Linear All-Integer Optimization
17
The Geometry of Linear All-Integer Optimization
18
The Geometry of Linear All-Integer Optimization
• Infeasible.
19
The Geometry of Linear All-Integer Optimization
21
The Geometry of Linear All-Integer Optimization
23
Solving Integer Optimization Problems with
Excel Solver
25
Figure 2 - Eastborne Realty Spreadsheet Model
26
Figure 3 - Solver Parameters Dialog Box for
Eastborne Realty
27
Figure 4 - Solver Options Dialog Box
28
Figure 5 - Excel Solver Answer Report for the
Eastborne Realty Problem
29
Solving Integer Optimization Problems with
Excel Solver
30
Applications Involving Binary
Variables
31
Applications Involving Binary Variables
• Capital budgeting problem: A binary integer programming
problem that involves choosing which possible projects or
activities provide the best investment return.
32
Applications Involving Binary Variables
• Illustration
33
Table 1 - Project Net Present Value, Capital Requirements, and
Available Capital for the Ice-Cold Refrigerator Company
34
Applications Involving Binary Variables
• Let us define four binary decision variables:
• One for the funds available in each of the next four years.
35
Applications Involving Binary Variables
• A binary integer linear programming model (thousands of
dollars):
• Max 90P + 40W + 10M + 37R
• s.t.
• 15P + 10W + 10M + 15R ≤ 40 (Year 1 capital available)
• 20P + 15W + 10R ≤ 50 (Year 2 capital available)
• 20P + 20W + 10R ≤ 40 (Year 3 capital available)
• 15P + 5W + 4M + 10R ≤ 35 (Year 4 capital available)
• P, W, M, R = 0, 1
36
Figure 6 - Ice-Cold Spreadsheet Model and Solver
Dialog Box
37
Figure 7 - Answer Report for Ice-Cold
Refrigerator
38
Applications Involving Binary Variables
• In many applications, the cost of production has two components:
39
Applications Involving Binary Variables
• Illustration
• Consider the production problem faced by RMC Inc.
• Three raw materials are used to produce three products:
• a fuel additive
• a solvent base
• a carpet cleaning fluid
• Decision variables used are:
• F = tons of fuel additive produced
• S = tons of solvent base produced
• C = tons of carpet cleaning fluid produced
40
Applications Involving Binary Variables
• A linear programming model of the RMC problem:
• s.t.
• F, S, C ≥ 0
41
Applications Involving Binary Variables
• Suppose that the RMC data are available concerning the setup cost and
the maximum production quantity for each of the three products.
44
Applications Involving Binary Variables
• Location problem: A binary integer programming problem in
which the objective is to select the best locations to meet a stated
objective.
45
Applications Involving Binary Variables
• Illustration
• The long-range planning department for the Ohio Trust Company is considering
expanding its operation into a 20-county region in northeastern Ohio.
• Currently, Ohio Trust does not have a principal place of business in any of the
20 counties.
• To establish a new principal place of business, Ohio Trust must either obtain
approval for a new bank from the state’s superintendent of banks or purchase
an existing bank.
• Refer to Figure 9.10 here.
46
Figure 11 – Ohio Trust County Map
47
Table 2 - Counties in the Ohio Trust Expansion
Region
48
Applications Involving Binary Variables
• As an initial step in its planning, Ohio Trust would like to
determine the minimum number of PPBs necessary to do
business throughout the 20-county region.
49
Applications Involving Binary Variables
• The complete statement of the bank location problem:
50
Figure 11 - Optimal Solution to the Ohio Trust
Location Problem
51
Applications Involving Binary Variables
• Conjoint analysis: A market research technique that can be used to learn
how prospective buyers of a product value the product’s attributes.
• Currently, two existing brands, Antonio’s and King’s, have the major
share of the market.
53
Applications Involving Binary Variables
• Crust: thin and thick
• Cheese: mozzarella and blend
• Sauce: smooth and chunky
• Sausage flavor: mild, medium, and hot
54
Table 3 - Part-worths for the Salem Foods
Problem
• The part-worths can be used to determine the overall value (utility) that
each consumer attaches to a particular type of pizza.
• In general, each consumer’s utility for a particular type of pizza is the
sum of the part-worths for the attributes of that type of pizza.
55
Applications Involving Binary Variables
• Salem must design a pizza (choose the type of crust, cheese, sauce, and
sausage flavor) that will have the highest utility for a sufficient number
of people to ensure sufficient sales to justify making the product.
• Assuming the sample of eight consumers in the current study is
representative of the marketplace for frozen sausage pizza:
• Formulate and solve an integer programming model that can help
Salem come up with such a design. In marketing literature, the
problem being solved is called the share of choice problem.
• The decision variables are defined as:
• lij = 1 if Salem chooses level i for attribute j; 0 otherwise
• yk = 1 if consumer k chooses the Salem brand; 0 otherwise
56
Applications Involving Binary Variables
• Model for the Salem pizza problem:
• Max y1 + y2 + . . . + y8
• s.t.
57
Applications Involving Binary Variables
• The optimal solution to this 17-variable, 12-constraint integer linear program:
58
Modeling Flexibility Provided
by Binary Variables
59
Modeling Flexibility Provided by Binary Variables
60
Multiple-Choice and Mutually Exclusive
Constraints
• Multiple-choice constraint: A constraint requiring that the sum of two
or more binary variables equals one.
• Thus, any feasible solution makes a choice of which variable to set equal
to one.
• Thus, if one of the variables equals one, the others must equal zero.
• W1 + W 2 + W 3 = 1
62
Multiple-Choice and Mutually Exclusive
Constraints
• Ice-Cold Refrigerator capital budgeting problem:
• If the requirement that one warehouse must be expanded did not exist,
the multiple-choice constraint could be modified as:
• W1 + W 2 + W3 = 1
63
k Out of n Alternatives Constraint
• k out of n alternatives constraint: A constraint that requires the sum of
n binary variables to equal k.
• An extension of the multiple-choice constraint.
• In the capital budgeting problem, suppose that W1, W2, W3, W4, and W5
represent five potential warehouse expansion projects and that two of
the five projects must be accepted.
• Constraint satisfying this new requirement:
• W1 + W 2 + W3 + W 4 + W5 = 2
• If no more than two of the projects are to be selected:
• W1 + W 2 + W3 + W 4 + W5 ≤ 2
64
Conditional and Corequisite Constraints
• Conditional constraint: A constraint involving binary variables that does not
allow certain variables to equal one unless certain other variables are equal to
one.
• In the capital budgeting problem, suppose that the warehouse expansion
project was conditional on the plant expansion project.
• With P representing plant expansion and W representing warehouse
expansion:
• Conditional constraint: W ≤ P
• P and W must each be 0 or 1.
• When P is 0, W will be forced to 0.
• When P is 1, W is allowed to be 1.
• Both the plant and the warehouse can be expanded. 65
Conditional and Corequisite Constraints
• Corequisite constraint: A constraint requiring that two binary variables be
equal and that thus are both either in or out of the solution together.
• W=P
67
Generating Alternatives in Binary Optimization
• If alternative optimal solutions exist, it would be good for management to
know this:
• Because some factors that make one alternative preferred over another
might not be included in the model.
• If the solution is a unique optimal solution:
• It would be good to know how much worse the second-best solution is
than the unique optimal solution.
• If the second-best solution is very close to optimal:
• It might be preferred over the true optimal solution because of factors
outside the model.
68
Figure 12 - A Second-best Solution to the Ohio
Trust Location Problem
69