Topic 1 Integer Programming
Topic 1 Integer Programming
where
x1 = construction of a swimming pool
x2 = construction of a tennis center
x3 = constructions of an athletic field
x4 = construction of a gymnasium
In this model, the decision variables can have a solution value of either zero
or one. If a facility is not selected for construction, the decision variable
representing it will have the value of zero. If a facility is selected, its
decision variable will have a value of one.
2. A 0-1 INTEGER MODEL EXAMPLES
Notice that the tennis center (x2) cannot equal one (ex. be selected) unless
the pool (x1) equals one. If the pool (x1) equals zero (ex. it is not selected),
then the tennis center (x2) must also equal zero. However this condition
does allow the pool (x1) to equal one and be selected and the tennis center
(x2) to equal zero and not be selected
A variation of this type of conditional constraint is the Corequisite
Constraint, wherein if one facility is constructed, the other one will also be
constructed and vice versa. For example, suppose the council work out a
political deal among themselves, wherein if the pool (x1) is accepted, the
tennis center (x2) must also be selected and vice versa. This constraint is
written as
x2 = x1
3. A MIXED INTEGER MODEL EXAMPLE
where
x1 = condominium purchased
x2 = acres of land purchased
x3 = bonds purchased
Notice that in this model, the solution values for condominiums (x1) and
municipal bonds (x3) must be integers. It is not possible to invest in a
fraction of a condominium or to purchase part of a bond. However, it is
possible to purchase less than an acre of land (ex. a portion of an acre).
Thus, two of the decision variables (x1 and x2) are restricted to integer
variables, whereas the other variable (x2) can take on any real value greater
than or equal to zero.
INTEGER PROGRAMMING GRAPHICAL
SOLUTION
It may seem logical that an easy way to solve integer programming
problems is to round off fractional solution values to integer values.
However, that can result in less-than-optimal (ex. suboptimal) results. This
outcome can be seen by using graphical analysis. As an example, consider
the total integer model for the machine shop formulated in the previous
sections:
maximize Z = $100x1 + $150x2 subject to
$8,000x1 + $4,000x2 $40, 000
15x1 + 30x2 200
x1, x2 0 and integer
Integer Programming Graphical Solution
We use Excel to solve this model as a regular linear programming model without
the integer requirements, as shown in Exhibit 5.1 (Because not all of the students
have desktop or laptop computers that they can use to solve this model we will
just be presenting the answers as a references in this presentation).
INTEGER PROGRAMMING GRAPHICAL
SOLUTION
Notice that this model results in a non-integer solution of x1 = 2.22 presses,
and x2 =5.56 lathes. Because the solution values must be integers, let us first
round off these two values to the closest integer values, which are x1 = 2 and
x2 = 6. However, if we substitute these values into the second model
constraint, we find that this integer solution violates the constraint and thus
is infeasible.
15x1 + 30x2 200
15(2) + 30(6) 200
210 200
INTEGER PROGRAMMING GRAPHICAL
SOLUTION
In a model in which the constraint are all ( and the
constraint coefficients are positive), a feasible solution
is always ensured by rounding down. Thus, a feasible
integer solution for this problem is
x1 = 2
x2 = 5
Z = $950
INTEGER PROGRAMMING GRAPHICAL
SOLUTION
However, one of the difficulties, of simply rounding
down non-integer values is that another integer solution
may result in a higher profit (ex. in this problem, there
may be an integer solution that will result in a profit
higher than $950).
In order to determine whether a better integer solution
exist, let us analyze the graph of this model, which is
shown in figure 5.1.
INTEGER PROGRAMMING GRAPHICAL
SOLUTION
In figure 5.1, the dots indicate integer solution points, and
the point x1 = 2, x2=5 is the rounded down solution.