Professional Documents
Culture Documents
False
7. In the standard LP formulation, the resource limits are free in sign. False
8. Only “≤ type” constraints can be transcribed into the standard LP form. False
9. Variables that are free in sign can be treated in any LP problem. True
10. In the standard LP form, all the cost coefficients must be positive. False
8.2 _________________________________________________________________________________
Convert the following problem to the standard LP form:
Solution:
𝑥𝑥3 = 𝑥𝑥3+ − 𝑥𝑥3− ; 𝑦𝑦1 = 𝑥𝑥1 , 𝑦𝑦2 = 𝑥𝑥2 , 𝑦𝑦3 = 𝑥𝑥3+ , 𝑦𝑦4 = 𝑥𝑥3− , 𝑦𝑦5 , 𝑦𝑦6 = surplus variables for the 1st and 2nd
constraints.
Minimize 𝑓𝑓 = 5𝑦𝑦1 + 4𝑦𝑦2 − 𝑦𝑦3 + 𝑦𝑦4
Subject to 𝑦𝑦1 + 2𝑦𝑦2 − 𝑦𝑦3 + 𝑦𝑦4 − 𝑦𝑦5 = 1
2𝑦𝑦1 + 𝑦𝑦2 + 𝑦𝑦3 − 𝑦𝑦4 − 𝑦𝑦6 = 4
𝑦𝑦𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 6
8.3 _________________________________________________________________________________
Convert the following problem to the standard LP form:
Solution:
𝑥𝑥3 , 𝑥𝑥4 , 𝑥𝑥5 : slack variables for the 1st , 2nd and 3rd constraints respectively, 𝑥𝑥6 : a surplus variable for
the 4th constraint.
Minimize 𝑓𝑓 = −𝑥𝑥1 − 2𝑥𝑥2
Subject to −𝑥𝑥1 − 3𝑥𝑥2 + 𝑥𝑥3 = 10
𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥4 = 6
𝑥𝑥1 − 𝑥𝑥2 + 𝑥𝑥5 = 2
𝑥𝑥1 + 3𝑥𝑥2 − 𝑥𝑥6 = 6
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 6
8.4 _________________________________________________________________________________
Convert the following problem to the standard LP form:
Solution:
𝑥𝑥3 : a slack variable for the 1st constraint, 𝑥𝑥4 : a surplus variable for the 2nd constraint.
Minimize 𝑓𝑓 = 2𝑥𝑥1 − 3𝑥𝑥2
Subject to 𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 = 1
−2𝑥𝑥1 + 𝑥𝑥2 − 𝑥𝑥4 = 2
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
8.5 _________________________________________________________________________________
Convert the following problem to the standard LP form:
Solution:
𝑥𝑥3 : a slack variable for the 1st constraint, 𝑥𝑥4 : a surplus variable for the 2nd constraint.
Minimize 𝑓𝑓 = −4𝑥𝑥1 − 2𝑥𝑥2
Subject to −2𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 = 4
𝑥𝑥1 + 2𝑥𝑥2 − 𝑥𝑥4 = 2
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
8.6 _________________________________________________________________________________
Convert the following problem to the standard LP form:
Solution:
𝑥𝑥3 : a slack variable for the 1st constraint, 𝑥𝑥4 : a surplus variable for the 3rd constraint.
Minimize 𝑓𝑓 = −𝑥𝑥1 − 4𝑥𝑥2
Subject to 𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥3 = 5
𝑥𝑥1 + 𝑥𝑥2 = 4
𝑥𝑥1 − 𝑥𝑥2 − 𝑥𝑥4 = 3
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
8.7 _________________________________________________________________________________
Convert the following problem to the standard LP form:
Solution:
𝑥𝑥3 = 𝑥𝑥3+ − 𝑥𝑥3− ; 𝑦𝑦1 = 𝑥𝑥1 , 𝑦𝑦2 = 𝑥𝑥2 , 𝑦𝑦3 = 𝑥𝑥3+ , 𝑦𝑦4 = 𝑥𝑥3− , 𝑦𝑦5 , 𝑦𝑦6 = surplus variables for the 1st and 2nd
constraints.
Minimize 𝑓𝑓 = 5𝑦𝑦1 + 4𝑦𝑦2 − 𝑦𝑦3 + 𝑦𝑦4
Subject to 𝑦𝑦1 + 2𝑦𝑦2 − 𝑦𝑦3 + 𝑦𝑦4 − 𝑦𝑦5 = 1
2𝑦𝑦1 + 𝑦𝑦2 + 𝑦𝑦3 − 𝑦𝑦4 − 𝑦𝑦6 = 4
𝑦𝑦𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 6
8.10 ________________________________________________________________________________
Convert the following problem to the standard LP form:
8.13 ________________________________________________________________________________
Convert the following problem to the standard LP form:
Solution:
𝑥𝑥3 = 𝑥𝑥3+ − 𝑥𝑥3− ; 𝑦𝑦1 = 𝑥𝑥1 , 𝑦𝑦2 = 𝑥𝑥2 , 𝑦𝑦3 = 𝑥𝑥3+ , 𝑦𝑦4 = 𝑥𝑥3− ; multiply by −1 on both sides of the 3rd
constraint; 𝑦𝑦5 , 𝑦𝑦6 , 𝑦𝑦8 = surplus variables for the 1st, 2nd and 4th constraints respectively; 𝑦𝑦7 = a slack
variable for the 3rd constraint.
Minimize 𝑓𝑓 = 8𝑦𝑦1 − 3𝑦𝑦2 + 15𝑦𝑦3 − 15𝑦𝑦4
Subject to 5𝑦𝑦1 − 1.8𝑦𝑦2 − 3.6𝑦𝑦3 + 3.6𝑦𝑦4 − 𝑦𝑦5 = 2
3𝑦𝑦1 + 6𝑦𝑦2 + 8.2𝑦𝑦3 − 8.2𝑦𝑦4 − 𝑦𝑦6 = 5
−1.5𝑦𝑦1 + 4𝑦𝑦2 − 7.5𝑦𝑦3 + 7.5𝑦𝑦4 + 𝑦𝑦7 = 4.5
−𝑦𝑦2 + 5𝑦𝑦3 − 5𝑦𝑦4 − 𝑦𝑦8 = 1.5
𝑦𝑦𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 8
8.14 ________________________________________________________________________________
Convert the following problem to the standard LP form:
Solution:
𝑥𝑥3 , 𝑥𝑥4 = slack variables for the 1st and 2nd constraints respectively; 𝑥𝑥5 = a surplus variable for the 3rd
constraint.
Minimize 𝑓𝑓 = −10𝑥𝑥1 − 6𝑥𝑥2
Subject to 2𝑥𝑥1 + 3𝑥𝑥2 + 𝑥𝑥3 = 90
4𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 80
𝑥𝑥2 − 𝑥𝑥5 = 15
5𝑥𝑥1 + 𝑥𝑥2 = 25
𝑥𝑥1 , 𝑥𝑥2 ≥ 0
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
8.15 ________________________________________________________________________________
Convert the following problem to the standard LP form:
8.16 ________________________________________________________________________________
Convert the following problem to the standard LP form:
8.18 ________________________________________________________________________________
Convert the following problem to the standard LP form:
Solution:
𝑥𝑥2 = 𝑥𝑥2+ − 𝑥𝑥2− ; 𝑦𝑦1 = 𝑥𝑥1 , 𝑦𝑦2 = 𝑥𝑥2+ , 𝑦𝑦3 = 𝑥𝑥2− ; 𝑦𝑦4 = a slack variable for the 1st constraint, and 𝑦𝑦5 = a
surplus variable for the 2nd constraint.
Minimize 𝑓𝑓 = −𝑦𝑦1 − 2𝑦𝑦2 + 2𝑦𝑦3
Subject to 3𝑦𝑦1 + 4𝑦𝑦2 − 4𝑦𝑦3 + 𝑦𝑦4 = 12
𝑦𝑦1 + 3𝑦𝑦2 − 3𝑦𝑦3 − 𝑦𝑦5 = 3
𝑦𝑦𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
8.20 ________________________________________________________________________________
Answer True or False.
1. In the standard LP definition, the number of constraint equations (i.e., rows in the matrix
2. In an LP problem, the number of “≤ type” constraints cannot be more than the number of
3. In an LP problem, the number of “≥ type” constraints cannot be more than the number of
5. A basic solution must have zero value for some of the variables. True
6. A basic solution can have negative values for some of the variables. True
7. A degenerate basic solution has exactly m variables with nonzero values, where m is the
8. A basic feasible solution has all variables with non-negative values. True
9. A basic feasible solution must have m variables with positive values, where m is the number
of equations. False
10. The optimum point for an LP problem can be inside the feasible region. False
11. The optimum point for an LP problem lies at a vertex of the feasible region. True
8.21 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑥𝑥1 − 4𝑥𝑥2
Subject to 𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥3 = 5
2𝑥𝑥1 + 𝑥𝑥2 = 4
𝑥𝑥1 − 𝑥𝑥2 − 𝑥𝑥4 = 1
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
4!
Since n = 4 and m = 3, the problem has 3!1! = 4 basic solutions. These solutions are given in Table
E8.21 along with the corresponding cost function values. Basic feasible solutions are #2 and #4.
Table E8.21
Figure E8.21
𝑥𝑥1 + 2𝑥𝑥2 ≤ 5
𝑓𝑓 = −16
𝑓𝑓 = −9
𝑓𝑓 = −13/3
𝑓𝑓 = −2
clear all
[x1,x2]=meshgrid(-1:0.05:5, -1:0.05:5);
f=-x1-4*x2;
g1=x1+2*x2-5;
h1=2*x1+x2-4;
g2=-x1+x2+1;
g3=-x1;
g4=-x2;
cla reset
axis auto
xlabel('x1'),ylabel('x2')
title('Exercise 8.21')
hold on
cv1=[0:0.05:0.8];
const1=contour(x1,x2,g1,cv1,'g');
cv2=[0:0.01:0.02];
const1=contour(x1,x2,g1,cv2,'k');
cv3=[0:0.01:0.02];
const2=contour(x1,x2,h1,cv3,'k');
cv4=[0:0.03:0.5];
const3=contour(x1,x2,g2,cv4,'g');
cv5=[0:0.01:0.02];
const3=contour(x1,x2,g2,cv5,'k');
cv6=[0:0.03:0.35];
contour(x1,x2,g3,cv6,'g');
cv7=[0:0.04:0.35];
contour(x1,x2,g4,cv7,'g');
cv8=[0:0.01:0.01];
contour(x1,x2,g3,cv8,'k');
cv9=[0:0.01:0.02]
contour(x1,x2,g4,cv9,'k');
grid off
hold off
8.22 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Table E8.22
Figure E8.22
2𝑥𝑥1 + 2𝑥𝑥2 ≥ 5
𝑥𝑥1 − 3𝑥𝑥2 ≤ −3
𝑓𝑓 = 45
𝑓𝑓 = 36
𝑓𝑓 = 25
𝑓𝑓 = 18
𝑓𝑓 = 0
clear all
[x1,x2]=meshgrid(-1:0.05:3, -1:0.05:5);
f=10*x1+18*x2;
g1=x1-3*x2+3;
g2=-2*x1-2*x2+5;
g3=-x1;
g4=-x2;
cla reset
axis auto
xlabel('x1'),ylabel('x2')
title('Exercise 8.22')
hold on
cv1=[0:0.07:1.0];
const1=contour(x1,x2,g1,cv1,'g');
cv2=[0:0.01:0.02];
const1=contour(x1,x2,g1,cv2,'k');
cv3=[0:0.07:0.85];
const3=contour(x1,x2,g2,cv3,'g');
cv4=[0:0.01:0.02];
const4=contour(x1,x2,g2,cv4,'k');
cv6=[0:0.02:0.25];
contour(x1,x2,g3,cv6,'g');
cv7=[0:0.03:0.4];
contour(x1,x2,g4,cv7,'g');
cv8=[0:0.01:0.01];
contour(x1,x2,g3,cv8,'k');
cv9=[0:0.01:0.02]
contour(x1,x2,g4,cv9,'k');
grid off
hold off
8.23 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑦𝑦1 − 2𝑦𝑦2 + 2𝑦𝑦3
Subject to 3𝑦𝑦1 + 4𝑦𝑦2 − 4𝑦𝑦3 + 𝑦𝑦4 = 12
𝑦𝑦1 + 3𝑦𝑦2 − 3𝑦𝑦3 − 𝑦𝑦5 = 3
𝑦𝑦𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
5!
Since n = 5 and m = 2, the problem has at most 2!3! = 10 basic solutions. They are given in Table
E8.23 along with the corresponding cost function values. Basic feasible solutions are #4, #5, #7, #8
and #9.
Table E8.23
8.24 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = 20𝑥𝑥1 − 6𝑥𝑥2
Subject to 3𝑥𝑥1 − 𝑥𝑥2 − 𝑥𝑥3 = 3
4𝑥𝑥1 − 3𝑥𝑥2 = 8
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 3
3!
Since n = 3 and m = 2, the problem has at most 2!1! = 3 basic solutions. They are given in Table
E8.24 along with the corresponding cost function values. Basic feasible solution is #2.
Table E8.24
8.25 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −5𝑥𝑥1 + 2𝑥𝑥2
Subject to 2𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 = 9
𝑥𝑥1 − 2𝑥𝑥2 + 𝑥𝑥4 = 2
−3𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥5 = 3
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
5!
Since n = 5 and m = 3, the problem has 3!2! = 10 basic solutions as shown in Table E8.25. Basic
feasible solutions are #1, 4, 6, 8 and 9.
Table E8.25
8.26 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑥𝑥1 − 4𝑥𝑥2
Subject to 𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥3 = 5
𝑥𝑥1 + 𝑥𝑥2 = 4
𝑥𝑥1 − 𝑥𝑥2 − 𝑥𝑥4 = 3
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
4!
Since n = 4 and m = 3, the problem has 3!1! = 4 basic solutions as shown in the table. The basic
feasible solutions are #2, and #4.
Table E8.26
8.27 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = 5𝑦𝑦1 + 4𝑦𝑦2 − 4𝑦𝑦3 − 𝑦𝑦4
Subject to 𝑦𝑦1 + 2𝑦𝑦2 − 2𝑦𝑦3 − 𝑦𝑦4 − 𝑦𝑦5 = 1
2𝑦𝑦1 + 𝑦𝑦2 − 𝑦𝑦3 + 𝑦𝑦4 − 𝑦𝑦6 = 4
𝑦𝑦𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 6
where 𝑦𝑦1 = 𝑥𝑥1 , 𝑦𝑦2 = 𝑥𝑥2+ , 𝑦𝑦3 = 𝑥𝑥2− , 𝑦𝑦4 = 𝑥𝑥3 , and 𝑦𝑦5 and 𝑦𝑦6 are surplus variables. Since n = 6 and m
6!
= 2, the problem has 2!4! = 15basic solutions as shown in Table E8.27. The basic feasible solutions
are #8, 9, 12, 13 and 14.
Table E8.27
8.28 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = 9𝑥𝑥1 + 2𝑥𝑥2 + 3𝑥𝑥3
Subject to 2𝑥𝑥1 + 𝑥𝑥2 − 3𝑥𝑥3 − 𝑥𝑥4 = 5
−𝑥𝑥1 + 2𝑥𝑥2 − 2𝑥𝑥3 + 𝑥𝑥5 = 2
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
5!
Since n = 5 and m = 2, the problem has 2!3! = 10 feasible solutions as shown in Table E8.28. The
basic feasible solutions are #7 and #10.
Table E8.28
8.29 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −4𝑥𝑥1 − 2𝑥𝑥2
Subject to −2𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 = 4
𝑥𝑥1 + 2𝑥𝑥2 − 𝑥𝑥4 = 2
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
4!
Since n = 4 and m = 2, the problem has 2!2! = 6 basic solutions as shown in Table E8.29. The basic
feasible solutions are #2, 3, and 5.
Table 8.29
8.30 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −3𝑥𝑥1 − 2𝑥𝑥2
Subject to 𝑥𝑥1 − 𝑥𝑥2 − 𝑥𝑥3 = 0
𝑥𝑥1 + 𝑥𝑥2 − 𝑥𝑥4 = 2
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
4!
Since n = 4 and m = 2, the problem has 2!2! = 6 basic solutions as shown in Table E8.30. The basic
feasible solutions are #5 and 6.
Table E8.30
8.31 ________________________________________________________________________________
Find all the basic solutions for the following LP problem using the Gauss-Jordan elimination
method. Identify basic feasible solutions and show them on graph paper.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −4𝑥𝑥1 − 5𝑥𝑥2
Subject to −𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥3 = 10
3𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 18
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
4!
Since n = 4 and m = 2, this problem has 2!2! = 6 basic solutions as shown in Table E8.31. The basic
feasible solutions are #1, 2, 5 and 6.
Table E8.31
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑥𝑥1 − 0.5𝑥𝑥2
Subject to 6𝑥𝑥1 + 5𝑥𝑥2 + 𝑥𝑥3 = 30
3𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥4 = 12
𝑥𝑥1 + 3𝑥𝑥2 + 𝑥𝑥5 = 12
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
where 𝑥𝑥3 , 𝑥𝑥4 and 𝑥𝑥5 are slack variables. The problem is solved by the Simplex method, which is
10 13
given in Table E8.32. The optimum solution is 𝑥𝑥1∗ = 3 , 𝑥𝑥2∗ = 2, and 𝑓𝑓 ∗ = − 3 where the 1st and 2nd
constraints are active.
Table E8.32
8.33________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −3𝑥𝑥1 − 2𝑥𝑥2
Subject to 3𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥3 = 6
−4𝑥𝑥1 + 9𝑥𝑥2 + 𝑥𝑥4 = 36
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
where 𝑥𝑥3 , and 𝑥𝑥4 are slack variables. The problem is solved by the Simplex method, which is given
in Table E8.33. The optimum solutions are points lying on the line segment between (0,3) and (2,0)
with 𝑓𝑓 ∗ = 6.
Table E8.33
Cost 0 0 1 0 𝑓𝑓 + 6
If 𝑥𝑥2 is introduced into the basic set, we get the other solution as
𝑥𝑥2 3/2 1 1/2 0 3
𝑥𝑥4 -35/2 0 -9/2 1 9
Cost 0 0 1 0 𝑓𝑓 + 6
8.34 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑥𝑥1 − 2𝑥𝑥2
Subject to −𝑥𝑥1 + 3𝑥𝑥2 + 𝑥𝑥3 = 10
𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥4 = 6
𝑥𝑥1 − 𝑥𝑥2 + 𝑥𝑥5 = 2
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
where 𝑥𝑥3 , 𝑥𝑥4 and 𝑥𝑥5 are slack variables. The problem is solved by the Simplex method, which is
given in Table E8.34. The optimum solution is 𝑥𝑥1∗ = 2.0, 𝑥𝑥2∗ = 4.0, and 𝑧𝑧 ∗ = 10.0, where the 1st and
2nd constraints are active.
Table E8.34
8.35 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −2𝑥𝑥1 − 𝑥𝑥2
Subject to −𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥3 = 10
3𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 18
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
where 𝑥𝑥3 , and 𝑥𝑥4 are slack variables. The problem is solved by the Simplex method, which is given
in Table E8.35. The optimum solution is 𝑥𝑥1∗ = 6.0, 𝑥𝑥2∗ = 0, and 𝑧𝑧 ∗ = 12.0,where the 2nd constraint
is active.
Table E8.35
8.36 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −5𝑥𝑥1 + 2𝑥𝑥2
Subject to 2𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 = 9
𝑥𝑥1 − 𝑥𝑥2 + 𝑥𝑥4 = 2
−3𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥5 = 3
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
where 𝑥𝑥3 , 𝑥𝑥4 and 𝑥𝑥5 are slack variables. The problem is solved by the Simplex method, which is
given in Table E8.36. The optimum solution is 𝑥𝑥1∗ = 3.667, 𝑥𝑥2∗ = 1.667, and 𝑧𝑧 ∗ = 15.0, where the
1st and 2nd constraints are active.
Table E8.36
8.37 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = 2𝑥𝑥1 − 𝑥𝑥2
Subject to −𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥3 = 10
3𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 18
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
where 𝑥𝑥3 , and 𝑥𝑥4 are slack variables. The problem is solved by the Simplex method, which is given
in Table E8.37. The optimum solution is 𝑥𝑥1∗ = 0.0, 𝑥𝑥2∗ = 5.0 , and 𝑧𝑧 ∗ = −5.0 , where the 1st
constraint is active.
Table E8.37
8.38 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑥𝑥1 + 𝑥𝑥2
Subject to 2𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 = 4
𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 4
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
where 𝑥𝑥3 , and 𝑥𝑥4 are slack variables. The problem is solved by the Simplex method, which is given
in Table E8.38. The optimum solution is 𝑥𝑥1∗ = 2.0, 𝑥𝑥2∗ = 0.0 , and 𝑓𝑓 ∗ = −2.0 , where the 1st
constraint is active. The solution can be verified graphically.
Table E8.38
Basic 𝑥𝑥1 𝑥𝑥2 𝑥𝑥3 𝑥𝑥4 b ratio
𝑥𝑥3 2 1 1 0 4 4/2=2
𝑥𝑥4 1 2 0 1 4 4/1=4
Cost -1 1 0 0 f-0
𝑥𝑥1 1 1/2 1/2 0 2
𝑥𝑥4 0 3/2 -1/2 1 2
Cost 0 3/2 1/2 0 f+2
Figure E8.38
2𝑥𝑥1 + 𝑥𝑥2 ≤ 4
𝑓𝑓 = −1
−𝑥𝑥1 − 2𝑥𝑥2 ≥ −4
𝑓𝑓 = −2
𝑓𝑓 = −3
clear all
[x1,x2]=meshgrid(-1:0.05:4, -1:0.05:4);
f=-x1+x2;
g1=2*x1+x2-4;
g2=x1+2*x2-4;
g3=-x1;
g4=-x2;
cla reset
axis auto
xlabel('x1'),ylabel('x2')
title('Exercise 8.38')
hold on
cv1=[0:0.05:1.0];
contour(x1,x2,g1,cv1,'g');
cv2=[0:0.01:0.02];
contour(x1,x2,g1,cv2,'k');
cv3=[0:0.05:1.0];
contour(x1,x2,g2,cv3,'g');
cv4=[0:0.01:0.02];
contour(x1,x2,g2,cv4,'k');
cv5=[0:0.03:0.5];
contour(x1,x2,g3,cv5,'g');
contour(x1,x2,g4,cv5,'g');
contour(x1,x2,g3,cv4,'k');
contour(x1,x2,g4,cv4,'k');
fv=[-3 -2 -1];
fs=contour(x1,x2,f,fv,'r');
grid off
hold off
8.39 __________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution
Standard LP form:
Minimize 𝑓𝑓 = −2𝑥𝑥1 + 𝑥𝑥2
Subject to 𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥3 = 6
𝑥𝑥1 + 𝑥𝑥4 = 2
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
where 𝑥𝑥3 , and 𝑥𝑥4 are slack variables. The problem is solved by the Simplex method, which is given
in Table E8.39. The optimum solution is 𝑥𝑥1∗ = 2.0, and 𝑥𝑥2∗ = 0.0 and z ∗ = 4.0,where the 2𝑛𝑛𝑛𝑛
constraint is active. The solution can be verified graphically.
Table E8.39
Basic 𝑥𝑥1 𝑥𝑥2 𝑥𝑥3 𝑥𝑥4 b ratio
𝑥𝑥3 1 2 1 0 6 6/1=6
𝑥𝑥4 1 0 0 1 2 2/1=2
Cost -2 1 0 0 f-0
𝑥𝑥3 0 2 1 -1 4
𝑥𝑥1 1 0 0 1 2
Cost 0 1 0 2 f+4
Figure E8.39
Exercise 8.39
2 ≥ x1
6
5 z=3
4
z=4
3 z=5
x2
x1 + 2𝑥𝑥2 ≤ 6
1
-1
-1 -0.5 0 0.5 1 1.5 2 2.5 3 3.5 4
x1
clear all
[x1,x2]=meshgrid(-1:0.05:4, -1:0.05:6);
f=-2*x1+x2;
g1=x1+2*x2-6;
g2=x1-2;
g3=-x1;
g4=-x2;
cla reset
axis auto
xlabel('x1'),ylabel('x2')
title('Exercise 8.39')
hold on
cv1=[0:0.04:0.6];
contour(x1,x2,g1,cv1,'g');
cv2=[0:0.01:0.02];
contour(x1,x2,g1,cv2,'k');
cv3=[0:0.02:0.25];
contour(x1,x2,g2,cv3,'g');
cv4=[0:0.01:0.01];
contour(x1,x2,g2,cv4,'k');
cv5=[0:0.025:0.3];
contour(x1,x2,g3,cv5,'g');
cv6=[0:0.03:0.4];
contour(x1,x2,g4,cv6,'g');
contour(x1,x2,g3,cv4,'k');
contour(x1,x2,g4,cv4,'k');
fv=[-5 -4 -3];
fs=contour(x1,x2,f,fv,'r');
grid off;
hold off;
8.40 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑥𝑥1 − 𝑥𝑥2
Subject to 4𝑥𝑥1 + 3𝑥𝑥2 + 𝑥𝑥3 = 12
𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 4
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
where 𝑥𝑥3 , and 𝑥𝑥4 are slack variables. The problem is solved by the Simplex method, which is given
in Table E8.40. The optimum solution is 𝑥𝑥1∗ = 2.4, 𝑥𝑥2∗ = 0.8, and 𝑧𝑧 ∗ = 3.2, where the 1st and 2nd
constraints are active.
Table E8.40
8.41 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = 2𝑥𝑥1 − 𝑥𝑥2
Subject to 𝑥𝑥1 + 𝑥𝑥3 = 2
𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 6
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
where 𝑥𝑥3 , and 𝑥𝑥4 are slack variables. The problem is solved by the Simplex method, which is given
in Table E8.41. The optimum solution is 𝑥𝑥1∗ = 0.0, 𝑥𝑥2∗ = 3.0, and 𝑧𝑧 ∗ = 3.0, where the 2nd constraint
is active.
Table E8.41
8.42 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −2𝑥𝑥1 − 𝑥𝑥2
Subject to 4𝑥𝑥1 + 3𝑥𝑥2 + 𝑥𝑥3 = 12
𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 4
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
where 𝑥𝑥3 , and 𝑥𝑥4 are slack variables. The problem is solved by the Simplex method, which is given
in Table E8.42. The optimum solution is 𝑥𝑥1∗ = 0.0, 𝑥𝑥2∗ = 4.0 , and 𝑧𝑧 ∗ = 22/3 , where the 1st
constraint is active.
Table E8.42
8.43 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = 9𝑥𝑥1 + 2𝑥𝑥2 + 3𝑥𝑥3
Subject to −2𝑥𝑥1 − 𝑥𝑥2 + 3𝑥𝑥3 + 𝑥𝑥4 = 5
𝑥𝑥1 + 2𝑥𝑥2 − 2𝑥𝑥3 + 𝑥𝑥5 = 2
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
where 𝑥𝑥3 , 𝑥𝑥4 and 𝑥𝑥5 are slack variables. The problem is solved by the Simplex method, which is
given in Table E8.43. The optimum solution is 𝑥𝑥1∗ = 0.0, 𝑥𝑥2∗ = 0.0, and 𝑧𝑧 ∗ = 0.0.
Table E8.43
8.44 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑥𝑥1 − 𝑥𝑥2
Subject to 4𝑥𝑥1 + 3𝑥𝑥2 + 𝑥𝑥3 = 9
𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 6
2𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥5 = 6
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
where 𝑥𝑥3 , 𝑥𝑥4 and 𝑥𝑥5 are slack variables. The problem is solved by the Simplex method, which is
given in Table E8.44. The optimum solution is 𝑥𝑥1∗ = 0.0, 𝑥𝑥2∗ = 3.0, and 𝑧𝑧 ∗ = 3.0, where the 1st and
2nd constraints are active.
Table E8.44
8.45 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑥𝑥1 − 4𝑥𝑥2
Subject to 𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 = 16
𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 28
2𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥5 = 24
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
where 𝑥𝑥3 , 𝑥𝑥4 and 𝑥𝑥5 are slack variables. The problem is solved by the Simplex method, which is
given in Table E8.45. The optimum solution is 𝑥𝑥1∗ = 0.0, 𝑥𝑥2∗ = 14.0, and 𝑓𝑓 ∗ = −56.0, where the 2nd
constraint is active.
Table E8.45
8.46 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = 𝑥𝑥1 − 𝑥𝑥2
Subject to 4𝑥𝑥1 + 3𝑥𝑥2 + 𝑥𝑥3 = 12
𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 4
2𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥5 = 4
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
where 𝑥𝑥3 , 𝑥𝑥4 and 𝑥𝑥5 are slack variables. The problem is solved by the Simplex method, which is
given in Table E8.46. The optimum solution is 𝑥𝑥1∗ = 0.0, 𝑥𝑥2∗ = 2.0, and 𝑓𝑓 ∗ = −2.0, where the 2nd
constraint is active.
Table E8.46
8.47 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −2𝑥𝑥1 − 3𝑥𝑥2
Subject to 𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 = 16
𝑥𝑥1 + 2𝑥𝑥2 + 𝑥𝑥4 = 28
2𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥5 = 24
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
where 𝑥𝑥3 , 𝑥𝑥4 and 𝑥𝑥5 are slack variables. The problem is solved by the Simplex method, which is
given in Table E8.47. The optimum solution is 𝑥𝑥1∗ = 0.0, 𝑥𝑥2∗ = 14.0, and 𝑧𝑧 ∗ = 42.0, where the 2nd
constraint is active.
Table E8.47
8.48 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑥𝑥1 − 2𝑥𝑥2
Subject to 2𝑥𝑥1 − 𝑥𝑥2 − 𝑥𝑥3 = 0
−2𝑥𝑥1 − 3𝑥𝑥2 + 𝑥𝑥4 = 6
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 4
where 𝑥𝑥3 is surplus variable, and 𝑥𝑥4 is slack variable. The initial tableau for the Simplex method is
set up in Table E8.48. The problem is unbounded which can be verified graphically. Since the basic
feasible solution is degenerate the Simplex method fails due cycling of iterations.
Table E8.48
Matlab Code
%Exercise 8.48
%Create a grid from -4 to 8 with an increment of 0.5 for the variables x1 and x2
[x1,x2]=meshgrid(-4:0.5:8.0, -4:0.5:8.0);
%Enter functions for the minimization problem
f=-x1-2*x2;
g1=-2*x1+x2;
g2=-2*x1-3*x2-6;
g3=-x1;
g4=-x2;
cla reset
axis auto %Minimum and maximum values for axes are determined
automatically
%Limits for x- and y-axes may be specified with the command
%axis ([xmin xmax ymin ymax])
xlabel('x1'),ylabel('x2') %Specifies labels for x- and y-axes
title ('Exercise 8.48')
hold on
cv1=[0 0];
cv12=[0.01:0.01:1];
const1=contour(x1,x2,g1,cv1,'k','LineWidth',4);
text(2,-3,'g2')
const1=contour(x1,x2,g1,cv12,'c');
const2=contour(x1,x2,g2,cv1,'k','Linewidth',3);
const2=contour(x1,x2,g2,cv12,'c');
text(3.5,6.5,'g1')
cv34=[0.01:0.01:0.2];
const3=contour(x1,x2,g3,cv1,'k','Linewidth',4);
const3=contour(x1,x2,g3,cv34,'c');
text(0.25,7,'g3')
const4=contour(x1,x2,g4,cv1,'k','LineWidth',3);
text(6,0.5,'g4')
const4=contour(x1,x2,g4,cv34,'c');
text(2,2,'Feasible Region')
fv=[0 -3 -6 -9 -12 -15]; %Defines contours for the minimization function
fs=contour(x1,x2,f,fv,'r--'); %'r' specifies red dashed lines for function
contours
clabel(fs) %Automatically puts the contour value on the graph
hold off %Indicates end of this plotting sequence
%Subsequent plots will appear in separate windows
Exercise 8.48
8
-12 g3
g1
6
-15
4 -6
x2
2 Feasible Region -9
0
g4
0
-3
-2
g2
-4
-4 -2 0 2 4 6 8
x1
8.49 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −2𝑥𝑥1 − 2𝑥𝑥2 − 𝑥𝑥3
Subject to 10𝑥𝑥1 + 9𝑥𝑥3 + 𝑥𝑥4 = 375
𝑥𝑥1 + 3𝑥𝑥2 + 𝑥𝑥3 + 𝑥𝑥5 = 33
𝑥𝑥3 + 𝑥𝑥6 = 2
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 6
where 𝑥𝑥4 , 𝑥𝑥5 and 𝑥𝑥6 are slack variables. The problem is solved by the Simplex method, which is
given in Table E8.49. The optimum solution is 𝑥𝑥1∗ = 33.0, 𝑥𝑥2∗ = 0.0, 𝑥𝑥3∗ = 0.0, and 𝑧𝑧 ∗ = 66.0,
where the 2nd constraint is active.
Table E8.49
8.50 ________________________________________________________________________________
Solve the following problem by the Simplex method and verify the solution graphically whenever
possible.
Solution:
Standard LP form:
Minimize 𝑓𝑓 = −𝑥𝑥1 − 2𝑥𝑥2
Subject to 2𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 = 5
3𝑥𝑥1 + 4𝑥𝑥2 + 𝑥𝑥4 = 10
𝑥𝑥1 + 𝑥𝑥5 = 2
𝑥𝑥𝑖𝑖 ≥ 0; 𝑖𝑖 = 1 to 5
where 𝑥𝑥3 , 𝑥𝑥4 and 𝑥𝑥5 are slack variables. The problem is solved by the Simplex method, which is
given in Table E8.50. The optimum solution is 𝑥𝑥1∗ = 0.0, 𝑥𝑥2∗ = 2.5, and 𝑧𝑧 ∗ = 5.0, where the 2nd
constraint is active.
Table E8.50
the book of the kings, etc.] Compare xxv. 26, and see
Introduction, § 5.
Chapter XXVIII.
1‒4 (= 2 Kings xvi. 1‒4).
Ahaz succeeds and practises Idolatry.
And he was also delivered into the hand of the king of Israel] 2
Kings records but a single invasion, the forces of Syria and Israel
being confederate. The Chronicler’s phrase implies that two separate
invasions and disasters befell Ahaz—“he was also delivered.”
7. the ruler of the house] Hebrew nāgīd. Probably the head of the
king’s household is meant, his “chancellor”; but compare Nehemiah
xi. 11, “the ruler (nāgīd) of the house of God.”
It is very evident that the writer of this fine story had in mind the
no less effective and beautiful narrative of Elisha’s dealing with the
captured Syrian army (2 Kings vi. 21‒23).
the Lord ... was wroth ... and ye have slain them in a rage which
hath reached up unto heaven] Compare Zechariah i. 15, “I am very
sore displeased with the nations that are at ease; for I was but a little
displeased, and they helped forward the affliction.”
anointed them] Part of the host’s duty; compare Luke vii. 44‒46.
² Hebrew a captivity.
16. the kings] LXX. “king” (singular). This monarch was Tiglath-
pileser IV; compare 1 Kings xvi. 7.
the gods ... which smote him] Early passages of the Old
Testament show that the Israelites for long believed the gods of other
peoples to be no less real than Jehovah. Later, when the teaching of
the great prophets had impressed on the people the sense of
Jehovah’s supreme majesty, the alien deities, though still conceived
as real Beings holding sway over the nations worshipping them,
were felt to be incomparable with Jehovah, hardly deserving
therefore the title of God. Still later, in certain circles, all reality
whatever was denied to the gods of the heathen; they were nothing
at all (compare Isaiah xl.‒xlviii., passim). Almost certainly the last
opinion would be the belief of the Chronicler and of most orthodox
Jews of his time; so that it is unnecessary to suppose that the
present phrase “which smote him” is more than a convenient way of
speaking. It does not indicate that the Chronicler, or even his source
in Kings, believed in the existence of these gods of Damascus. On
the other hand the Chronicler (and his source) does imply in this
verse that Ahaz had a lively belief in the efficacy and reality of the
gods of his foes; and therein no doubt he correctly represents the
condition of thought in that period.
the gods of the kings of Syria helped them] At this time the
Syrians of Damascus had been conquered by the Assyrians under
Tiglath-pileser (2 Kings xvi. 9), so that either we must suppose a
confusion in the Chronicler’s mind, or else the statement needs to be
corrected by reading “kings of Assyria (Asshur)” for “kings of Syria
(Aram).” The reading “Syria” might be due to some writer or scribe,
who lived at a time when one Empire extended from Babylon to the
Mediterranean and included both Syria and Assyria. Such was the
case under the Persians and under the successors of Alexander
down to the time of the Maccabees. The Romans similarly failed at
first to distinguish the ancient empire east of the Euphrates, i.e.
Assyria (= Asshur), from the peoples west of the Euphrates, the
Arameans, whom they mistakenly called “Syrians” (a shortened form
of “Assyrians”), whose chief cities were Antioch, Hamath, and
Damascus. This use of “Syrian” has passed over into English, but
the more accurate designation is “Aramean”; compare Genesis
xxviii. 5 (Revised Version).