0% found this document useful (0 votes)
1 views

LPexercisesCorrection

The document contains exercises on linear programming, including modeling problems to minimize costs and maximize profits for various production scenarios. It provides formulations for linear programs based on constraints such as production rates, working hours, and storage capacities. Additionally, it includes transformations of LPs into standard forms and graphical solutions for specific linear programs.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

LPexercisesCorrection

The document contains exercises on linear programming, including modeling problems to minimize costs and maximize profits for various production scenarios. It provides formulations for linear programs based on constraints such as production rates, working hours, and storage capacities. Additionally, it includes transformations of LPs into standard forms and graphical solutions for specific linear programs.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Exercises on Linear Programming

CORRECTION

Modeling as linear programs


Exercise 1. A company is producing a product which requires three parts at
the final assembly stage. These three parts can be produced by two different
departments as detailed in Table 1.

Production rate (units/h) Cost


Part 1 Part 2 Part 3 ($/h)
Department 1 7 6 9 25.0
Department 2 6 11 5 12.5

Table 1: Parameters for Exercise 1.

This week the company has to produce 1050 assembled products, but up
to 1200 assembled products can be produced if necessary. During the week,
department 1 has 100 working hours available, but department 2 has 110 working
hours available. The storage space of the company can only store at most 200
unassembled production parts of all types at the end of the week. Any fractional
parts are accepted. Formulate the problem of minimizing the cost of producing
the assembled products needed this week as a linear program.

Solution
Obviously, we may not need to use of all the available working time. Therefore
we need to decide the amount of time given over to the production of parts in
each department. Let

• x1 be the number of hours used in department 1,

• x2 number of hours used in department 2,

• y the number of assembled products made.

We come up with the following linear programming formulation.

min 25x1 + 12.5x2


s.t. 7x1 + 6x2 ≥ y
6x1 + 11x2 ≥ y
9x1 + 5x2 ≥ y

1
2

22x1 + 22x2 − 3y ≤ 200


y ≥ 1050
y ≤ 1200
x1 ≤ 100
x2 ≤ 110
x1 , x 2 ≥0

Note that 22x1 + 22x2 is the total amout of production parts produced (i.e.,
(7x1 + 6x2 ) + (6x1 + 11x2 ) + (9x1 + 5x2 )).

Exercise 2. A company has 4 available workstations to make 3 products. The


production time (in minutes) per unit produced varies from workstation to work-
station as shown in Table 2.

Workstation
W1 W2 W3 W4
Production 1 5 7 4 10
Production 2 6 12 8 15
Production 3 7 12 9 11

Table 2: Production time (in minutes) per unit produced in workstations.

The profit contribution (in USD) per unit varies from workstation to workstation
as given in Table 3.

Workstation
W1 W2 W3 W4
Production 1 10 8 6 9
Production 2 16 15 18 20
Production 3 13 16 19 10

Table 3: Profit contribution (in USD) per unit in workstations.

In this week there are 35 working hours available at each workstation. The
customers need at least 100 units of product 1, 150 units of product 2, and
100 units of product 3, but they promise buying all produced products. Any
product fractions are accepted. Formulate the problem of maximizing the profit
of producing the products needed this week as a linear program.

Solution
One might think that the variables should be the amount of each product to
make. However, on closer inspection, it is clear that we need to decide how much
of each product to make at each workstation. Hence we let

• xij be the amount of product i made at workstation j this week (with


i = 1, 2, 3; j = 1, 2, 3, 4).
3

We come up with the following linear programming formulation.

max 10x11 + 8x12 + 6x13 + 9x14


+16x21 + 15x22 + 18x23 + 20x24
+13x31 + 16x32 + 19x33 + 10x34
s.t. 5x11 + 6x21 + 7x31 ≤ 2100
7x12 + 12x22 + 12x32 ≤ 2100
4x13 + 8x23 + 9x33 ≤ 2100
10x14 + 15x24 + 11x34 ≤ 2100
x11 + x12 + x13 + x14 ≥ 100
x21 + x22 + x23 + x24 ≥ 150
x31 + x32 + x33 + x34 ≥ 100
xij ≥ 0 (i = 1, 2, 3; j = 1, 2, 3, 4)

