Primal Problem
Max:2x1+x2+6x3−x4s.t.⎩⎪⎪⎪⎪⎨⎪⎪⎪⎪⎧x1+2x2+x3−x4<=10x1+2x3+x4>=5x2+x3+2x4=20x1>=0,x2<=0,x3<=0
The general vector form of the primal problem can be expressed as:
Max:z=CXs.t.{AX<=BX>=0
We can represent the coefficients of the original problem as matrices:
A=⎣⎢⎡110201121−112⎦⎥⎤ B=⎣⎢⎡10520⎦⎥⎤ C=[216−1]
Dual Problem
The general vector form of the dual problem can be expressed as:
Min:zd=BTYs.t.{ATY>=CTY>=0
Then, we can get the matrices of coefficients of the dual problem:
AT=⎣⎢⎢⎢⎡121−110210112⎦⎥⎥⎥⎤ CT=⎣⎢⎢⎢⎡216−1⎦⎥⎥⎥⎤ BT=[10520]
Step 1: Get the basic framework
Ignoring the symbol of the constraints for a moment (Replace with ?), we can get the basic framework of the dual problem:
Min:10y1+5y2+20y3s.t.⎩⎪⎪⎪⎪⎨⎪⎪⎪⎪⎧1y1+1y2+0y3(?)22y1+0y2+1y3(?)11y1+2y2+1y3(?)6−1y1+1y2+2y3(?)−1
Note:
-
One constraint of the primal problem corresponds to a dual variable.
-
The dual variable is multiplied by the right side (B) of the primal problem to obtain the objective function of the dual problem.
-
The coefficients of the objective function of the primal problem (C) is on the right side of the constraints of the dual problem.
Step 2: Determines the symbol of constraints
Primal problem | Dual problem |
Max | Min |
Variables | >= | >= | Contraints |
<= | <= |
unconstrained | = |
- If the primal problem is a maximization problem, the i th constraint sign of the dual problem is the same as the sign of the i th variable of the primal problem.
Primal problem | Dual problem |
Min | Max |
Variables | >= | <= | Contraints |
<= | >= |
unconstrained | = |
-
If the primal problem is a minimization problem, the i th constraint sign of the dual problem is the opposite of the sign of the i th variable of the primal problem.
-
If a variable is unconstrained, its corresponding constraint to the dual problem is given an equal sign.
The primal problem in this example is a maximization problem, so we can get:
Primalproblem:Dualproblemx1>=0:1y1+1y2+0y3>=2x2<=0:2y1+0y2+1y3<=1x3<=0:1y1+2y2+1y3<=6x4(unconstrained):−1y1+1y2+2y3=−1
Step 3: Determine the symbol of decision variables
Primal problem | Dual problem |
Max | Min |
Contraints | >= | <= | Variables |
<= | >= |
= | unconstrained |
- If the primal problem is a maximization problem, the variable sign of the dual problem is the opposite of the sign of the constraint of the primal problem.
Primal problem | Dual problem |
Min | Max |
Contraints | >= | >= | Variables |
<= | <= |
= | unconstrained |
- If the primal problem is a minimization problem, the variable sign of the dual problem is the same as that of the constraint in the primal problem.
The primal problem in this example is a maximization problem, so we can get:
Primalproblem:Dualproblemx1+2x2+x3−x4<=10:y1>=0x1+2x3+x4>=5:y2<=0x2+x3+2x4=20:y3(unconstrained)
Therefore, the final dual problem is as follows:
Min:10y1+5y2+2y3s.t.⎩⎪⎪⎪⎪⎪⎪⎪⎨⎪⎪⎪⎪⎪⎪⎪⎧y1+y2>=22y1+y3<=1y1+2y2+y3<=6−y1+y2+2y3=−1y1>=0,y2<=0,y3(unconstrained)
Reference Links