Solution
Q1
(a)
(b)
- 0;
- 4;
- 6;
- 16/3;
©
Iteration 0
Choose (0,0) as the initial CPF solution to examine.
Optimality test
Adjacent CPF solutions are better
⇒
\Rightarrow
⇒ (0,0) is not an optimal solution.
Iteration 1
1.Move along
x
2
x_2
x2(along
x
2
x_2
x2 axis increases Z at a faster rate)
2.Stop at constraint boundary:
3
x
2
=
8
3x_2=8
3x2=8
3.Solve for the intersection:(0,8/3)
Optimality test
An adjacent CPF solution is better
⇒
\Rightarrow
⇒ (0,8/3) is not an optimal solution.
Iteration 2
1.Move along the edge emanate from (0,8/3) ,move along the edge that increases Z.
2.Stop at the first new constraint boundary in the direction of
x
1
+
3
x
2
=
8
x_1+3x_2=8
x1+3x2=8
3.Solve for the intersection: (2,2)
Optimality test
None of the adjacent CPF solutions are better
⇒
\Rightarrow
⇒ (2,2) is an optimal solution.
Q2
(a)
m
a
x
Z
=
X
1
+
2
X
2
maxZ=X_1+2X_2
maxZ=X1+2X2 s.t.
x
1
+
x
2
+
s
1
=
4
x_1+x_2+s_1=4
x1+x2+s1=4
x
1
+
3
x
2
+
s
2
=
8
x_1+3x_2+s_2=8
x1+3x2+s2=8
x
j
>
0
(
j
=
1
,
2
)
x_j>0(j=1,2)
xj>0(j=1,2)
s
i
>
0
(
i
=
1
,
2
)
s_i>0(i=1,2)
si>0(i=1,2)
(b)
(
x
1
,
x
2
)
=
(
0
,
8
/
3
)
(x_1,x_2)=(0,8/3)
(x1,x2)=(0,8/3)
(
x
1
,
x
2
,
s
1
,
s
2
)
=
(
0
,
8
/
3
,
4
/
3
,
0
)
(x_1,x_2,s_1,s_2)=(0,8/3,4/3,0)
(x1,x2,s1,s2)=(0,8/3,4/3,0)
x
1
,
s
2
x_1,s_2
x1,s2 are non-basic variables.
x
2
,
s
1
x_2,s_1
x2,s1 are basic variables.
(
x
1
,
x
2
)
=
(
2
,
2
)
(x_1,x_2)=(2,2)
(x1,x2)=(2,2)
(
x
1
,
x
2
,
s
1
,
s
2
)
=
(
2
,
2
,
0
,
0
)
(x_1,x_2,s_1,s_2)=(2,2,0,0)
(x1,x2,s1,s2)=(2,2,0,0)
s
1
,
s
2
s_1,s_2
s1,s2 are non-basic variables.
x
1
,
x
2
x_1,x_2
x1,x2 are basic variables.
(
x
1
,
x
2
)
=
(
4
,
0
)
(x_1,x_2)=(4,0)
(x1,x2)=(4,0)
(
x
1
,
x
2
,
s
1
,
s
2
)
=
(
4
,
0
,
0
,
4
)
(x_1,x_2,s_1,s_2)=(4,0,0,4)
(x1,x2,s1,s2)=(4,0,0,4)
x
2
,
s
1
x_2,s_1
x2,s1 are non-basic variables.
x
1
,
s
2
x_1,s_2
x1,s2 are basic variables.
©
Set
x
1
,
s
1
x_1,s_1
x1,s1 equal to 0:
x
2
+
s
1
=
4
x_2+s_1=4
x2+s1=4
3
x
2
=
8
3x_2=8
3x2=8
The solution is(0,8/3,4,0)
Set
s
1
,
s
2
s_1,s_2
s1,s2 equal to 0:
x
1
+
x
2
=
4
x_1+x_2=4
x1+x2=4
x
1
+
3
x
2
=
8
x_1+3x_2=8
x1+3x2=8
The solution is (2,2,0,0)
Set
x
2
,
s
1
x_2,s_1
x2,s1equal to 0:
x
1
=
4
x_1=4
x1=4
x
1
+
s
2
=
8
x_1+s_2=8
x1+s2=8
The solution is(4,0,0,4)
In conclusion, the BF solutions are also the simultaneous of the system of equations obtained in (a).
(d)
(
x
1
,
x
2
)
=
(
8
,
0
)
(x_1,x_2)=(8,0)
(x1,x2)=(8,0)
(
x
1
,
x
2
,
s
1
,
s
2
)
=
(
8
,
0
,
−
4
,
0
)
(x_1,x_2,s_1,s_2)=(8,0,-4,0)
(x1,x2,s1,s2)=(8,0,−4,0)
x
2
,
s
2
x_2,s_2
x2,s2 are non-basic variables.
x
1
,
s
1
x_1,s_1
x1,s1 are basic variables.
(
x
1
,
x
2
)
=
(
0
,
4
)
(x_1,x_2)=(0,4)
(x1,x2)=(0,4)
(
x
1
,
x
2
,
s
1
,
s
2
)
=
(
0
,
4
,
0
,
−
4
)
(x_1,x_2,s_1,s_2)=(0,4,0,-4)
(x1,x2,s1,s2)=(0,4,0,−4)
x
1
,
s
1
x_1,s_1
x1,s1 are non-basic variables.
x
2
,
s
2
x_2,s_2
x2,s2 are basic variables.
(e)
Set
x
2
,
s
2
x_2,s_2
x2,s2 equal to 0:
x
1
+
s
1
=
4
x_1+s_1=4
x1+s1=4
x
1
=
8
x_1=8
x1=8
The solution is:(8,0,-4,0)
Set
x
1
,
s
1
x_1,s_1
x1,s1 equal to 0:
x
2
=
4
x_2=4
x2=4
3
x
2
+
s
2
=
8
3x_2+s_2=8
3x2+s2=8
The solution is:(0,4,-4,0)
Q3
Iteration 0
Set
x
1
,
x
2
x_1,x_2
x1,x2 be the non-basic variables:
s
1
=
4
s_1=4
s1=4
s
2
=
8
s_2=8
s2=8
obtain the value of basic variables:
(
s
1
,
s
2
)
=
(
4
,
8
)
(s_1,s_2)=(4,8)
(s1,s2)=(4,8)
the initial BF solution:
(
x
1
,
x
2
,
s
1
,
s
2
)
=
(
0
,
0
,
4
,
8
)
(x_1,x_2,s_1,s_2)=(0,0,4,8)
(x1,x2,s1,s2)=(0,0,4,8)
Optimality test
Z
=
x
1
+
2
x
2
=
0
Z=x_1+2x_2=0
Z=x1+2x2=0
Increasing the value of
x
1
o
r
x
2
x_1 orx_2
x1orx2 can bring an improvement to Z,so the current BF solution is not optimal.
Iteration 1
1.Rate
x
1
=
1
x_1=1
x1=1
Rate
x
2
=
2
x_2=2
x2=2
choose to move along
x
2
x_2
x2
2.Move as far as possible without leaving feasible region.
Non-basic variable:
x
1
=
0
x_1=0
x1=0
(1)Independent
x
2
x_2
x2
(2)
s
1
=
4
−
x
2
≥
0
s_1=4-x_2\geq0
s1=4−x2≥0
⇒
\Rightarrow
⇒
x
2
≤
4
x_2\leq4
x2≤4
(3)
s
2
=
8
−
3
x
2
≥
0
s_2=8-3x_2\geq0
s2=8−3x2≥0
⇒
\Rightarrow
⇒
x
2
≤
8
/
3
x_2\leq8/3
x2≤8/3
implies
x
2
≤
8
/
3
x_2\leq 8/3
x2≤8/3,
set
x
2
=
8
/
3
x_2=8/3
x2=8/3,
(3)gives
s
2
=
0
s_2=0
s2=0 and leaves the basis.
New eq.(2)=eq.(2)/3=
1
/
3
x
1
+
x
2
+
1
/
3
s
2
=
8
/
3
1/3x_1+x_2+1/3s_2=8/3
1/3x1+x2+1/3s2=8/3
New eq.(1)=eq(1)-New eq.(2):
2
/
3
x
1
+
s
1
−
1
/
3
s
2
=
4
/
3
2/3x_1+s_1-1/3s_2=4/3
2/3x1+s1−1/3s2=4/3
New eq.(0)=eq.(0)+2New eq.(2):
Z
−
1
/
3
x
1
+
2
/
3
s
2
=
16
/
3
Z-1/3x_1+2/3s_2=16/3
Z−1/3x1+2/3s2=16/3
Since s 2 = 0 , x 1 = 0 s_2=0,x_1=0 s2=0,x1=0, the new BF solution ( x 1 , x 2 , s 1 , s 2 ) = ( 0 , 8 / 3 , 4 / 3 , 0 ) (x_1,x_2,s_1,s_2)=(0,8/3,4/3,0) (x1,x2,s1,s2)=(0,8/3,4/3,0),which yields Z=16/3.
Optimality test
The current objective function: Z = 1 / 3 x 1 − 2 / 3 s 2 + 16 / 3 Z=1/3x_1-2/3s_2+16/3 Z=1/3x1−2/3s2+16/3,increasing x 1 x_1 x1 can lead to an adjacent BF solution that is better that current BF solution.
Iteration 2
1.Now,
Z
=
1
/
3
x
1
−
2
/
3
s
2
+
16
/
3
Z=1/3x_1-2/3s_2+16/3
Z=1/3x1−2/3s2+16/3, Z could be increased by increasing
x
1
x_1
x1
2. Non-basic variable is
s
2
s_2
s2, and
s
2
=
0
s_2=0
s2=0
Independent
x
1
x_1
x1
x
2
=
8
/
3
−
1
/
3
x
1
≥
0
,
x
1
≤
8
x_2=8/3-1/3x_1\geq0 ,x_1\leq8
x2=8/3−1/3x1≥0,x1≤8
s
1
=
4
/
3
−
2
/
3
x
1
≥
0
,
x
1
≤
2
s_1=4/3-2/3x_1\geq0,x_1\leq2
s1=4/3−2/3x1≥0,x1≤2
so,
s
1
s_1
s1 is the leaving variable , gives
s
1
=
0
s_1=0
s1=0
3.
New eq.(1)=3/2eq.(1)=
x
1
+
3
/
2
s
1
−
1
/
2
s
2
=
2
x_1+3/2s_1-1/2s_2=2
x1+3/2s1−1/2s2=2
New eq.(2)=eq.(2)-1/3New eq.(1)=
−
1
/
2
s
1
+
x
2
+
1
/
6
s
2
=
2
-1/2s_1+x_2+1/6s_2=2
−1/2s1+x2+1/6s2=2
New eq.(0)=eq.(0)+1/3New eq.(0)=
Z
+
1
/
2
s
1
+
1
/
2
s
2
=
6
Z+1/2s_1+1/2s_2=6
Z+1/2s1+1/2s2=6
The new BF solution is ( x 1 , x 2 , s 1 , s 2 ) = ( 2 , 2 , 0 , 0 ) , a n d t h e c o r r e s p o n d i n g Z = 6 (x_1,x_2,s_1,s_2)=(2,2,0,0), and the correspondingZ=6 (x1,x2,s1,s2)=(2,2,0,0),andthecorrespondingZ=6
Optimality test
Since increasing the non-basic variables(
s
1
a
n
d
s
2
s_1 and s_2
s1ands2) would not increase Z, the current BF solution is optimal .The optimal solution (
x
1
∗
,
x
2
∗
,
s
1
∗
,
s
2
∗
)
=
(
2
,
2
,
0
,
0
)
x_1*,x_2*,s_1*,s_2*)=(2,2,0,0)
x1∗,x2∗,s1∗,s2∗)=(2,2,0,0), which implies the optimal solution to the original problem is
(
x
1
∗
,
x
2
∗
)
=
(
2
,
2
)
(x_1*,x_2*)=(2,2)
(x1∗,x2∗)=(2,2) and the corresponding optimal value is
Z
∗
=
6.
Z^*=6.
Z∗=6.
Q4
Iteration 0
The coefficients of both
x
1
,
x
2
x_1,x_2
x1,x2 are negative ,therefore the current BF solution is not optimal.
Iteration 1
Select
x
2
x_2
x2 as entering variables:
Optimal test
The coefficient of
x
1
x_1
x1 in row 0 is negative, the current BF solution is not optimal.
Iteration 2
Optimal test
Since none of the coefficients of row 0 are negative, the current BF solution is optimal. The optimal BF solution is
(
x
1
∗
,
x
2
∗
,
s
1
∗
,
s
2
∗
)
=
(
2
,
2
,
0
,
0
)
(x_1*,x_2*,s_1*,s_2*)= (2,2,0,0)
(x1∗,x2∗,s1∗,s2∗)=(2,2,0,0),which implies the optimal solution to the original problem is
(
x
1
∗
,
x
2
∗
)
=
(
2
,
2
)
(x_1*,x_2*)=(2,2)
(x1∗,x2∗)=(2,2) and the corresponding Z*=6.
Q5
Iteration 0
Optimal test
The coefficients of both
x
1
,
x
3
x_1,x_3
x1,x3 are negative in row 0, therefore the current BF solution is not optimal.
Iteration 1
Optimal test
The coefficient of
x
2
x_2
x2 is negative in row 0,therefore the current BF solution is not optimal.
Iteration 2
Optimal test
None of the coefficients in row 0 are negative,therefore the current BF solution is optimal, the optimal solution is
(
x
1
∗
,
x
2
∗
,
x
3
∗
,
s
1
∗
,
s
2
∗
,
s
3
∗
)
=
(
3
/
2
,
1
/
2
,
0
,
1
,
0
,
0
)
(x_1*,x_2*,x_3*,s_1*,s_2*,s_3*)=(3/2,1/2,0,1,0,0)
(x1∗,x2∗,x3∗,s1∗,s2∗,s3∗)=(3/2,1/2,0,1,0,0),and the corresponding Z*=5/2.