Note that 35 hours equal 2100 minutes.

Exercise 3. A company manufactures 4 products P1, P2, P3, P4 on two machines


M1 and M2. The time (in minutes) to process one unit of each product on each
machine is shown in Table 4.

M1 M2
P1 10 25
P2 13 20
P3 15 27
P4 9 33

Table 4: Time (in minutes) to process one production unit on machines.

The profit per unit for each product P1, P2, P3, P4 is 10, 12, 17, and 8 (USD)
respectively. Product P1 must be produced on both machines M1 and M2, but
the other products can be produced on either machine M1 or machine M2.
The factory is very small and this means that floor space is very limited. Only
one week’s production is stored in 50 square metres of floor space where the floor
space taken up by each product is 0.1, 0.15, 0.5 and 0.05 (square metres) for
products P1, P2, P3, and P4 respectively.
Customer requirements mean that the amount of product P3 produced should
be related to the amount of product P2 produced. Over a week exactly twice as
many units of product P2 should be produced as product P3.
Machine M1 is out of action for maintenance 5% of the time and machine M2
7% of the time.
Assuming a working week 35 hours long, formulate the problem of how to
manufacture these products to maximize total profit as a linear program.

Solution
4

Machine M1 is out of action for maintenance 5% of the time, so it is available


in 95% of working time of the week. Since a working week is 35 hours long, the
available time of machine M1 in the week is 35 * 60 * 0.95 = 1995 (minutes).
Similarly, the available time of machine M2 in the week is 35 * 60 * 0.93 =
1953 (minutes).
The decision variables should be the amount of each product produced on
each machine. Hence we let

• x1 , x2 , x3 , x4 respectively be the amount of product P1, P2, P3, P4 produced


on machine M1 per week.

• y2 , y3 , y4 respectively the amount of product P2, P3, P4 produced on ma-


chine M2 per week.

Note that product P1 must be processed on both machines M1 and M2, so we


do not need to define y1 as the amount of product P1 produced on machine M2
per week. We come up with the following linear programming formulation.

max 10x1 + 12(x2 + y2 ) + 17(x3 + y3 ) + 8(x4 + y4 )


s.t. 10x1 + 13x2 + 15x3 + 9x4 ≤ 1995
25x1 + 20y2 + 27y3 + 33y4 ≤ 1953
0.1x1 + 0.15(x2 + y2 ) + 0.5(x3 + y3 ) + 0.05(x4 + y4 ) ≤ 50
x2 + y2 = 2(x3 + y3 )
x1 , x 2 , x 3 , x 4 ≥ 0
y2 , y 3 , y 4 ≥ 0
5

General and standard formulations of LPs


Exercise 4. Transform the LP formulation obtained in Exercise 2 into its stan-
dard formulation.
Solution

min 10x11 + 8x12 + 6x13 + 9x14


+16x21 + 15x22 + 18x23 + 20x24
+13x31 + 16x32 + 19x33 + 10x34
s.t. 5x11 + 6x21 + 7x31 ≤ 2100
7x12 + 12x22 + 12x32 ≤ 2100
4x13 + 8x23 + 9x33 ≤ 2100
10x14 + 15x24 + 11x34 ≤ 2100
−x11 − x12 − x13 − x14 ≤ −100
−x21 − x22 − x23 − x24 ≤ −150
−x31 − x32 − x33 − x34 ≤ −100
xij ≥ 0 (i = 1, 2, 3; j = 1, 2, 3, 4)

Exercise 5. Transform the following LP into its standard formulation.

min x1 − x2 + x3
s.t. x1 + 2x2 − x3 ≤3
−x1 + x2 + x3 ≥2
x1 − x2 = 10
x1 ≥0
x2 ≤0

Solution

By setting y2 = −x2 we get non-negative variable y2 . By setting x3 = x+
3 − x3

with x3 , x3 ≥ 0 we replace the unrestricted variable x3 by two non-negative
+

variables x+
3 , x3 . The formulation after transforming is as follows.


