Professional Documents
Culture Documents
CA3122 Chap 4 PDF
CA3122 Chap 4 PDF
Duality
4.1 The Dual Problem
If the solution of a problem yields the solution of another
problem, then the first one is known as the “primal” and
the second, the “dual”. The parameter in the two problems
are the same, except they are being arranged in different
orders. For example, minimization and maximization
problems in LP forms a pair of primal and dual problems.
Ax b
xj 0 ; j 1,2,..., n
m
Constraints: aij yi c j ; j 1,2,..., n
i 1
or ATy b
yi unrestricted ; i 1,2,..., m
Remarks:
A dual variable is defined for each of the m primal
constraint equations.
Inverse matrix
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 0 0 3/4 1/2 0 0 21
x1 0 1 0 1/4 -1/2 0 0 3
x2 0 0 1 -1/8 3/4 0 0 3/2
s3 0 0 0 3/8 -5/4 1 0 5/2
s4 0 0 0 1/8 -3/4 0 1 1/2
1 4 1 2 0 0 24 3
0 6 3 2
1 8 3 4 0
3 8 5 4 1 0 1 5 2
1 8 3 4 0 1 2 1 2
Prof. C.W. Lim CA3122 Engineering Analysis Part 2: Operations Research 11
Method 1
optimal primal z -coefficient of starting variable xi
optimal value of
dual variable yi objective coefficient of
original xi
Method 2
row vector of
optimal value optimal primal
original objective coefficients
of dual variables of optimal primal basic variables inverse
The elements of the row vector must appear in the same order
the basic variables are listed in the Basic column of the simplex
tableau.
At the optimum, the relationship holds as a strict equation, meaning that the two objective values
are equal. Note that the relationship does not specify which problem is primal and which is dual.
Only the sense of optimization (maximization or minimization) is important in this case.
The optimum cannot occur with z strictly less than w (i.e., z w ) because, no matter how close z
and w are, there is always room for improvement, which contradicts optimality as the figure above
demonstrates.
The objective value for minimization problem provides an upper bound on the objective value for
maximization problem. In the course of successive simplex iteration, an equilibrium will be
reached where the maximization and the minimization objective values are equal.
xj 0 ; j 1,2,..., n yi 0 ; i 1,2,..., m
for any two feasible primal and dual solutions. This relationship
also implies that so long as the total return from all the activities
is less than the worth of the resources, the corresponding primal
and dual solutions cannot be optimal.
From Property I,
m
Objective coefficient of x j aij yi c j
i 1
unit of activity j
Letting x1, x2, x3 represent the daily number of units assembled of trains, trucks
and cars, the associated LP model and its dual are given as:
Imputed cost of used resources per unit of activity j < Profit per unit of activity j
In the example, x1= 0 means that toy trains are not profitable. Toy trains will
become profitable only if z1 < c1 for x1. There are two options to increase profit :
(i) increase the profit per unit c1 by raising the unit selling price (not advisable), or
(ii) decrease the imputed cost of the used resources z1 (= y1 + 3y2 + y3). This option
is more plausible because it entails making improvements in the assembly
operations, mainly by reducing their unit usage of available operations times. To
determine a new imputed cost such that it falls below the unit profit c1, we have
1(1 r1 ) y1 3(1 r2 ) y2 1(1 r3 ) y3 3
where (0 r1, r2, r3 1) are the proportions by which the unit times of the three
operations are reduced. For y1 = 1, y2 = 2, and y3 = 0, we obtain
r1 6r2 1
Any feasible values of r1 and r2 that satisfies this inequality render toy trains
profitable. For example, r1 = 0.25 and r2 = 0.2, we have z1 - c1 = - 2.55.
Example
Write the dual problem for Reddy Mikks model and determine its
optimum solution from the optimal tableau in the standard primal
problem.
Standard primal:
Maximize z 5 x1 4 x2 0 s1 0 s2 0 s3 0 s4
subject to 6 x1 4 x2 s1 24
x1 2 x2 s2 6
x1 x2 s3 1
x2 s4 2
x1 , x2 , s1 , s2 , s3 , s4 0
Optimal tableau:
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 0 0 3/4 1/2 0 0 21
x1 0 1 0 1/4 -1/2 0 0 3
x2 0 0 1 -1/8 3/4 0 0 3/2
s3 0 0 0 3/8 -5/4 1 0 5/2
s4 0 0 0 1/8 -3/4 0 1 1/2
Dual:
Example (Cont.)
Applying Property I to the starting variables s1,s2,s3,s4 in
optimal iteration
Starting primal
variables
s1 s2 s3 s4
z-eqn coefficient 3/4 1/2 0 0
Associated dual
constraints y1 0 y2 0 y3 0 y4 0
Eqn resulting from
Property I
y1 -0=3/4 y2 -0=1/2 y3 -0=0 y4 -0=0
primal variables x1 x2 s3 s4
z-eqn coefficient 0 0 0 0
Associated dual constraints 6y1 + y2- y3 5 4y1 +2y2+ y3 +y4 4 y3 0 y4 0
Eqn resulting from Property I 6y1 + y2- y3 -5=0 4y1 +2y2+ y3 +y4-4=0 y3 -0=0 y4 -0=0
y1 3 4, y2 1 2, y3 0, y4 0, w 21
Gaussian elimination
Example
1 4 2 : 3 r1 1 4 2 : 3 r1
2 2 1 : 1 r 0 10 5 : 5 r r 2r
2 2a 2 1
3 1 2 : 11 r3 0 11 8 : 2 r3a r3 3r1
1 4 2 : 3 r1 x 4 y 2z 3
0 10 5 : 5 r2 a1 10y 5 z 5
0 0 2.5 : 7.5 11 2.5 z 7.5
r3b r3a r2 a
10
x 1 1 4 2 1 3
y2 2 2 1 2 1
z3 3 1 2 3 11
Prof. C.W. Lim CA3122 Engineering Analysis Part 2: Operations Research 32