









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










A Product-Mix Problem:
HiTech, inc., a small manufacturing firm produces two microwave switches, switch A
and B. The return per unit of Switch A is $5, whereas the return per unit of Switch B is
$8. Because of contractual commitments, HiTech must manufactures at least 20 units of
Switch A per week, and based on the present demand for its products, it can sell all that it
can manufacture. However, it wishes to maximize profit while determining the
production sizes to satisfy various limits resulting from a small production crew. These
includes
Assembly hours: 40 hours available per week
Testing hours: 30 hours available per week
Switch A requires 3 hours assembly and 2 hours of testing, Switch B requires 4 hours
assembly and 1 hours of testing
Determination of the decision variables
The problem is obviously to determine the optimal number of each type of switch to
manufacture based on the limited resources available. The variables directly under
Hitechís control are
1
x amount of Switch A manufactured per week
2
x amount of Switch B manufactured per week
Formulation of the objective
The overall objective is to maximize weekly profit and because the unit returns for
switches A and B are $5 and $8, respectively, the objective can be written as follows:
maximize 1 2
z = 5 x + 8 x (profit per week)
Formulation of the constraints
Based on the consumption rates of the two switches and the limited resources available,
the production constraints can be formulated as follows:
1 2
x + x ≤ (assembly hours per week)
1 2
x + x ≤ (testing hours per week)
Also, the minimum requirement for Switch A is given simply as
1
x ≥ (Switch A demand per week)
The nonnegative restrictions on each variable are written as
1
x ≥
2
x ≥
As a result, the mathematical model for this problem may be summarized as follows:
maximize 1 2
z = 5 x + 8 x
subject to
1 2
x + x ≤
1 2
x + x ≤
1
x ≥
2
x ≥
Max LP model canonical form (1)
max z cx
rr
Constraints: Ax b
r r
r r
x ≥
For the above product-mix problem:
ú
û
ù
ê
ë
é
2
1
x
x
x
r
r
ú
ú
ú
û
ù
ê
ê
ê
ë
é−
ú
ú
ú
û
ù
ê
ê
ê
ë
é−
b
r
Definition: 1.2 Half-space
A linear relationship of the form ax ≤ c
r r
is called a half-space in the n-dimensional
Euclidean space
n
R.
Definition: 1.3 Convex set
A set of S is said to be convex if for any x x ∈ S 1 2
r r
x + − x ∈ S 1 2
r r
λ λ , where 0 ≤λ≤ 1
Definition: 1.4 Polyhedral set
A polyhedral set is the conjunction of a set of half spaces.
Observation : All Polyhedral sets are convex sets.
Definition: 1.5 Linearly independent and dependent
The vectors
n
a a a
r r r
1 2
in a vector space V are said to be linearly independent if
1 1 2 2
n n
k a ka k a
r
r r
implies that all of the scalars n
k k ... k 1 2
are equal to zero, otherwise the vectors are
said to be linearly dependent.
Example1.2:
ú
û
ù
ê
ë
é
1 2 3
A a a a
r r r
Figure 1. Illustration of a convex set Figure 2. Illustration of a non-convex set
1
a
r
and 2
a
r
are linearly independent, 1
a
r
and 3
a
r
are not linearly independent, because
1 3
r r r
a − a =
Definition: 1.6 Basis
Given an m × n matrix A ( m < n ) , a collection of m linearly independent columns is
called a basis.
Basic Solution
Given
Ax b
r r
We partition A into
n
r r r
1 2
Likewise, we partition x
r
into
ú
û
ù
ê
ë
é
N
B
x
x
x (^) r
r
r
B
x
r
is the set of basic variables and N
x
r
is the set of non-basic variables. Substituting the
above partitioned expressions of A and x
r
into Ax b
r r
= , we get
x
x
N
B
r
r
r
ú
û
ù
ê
ë
é
Expanding the above equation, we have
Bx Nx b B N
r r r
The inverse of matrix B exists since B is a collection of m linearly independent vectors.
Multiplying the above equation by
− 1
B , we get:
B N
x B b B Nx
r
r r − 1 − 1
= −
Basic solution is obtained by setting the non-basic solution into zero: The solution
Inserting the partitioned expression of c
r
and x
r
into z cx
rr
= , the objective function can
be recast as
B B N N
z c x c x
r r r r
Since B N
x B b B Nx
r
r r − 1 − 1
= − , z can be rewritten as
B B N N
z c B b c B N c x
r r r
r r
1 1
= − −
− −
Let J = {Index set of non-basic variables}, then objective function can be rewritten as
follows:
=
− −
= − −
jJ
B B j j j
z c B b ( c B a c ) x
1 1
r r
r r
Checking for optimality
Observe that the coefficient ( )
1
B j j
− c B a − c
−
r r
of j
x represents the rate of change of z
with respect to the non-basic variable j
x. That is,
1
B j j
j
c B a c
x
z
−
r r
Thus, if > 0
j
x
z
, then increasing the non-basic variable j
x will increase z. The quantity
1
B j j
c B a − c
−
r r
is sometimes referred as the reduced cost and for convenience is usually
denoted by j j
z − c. We can thus state the optimality conditions for a maximization linear
programming problem.
Optimality Conditions
The basic feasible solution represented by 0
1
ú
û
ù
ê
ë
é
ú
û
ù
ê
ë
é
−
r
r
r
r
r B b
x
x
x
N
B
will be optimal to (LP)
if
1
=− − =− − ≤
−
j j B j j
j
z c c B a c
x
z r r
, for all j ∈ J
or, equivalently, if
1
− = − ≥
−
j j B j j
z c c B a c
r r
, for all j ∈ J
Note that because − = 0 j j
z c for all basic variables, then the optimality conditions could
also be stated simply as − ≥ 0 j j
z c , for all j = 1 , L, n.
Determining the entering variable
Suppose there exists some non-basic variable k
x with a reduced cost − < 0 k k
z c. Then
k
x
z
and the objective function can be improved by increasing k
x from its current
value of zero. Typically, we choose to increase that non-basic variable that forces the
greatest rate of change of the objective, that is, the non-basic variable with the most
negative j j
z − c. The selected variable k
x is called the entering variable. That is, k
x is
going to enter the current basis.
Determining the leaving variable
Letís now investigate the consequence of the preceding results. The question is: we want
to bring in k
a
r
into the basis, which variable (column) should be kicked out? Consider the
vector of coefficient of the non-basic variable k
x and let
k k
B a
r r − 1
Note that the rate of change of the basic variables with respect to the non-basic variable
k
x is given by
k k
k
B
B a
x
x
−
r 1
That is, if the non-basic variable k
x is increased from its current value of zero while
holding all other non-basic variable at zero, the basic variables will change according to
the relationship
B k k k k
− 1 − 1 − 1
( )
r
Because all variables must remain nonnegative, it follows that
1
= − ≥
−
B k k
Now let
From the above graph, we can get every corner point coordinates, then substitute into the
maximum equation, and we get the solution of z = 38.
Using our algorithm
1 2 3
x − x + x =
1 2 4
x + x + x =
2 5
x + x =
1
x ≥ 0 2
x ≥ 0 3
x ≥ 0 4
x ≥ 0 5
x ≥
The data for this problem can be summarized as follows:
r
ú
ú
ú
û
ù
ê
ê
ê
ë
é −
ú
ú
ú
û
ù
ê
ê
ê
ë
é
b
r
We begin the solution process by choosing a convenient starting basis matrix B. Because
the solution will be determined by B
-
, we will choose the starting basis matrix B = I.
ú
ú
ú
û
ù
ê
ê
ê
ë
é
5
4
3
x
x
x
x B
r
ú
ú
ú
û
ù
ê
ê
ê
ë
é
ú
û
ù
ê
ë
é
2
1
x
x
x N
r
4 9
10
18
X
Figure 2. Solution by a graph for this example
X
1
x
z
2
x
z
Because
2
x
z
1
x
z
, therefore choose 2
x as the entering variable.
3 1 2
x = 4 − x + 2 x
4 1 2
x = 18 − 2 x − x
5 2
x = 10 − x
By the minimum ratio test, the maximum value of 2
x is equal to minimum {18, 10) = 10.
Therefore, 5
x is the departing variable. Then we have:
2 5
x = 10 − x
3 1 5
x = 24 − x + 2 x
4 1 5
x = 8 − 2 x + x
1 5
z = 2 x + 30 − 3 x
This solution is not yet optimal because 2 0
1
x
z
, thus 1
x is chosen as the entering
variable. As before the minimum ratio test yields minimum {24, 4) = 4, and 4
x is the
departing variable. Then we have:
1 4 5
x = 4 − x + x
2 5
x = 10 − x
3 4 5
x = 20 + x − x
4 5
z = 38 − x − 2 x
Therefore, maximum value is 38, at point of (4,10).
Duality
Given primal (P)
max z cx
rr
Constraints: Ax b
r r
General duality
The objective may be either of a maximizing or minimizing form, variables may be
restricted or unrestricted, or the constraints may be of any form and any mixture of the
forms. These motivate the rules for finding the dual from the general form. By utilizing
the relationship in Table 1.2, it is possible to write the dual problem for a given linear
programming without going through the intermediate step of transforming the problem to
canonical form.
TABLE 1.2 PRIMAL-DUAL RELATIONSHIPS
Maximization problem Minimization problem
Constraints Variables
= unrestricted
Variables Constraints
unrestricted =
Example 1.5:
max z cx
rr
Constraints: Ax b
r r
r r
x ≥
min z by
r
r
Constraints: yA c
r r
y
r
unrestricted
Weak Duality:
Given (P) & (D)
c x b y
r
r rr
Proof : c x y Ax yb by
r
r r r r r r r
Corollary
If (P) is unbounded, (D) is infeasible.
If (D) is unbounded, (P) is infeasible.
If (P) is infeasible, (D) is unbounded or infeasible.
Strong Duality:
Given (P) & (D) and
x
r
optimal for (P) and
y
r
optimal for (D), then
c x by
r
r rr
Proof: Given primal (P)
Max z cx
rr
Constraints: Ax b
r r
r r
x ≥
we can rewrite (P) as :
Max S
z cx x
r
r rr
Constraints: b
x
x
S
r
r
r
ú
û
ù
ê
ë
é
r r
x ≥ , 0
r r
S
x
Let B be the optimal basis. Then,
z cB b B
r r − 1
= , x B b
r r
=
The Dual (D) is:
Min yb
r r
Constraints: yA c
r r
r r
y ≥
Choose
y = c B B
r r
then we have c x yb
r rr r
=. So we have a vector
y
r
in the dual space,
where the dual objective function has the same value as the primal objective function. All
we need to show is that
y
r
is feasible.
Note that the primal basis must satisfy − ≥ 0 j j
z c for all j. Thus, we have
1
− ≥
−
c B A c B
r r
i.e.
y
r
A c
r
≥. Since, we also have 0 0
1
r r r
−
c B I B
, i.e. 0
1
r r
−
c B B
, we have:
y
r
r
Proof:
yb ys t x
y b s t x
yAx t x
cx yA t x
r
r rr
r r
r rr
r r
r r rr
rr r r r
So we have 0
y s + t x =
r r rr
. But all the vectors, , ,
s y
r r
r r (^) r
t x ≥. The theorem follows.
References
Combinatorial Optimization. John Wiley & Sons, Inc., 1998.
New Jersey 07458, 1994.