max −x1 − y2 − x+ 3 − x3

s.t. x1 − 2y2 − x+ 3 + x3 ≤3

x1 + y 2 − x+ 3 − x3 ≤ −2
x1 + y 2 ≤ 10
−x1 − y2 ≤ −10

x1 , y 2 , x +
3 , x3 ≥0

Exercise 6. (a) Transform the following LP into maximizing problem with un-
restricted variables.

max 2x1 + 3x2 − 4x3


6

s.t. x1 + 2x2 ≥4
x1 − x3 ≤5
x1 ≤0
x2 , x 3 ∈R

(b) Transform the LP in part (a) into minimizing problem with equality con-
straints.

Solution
(a) By setting x1 = y1 − z1 and replacing constraint x1 ≤ 0 by y1 − z1 ≤ 0,
we get rid of sign constraint on x1 . We come up with the following formulation.

max 2y1 − 2z1 + 3x2 − 4x3


s.t. y1 − z1 + 2x2 ≥4
y1 − z1 − x3 ≤5
y1 − z1 ≤0
y1 , y2 , x2 , x3 ∈R

(b) Adding slack variables to inequality constraints and change the sign of
objective function, we get the desired formulation as follows.

min −2x1 − 3x2 + 4x3


s.t. x1 + 2x2 − s1 =4
x1 − x3 + s 2 =5
x1 + s 3 =0
x1 , x 2 , x 3 ∈R
s1 , s 2 , s 3 ≥0
7

2D linear programs
Exercise 7. Solve the following linear program with a graphical representation.

max x1 + 2x2
s.t. 2x1 + 3x2 ≤ 12
6x1 + 5x2 ≤ 30
x2 ≤3
x1 , x 2 ≥0

Solution
Optimal solution is (1.5, 3) and optimal objective value is 7.5.
x2

6x1 + 5x2 = 30

opt = (1.5, 3)

x2 = 3

x1 + 2x2 = 7.5

x1
0 2x1 + 3x2 = 12
x1 + 2x2 = 0

Figure 1: 2D graphical resolution for Exercise 7.

Exercise 8. Solve the following linear program by 2D graphical solution method.

min x1 + 3x2
s.t. x1 + x2 ≥3
−x1 + x2 ≤ −1
x1 + 2x2 ≤6
x1 , x 2 ≥0

Solution
Optimal solution is (3, 0) and optimal objective value is 3.
8

x2

−x1 + x2 = −1

x1 + 3x2 = 0
x1
0
x1 + 2x2 = 6
x1 + x2 = 3

Figure 2: 2D graphical resolution for Exercise 8.

Exercise 9. Solve the following linear program by 2D graphical solution method.

max x1 + 3x2
s.t. x1 + x2 ≥ 3
−x1 + x2 ≤ −1
x1 , x 2 ≥ 0

Solution
The feasible set is unbounded and the objective value tends to +∞.
x2
−x1 + x2 = −1

x1 + 3x2 → +∞

x1 + 3x2 = 0
x1
0
x1 + x2 = 3

Figure 3: 2D graphical resolution for Exercise 9.


9

Simplex method
Exercise 10. Solve the following LP by using simplex method.

max 5x1 + 4x2 + 3x3


s.t. 2x1 + 3x2 + x3 ≤ 5
4x1 + x2 + 2x3 ≤ 11
3x1 + 4x2 + 2x3 ≤ 8
x1 , x 2 , x 3 ≥ 0

Solution
The first step is to transform the inequalities into equalities by introducing
non-negative slack variables x4 , x5 , x6 ≥ 0:

max 5x1 + 4x2 + 3x3


s.t. 2x1 + 3x2 + x3 + x4 = 5
4x1 + x2 + 2x3 + x5 = 11 (1)
3x1 + 4x2 + 2x3 + x6 = 8
x1 , x 2 , x 3 , x 4 , x 5 , x 6 ≥ 0
Clearly, this linear program is equivalent to the given one. Now we write (1) as

