Professional Documents
Culture Documents
PPT5-Integer Programming
PPT5-Integer Programming
Stochastic Processes
Topic 5 – Week 5
Integer Programming
Integer Programming
Learning Outcome
LO2: Apply some methods and the techniques
used to solve linear optimization models using
their mathematical structure
Integer Programming
- Model formulation
Integer Programming
Introduction to Integer
Programming
= Level of activity i
= 1 if activity i is undertaken at positive level
= 0 if activity i is not undertaken at positive level
– Then a constraint of the form < must be added to
the formulation. It must be large enough to ensure
that will be less than or equal to .
• In a set-covering problem, each member of a given set must
be “covered” by an acceptable member of some set.
• The objective of a set-covering problem is to minimize the
number of elements in set 3 that are required to cover all the
elements in set 1.
• Given two constraints
f x1 x2 ,..., xn 0
g x1 , x2 ,..., xn 0
•
ensure that at least one is satisfied by adding an either-or-
constraint.
f x1 x 2 ,..., x n My
g x , x ,..., x M 1 y
1 2 n
• M is a number chosen large enough to ensure that both
constraints are satisfied for all values of x1 , x2 ,..., xn that satisfy
the other constraints in the problem.
• Suppose we want to ensure thatf x1 , x2 ,..., xn > 0 implies
g x1 , x2 ,...,. x n 0 Then we include the following constraint in the
formulation:
g x1 , x 2 ,..., x n My
f x , x ,..., x M 1 y
1 2 n
y 0 or 1
z y , z y y , z y y ,..., z y y , z
1 1 2 1 1 3 2 3 n n 1 n 1 n
y n 1
y y ... y
1 2 n 1
z z ... z 1
1 2 n
y 0
1
or 1 i 1,2,..., n 1; z0
1
i 1,2,..., n
• If a piecewise linear function f(x) involved in a
formulation has the property that the slope of the f(x)
becomes less favorable to the decision maker as x
increases, then the tedious IP formulation is
unnecessary.
• LINDO can be used to solve pure and mixed IPs.
• In addition to the optimal solution, the LINDO output
also includes shadow prices and reduced costs.
• LINGO and the Excel Solver can also be used to solve IPs.
Solving Integer Programming
The Branch-and-Bound Method for Solving
Pure Integer Programming Problems
• To begin define
1 if Joe leaves city i and travels next to city j
xij
0 otherwise
Also, for i j ,
cij distance between cities i and j
cii M , where M is a large positive number