max z
s.t. x4 = 5 − 2x1 − 3x2 − x3 ←
x5 = 11 − 4x1 − x2 − 2x3
x6 = 8 − 3x1 − 4x2 − 2x3 (2)
z = 5x1 + 4x2 + 3x3

x1 , x 2 , x 3 , x 4 , x 5 , x 6 ≥0

If we set x1 = x2 = x3 = 0, we get a feasible solution with x4 = 5, x5 = 11, x6 = 8


and objective value z = 0. Objective value z can be increased by increasing x1
while keeping x2 = x3 = 0. The variable x1 can be increased as long as x4 , x5 ,
and x6 remain non-negative, i.e. as long as the following inequalities are satisfied:

x4 = 5 − 2x1 ≥ 0 x1 ≤ 5
2
x5 = 11 − 4x1 ≥ 0 or equivalently x1 ≤ 11
4
x6 = 8 − 3x1 ≥ 0 x1 ≤ 8
3

Therefore we can increase x1 up to x1 = min{ 25 , 11 , 8 } = 52 . Note that in (2) the


4 3
arrows in the column of x1 and the row of x4 indicate that only the variable x1
is increased and x4 is the first variable which reduces to zero.
If we set x2 = x3 = 0, x1 = 25 which provide x4 = 0, x5 = 1, x6 = 12 , we
get a new feasible solution with improved value z = 25 2
. In (2) we got a feasible
solution by setting the variables on the right hand side equal to 0. In the new
solution we have x2 = x3 = x4 = 0. Therefore we rewrite (2) in such a way
10

that the variables x1 , x5 , x6 , and z are expressed in terms of x2 , x3 , x4 . This is


accomplished by rewriting the first equation in (2) such that x1 appears on the
left hand side and by substituting the expression for x1 into the other equations:
x1 = − 32 x2 − 21 x3 − 21 x4
5
( 52 )
x5 = 11 − 4 2 − 32 x2 − 12 x3 − 12 x4 − x2 − 2x3 = 1 + 5x2 + 2x4
(5 3 )
x6 = 8 − 3 2 − 2 x2 − 2 x3 − 2 x4 − 4x2 − 2x3 = 2 + 2 x2 − 2 x3 + 32 x4
1 1 1 1 1
( )
z = 5 52 − 32 x2 − 12 x3 − 12 x4 + 4x2 + 3x3 = 25
2
− 27 x2 + 12 x3 − 52 x4
Hence our new system reads as follows:
x1 = 5
2
− 32 x2 − 12 x3 − 21 x4
x5 = 1 + 5x2 + 2x4
x6 = 1
2
+ 12 x2 − 12 x3 + 23 x4 ← (3)
z= 25
2
− 7
x
2 2
+ 1
x
2 3
− 5
x
2 4

Now, the only way to increase z by increasing one variable on the right hand
side, is to increase x3 . We can increase x3 as long as x1 = 52 − 21 x3 ≥ 0 and
x6 = 12 − 12 x3 ≥ 0. Thus, the new solution is x3 = min{5, 1} = 1, x1 = 2, x2 = 0,
x4 = 0, x5 = 1, x6 = 0 and the corresponding system of equations is:
x3 = 1 + x2 + 3x4 − 2x6
x1 = 2 − 2x2 − 2x4 + x6
(4)
x5 = 1 + 5x2 + 2x4
z = 13 − 3x2 − x4 − x6
Because the coefficients of all variables xj in the last equation of (4) are non-
positive, there is no way to improve z by choosing other values x2 , x4 , x6 ≥ 0
instead of x2 = x4 = x6 = 0. Since (4) is equivalent to (2), the solution x1 = 2,
x2 = 0, x3 = 1, x4 = 0, x5 = 1, x6 = 0 is an optimal solution of the linear
program.
Exercise 11. Solve the following LP by using simplex method.
max x1 + 2x2
s.t. x1 + 3x2 + x3 = 9
2x1 + 3x2 ≤ 12
x1 , x 2 , x 3 ≥ 0
Solution
First we transform the given LP to get equality constraints and non-negative
variables.
max x1 + 2x2
s.t. x1 + 3x2 + x3 = 9
2x1 + 3x2 + x4 = 12
x1 , x 2 , x 3 , x 4 ≥ 0
11

Now, by expressing variables x3 and x4 in term of variables x1 and x2 we get the


first dictionary as follows.

max z
s.t. x3 = 9 − x1 − 3x2 ←
x4 = 12 − 2x1 − 3x2
z= x1 + 2x2

x1 , x 2 , x 3 , x 4 ≥ 0

In this dictionary, x3 and x4 are basic variables, while x1 and x2 are non-basic
ones. If we set zero value to the non-basic variables, then we get a feasible solution
(x1 , x2 , x3 , x4 ) = (0, 0, 9, 12) with objective value z = 0. We can increase objective
value z by increasing x2 while keeping x1 = 0 and as long as x3 , x4 remain non-
negative. By that principle we can increase x2 up to x2 = min{ 39 , 12 3
} = 3, and
then get the new feasible solution (x1 , x2 , x3 , x4 ) = (0, 3, 0, 3) with better objective
value z = 6. In the dictionary, the left arrow means that x3 will decrease to 0
(leaving variable, hence becomes a non-basic variable in the next step), and the
up arrow means that x2 will increase (entering variable, hence becomes a basic
variable in the next step).
In the next step we express the basic variables x2 and x4 in term of the
non-basic variables x1 and x3 , and get the second dictionary as follows.

max z
s.t. x2 = 3 − 13 x1 − 13 x3
x4 = 3 − x1 + x3 ←
z = 6 + 13 x1 − 23 x3

x1 , x 2 , x 3 , x 4 ≥ 0

We now see that the only way to increase objective value z is to increase x1 ,
while keeping x3 = 0. To keep the non-negativity of x2 and x4 , we can increase
x1 only up to 3, and then get x2 = 2. So we obtain a new feasible solution
(x1 , x2 , x3 , x4 ) = (3, 2, 0, 0) with better objective value z = 7. In the second
dictionary, the arrows mean that x1 is the entering variable and x4 is the leaving
variable. After this step, x3 and x4 becomes non-basis variables while x1 and x2
become basis variables.
We continue to the next step by expressing the basic variables x1 and x2 in
term of the non-basic variables x3 and x4 , and get the third dictionary as follows.

max z
s.t. x1 = 3 + x3 − x4
x2 = 2 − 32 x3 + 13 x4
z = 7 − 13 x3 − 31 x4
x1 , x 2 , x 3 , x 4 ≥ 0
12

We now see that there is no way to improve z due to the negativity of coef-
ficients of variables in the expression of z. Hence the current feasible solution
(x1 , x2 , x3 , x4 ) = (3, 2, 0, 0) is an optimal solution, and the optimal objective value
is z = 7.

Exercise 12. Solve the following LP by using simplex method.

min − x1 − 3x2
s.t. x1 + 3x2 ≥ 3
− x1 + x2 ≤ −1
x1 , x 2 ≥ 0

Solution
We record here the key steps in the solution progress.
Firstly, we transform the given LP to get maximizing problem with equality
constraints and non-negative variables.

max x1 + 3x2
s.t. x1 + 3x2 − x3 = 3
− x1 + x2 + x4 = −1
x1 , x 2 , x 3 , x 4 ≥ 0

The first dictionary should be

max z
s.t. x3 = −3 + x1 + 3x2
x4 = −1 + x1 − x2
z= x1 + 3x2
x1 , x 2 , x 3 , x 4 ≥ 0

By setting x1 = 2 and x2 = 1 we obtain x3 = 2 and x4 = 0, that together makes


a feasible solution (x1 , x2 , x3 , x4 ) = (2, 1, 2, 0) with objective value z = 11. We
see that by keeping x2 = 1 we can increase x1 without violating non-negativity
of x3 and x4 . Note that z increases to +∞ when x1 increases to +∞. Thus the
given LP is unbounded.
13

Construction of dual linear programs


Exercise 13. Construct the dual problem of the following linear program.
max 2x1 + 4x2 + x3 + x4
s.t. x1 + 3x2 + x3 + x4 ≤1
− 5x2 − 2x4 ≤3
x2 + 4x3 + x4 ≤3
x1 , x 2 , x 3 , x 4 ≥0
Solution
min y1 + 3y2 + 3y3
s.t. y1 ≥2
3y1 − 5y2 + y3 ≥4
y1 + 4y3 ≥1
y1 − 2y2 + y3 ≥1
y1 , y2 , y3 ≥0
Exercise 14. Construct the dual problem of the following linear program.
min − 2x1 + x2 + x4
s.t. x1 + x2 − x3 ≤ 15
x1 + x2 + x3 + x4 = 27
2x1 − x2 − x3 ≤ 28
x1 , x 2 , x 3 , x 4 ≥ 0
Solution
max 15y1 + 27y2 + 28y3
s.t. y1 + y2 + 2y3 ≤ −2
y1 + y2 − y3 ≤ 1
− y1 + y2 − y3 ≤ 0
y2 ≤ 1
y1 , y 3 ≤ 0
Exercise 15. Construct the dual problem of the following linear program.
max 27x1 + 50x2 + 18x3
s.t. x1 + 2x2 + x3 ≤ 2
− 2x1 + x2 − x3 ≤ 4
x1 + 2x2 − x3 ≤ −2
x1 , x 2 ∈ R
x3 ≤ 0
Solution
min 2y1 + 4y2 − 2y3
s.t. y1 − 2y2 + y3 = 27
2y1 + y2 + 2y3 = 50
y1 − y2 − y3 ≤ 18
y1 , y 2 , y 3 ≥ 0
14

Weak and strong duality


Exercise 16. Consider the following linear program.

max − x1 + 2x2 + x3
s.t. x1 + x2 − 2x3 ≤2
x1 − x2 + x3 ≤1
x2 + x3 ≤5
2x1 − x2 ≤2
x1 , x 2 , x 3 ≥0

Given the fact that (1, 1, 2, 0) is a feasible solution of the dual problem. Use the
weak duality theorem to derive an upper bound for the objective value of the
given LP problem.

Solution
The objective function of the dual problem is 2y1 +y2 +5y3 +2y4 . The objective
value of the dual problem at (1, 1, 2, 0) is 13. By weak duality theorem, this value
is an upper bound for the objective value of the primal problem.

Exercise 17. Consider the following linear program.

max −3x1 + 6x2 + 6x3


s.t. − x1 + 2x2 − x3 ≤ 4
−x1 − x2 + 2x3 ≤ 7
x1 , x 2 , x 3 ≥ 0

(i) Write the dual problem of the given LP problem.


(ii) Solve the dual problem by 2D graphical resolution method.
(iii) From the result of part (ii), what can you derive about the objective value
of the given LP problem?

Solution
(i) The dual problem is

min 4y1 + 7y2


s.t. − y1 − y2 ≥ −3
2y1 − y2 ≥ 6
− y1 + 2y2 ≥ 6
y1 , y 2 ≥ 0

(ii) It is not hard to see that, after visualizing the feasible set of the dual
problem in 2D plane, the dual problem is infeasible.
(iii) By weak duality theorem, it follows from part (ii) that the primal problem
is unbounded (i.e., the objective value of the primal problem can tend to +∞).
15

Exercise 18. Consider the following linear program.

max x1 + 2x2 + 3x3 − 4x4


s.t. x1 − x2 + x3 ≤ 1
x1 − x3 − x4 ≤ −1
x2 + x3 + x4 ≤ 1
x1 , x 2 , x 3 , x 4 ≥ 0

Using the strong duality theorem, indicate whether (0, 0, 1, 0) and (1, 0, 2) are
optimal solutions of the given linear program and its dual problem, respectively.

Solution
The objective value of the primal problem at (0, 0, 1, 0) is 2. The objective
function of the dual problem is y1 − y2 + y3 , therefore the objective value of the
dual problem at (1, 0, 2) is 3. We do not have the strong duality in this case, so
the given solutions are not optimal.
16

Complementary slackness
Exercise 19. Consider the following linear program.
max x1 + 2x2 + 3x3 − 4x4
s.t. x1 − x2 + x3 ≤ 1
x1 − x3 − x4 ≤ −1
x2 + x3 + x4 ≤ 1
x1 , x 2 , x 3 , x 4 ≥ 0
Using the complementary slackness theorem, indicate whether (0, 1, 0, 0) and
(1, 0, 2) are optimal solutions of the given linear program and its dual problem,
respectively.
Solution
The dual problem is
min y1 − y2 + y3
s.t. y1 + y2 ≥ 1
− y1 + y3 ≥ 2
y1 − y2 + y3 ≥ 3
− y2 + y3 ≥ −4
y1 , y 2 , y 3 ≥ 0
The pair of primal-dual solution (x1 , x2 , x3 , x4 ) = (0, 1, 0, 0) and (y1 , y2 , y3 ) =
(1, 0, 2) does not satisfy the complementary slackness condition
x2 (−y1 + y3 − 2) = 0.
Therefore these solutions are not optimal solutions of the primal and dual prob-
lems.
Exercise 20. Use the complementary slackness theorem to prove that ( 15
4 2
, 3 ) is
not an optimal solution to the following linear program:
max x1 + 2x2
s.t. 2x1 + 3x2 ≤ 12
6x1 + 5x2 ≤ 30
x2 ≤ 3
x1 , x 2 ≥ 0
Solution
The dual problem is
min 12y1 + 30y2 + 3y3
s.t. 2y1 + 6y2 ≥1
3y1 + 5y2 + y3 ≥ 2
y1 , y2 , y3 ≥ 0
Since x = (x1 , x2 ) = ( 15 , 3 ) satisfies constraints of the primal problem, it is a
4 2
feasible solution of the primal problem. We construct the dual solution y =
(y1 , y2 , y3 ) associated with this x by using complementary slackness theorem as
follows.
17

15
• x1 = 4
> 0 =⇒ 2y1 + 6y2 = 1;
3
• x2 = 2
> 0 =⇒ 3y1 + 5y2 + y3 = 2;
3
• x2 = 2
< 3 =⇒ y3 = 0.

These equations leads to the dual solution y = ( 87 , − 18 , 0). This is not a feasible
solution of the dual problem. Therefore, the given point x = ( 15 , 3 ) is not an
4 2
optimal solution of the primal problem.

Exercise 21. Consider the following LP problem.

max 3x1 + 2x2 + 4x3 − x4


s.t. x1 + x2 + 2x3 ≤ 4
2x1 + 3x3 + x4 ≤ 11
2x1 + x2 + 3x3 ≤ 7
x1 , x 2 , x 3 , x 4 ≥ 0

It is known that (1, 0, 1) is an optimal solution of the dual problem. Use the
complementary slackness theorem to find an optimal solution of the given LP
problem.

Solution
The dual problem is

min 4y1 + 11y2 + 7y3


s.t. y1 + 2y2 + 2y3 ≥ 3
y1 + y3 ≥ 2
2y1 + 3y2 + 3y3 ≥ 4
y2 ≥ −1
y1 , y 2 , y 3 ≥ 0

Since this dual problem has an optimal solution, by strong duality theorem we
know that the given primal LP problem has an optimal solution. Let x∗ =
(x∗1 , x∗2 , x∗3 , x∗4 ) be the optimal solution of the primal problem.
Since y∗ = (1, 0, 1) is known as an optimal solution of this dual problem, we
observe by complementary slackness theorem that

• y1∗ = 1 > 0 =⇒ x∗1 + x∗2 + 2x∗3 = 4;

• y3∗ = 1 > 0 =⇒ 2x∗1 + x∗2 + 3x∗3 = 7;

• 2y1∗ + 3y2∗ + 3y3∗ = 5 > 4 =⇒ x∗3 = 0;

• y2 = 0 > −1 =⇒ x∗4 = 0.

It follows from these four obtained equations that x∗ = (x∗1 , x∗2 , x∗3 , x∗4 ) = (3, 1, 0, 0).
It is obvious that this x∗ is a feasible solution (and hence an optimal solution, by
the complementary slackness theorem) of the given primal LP problem.

You might also like