• Nie Znaleziono Wyników

1 Linear programming

N/A
N/A
Protected

Academic year: 2021

Share "1 Linear programming"

Copied!
28
0
0

Pełen tekst

(1)

Operations Research

1 Linear programming

1.1 Modeling

Exercise 1. The clothing manufacturer should specify how many jackets and coats should be produced so that the pro…t from their sale is maximal. One type of fabric is used for production. The manufacturer has 150 m2 of this fabric. According to orders, at least 20 jackets and at most 10 coats should be produced. For the production of one jacket and one coat 2; 5 m2 and 4 m2 of fabric are needed, respectively. When selling one jacket, the producer makes a pro…t of Euro 50 , one coat - Euro 60 . Write this task as the minimum linear programming problem in the matrix-vector form.

Model 1. Let us denote:

u1 - number of jackets, u2 - number of coats.

Restrictions imposed on the variables u1, u2 can be written as follows:

u1 20; u2 10;

2; 5u1+ 4u2 150:

The cost function, which should be maximized, takes the form 50u1+ 60u2

Therefore, taking into account the natural restrictions of the non-negativity of variables u1, u2 (standard nonnegativity constraints), we can write the examined problem in the form of the following minimum linear programming problem

8>

>>

>>

><

>>

>>

>>

:

h( 50; 60); (u1; u2)i ! min :

u2 U = fu = (u1; u2)2 R2; u 0;

2 66 64

1 0

0 1

2; 5 4 3 77 75

2 4 u1

u2 3 5

2 66 64

20 10 150

3 77 75g :

(2)

Exercise 2 (carpenter problem). The carpenter should specify how many tables, chairs, desks and cabinets should be produced so that the pro…t from their sale is maximal.

Two types of boards are used for production. The manufacturer has 1500 m of type I boards and 1000 m of type II boards, and has the capital of 860 working hours to carry out the planned production. According to the contracts, carpenter should produce at least 40 tables, at least 130 chairs, at least 30 desks and not more than 10 cabinets. For the production of each table, chair, desk and cabinet carpenter needs 5, 1, 9, 12 m of boards of type I and 2, 3, 4, 1 m of boards of type II, respectively. To make a table carpenter needs 3 hours of work, a chair -2 hours, a desk - 5 hours, a cabinet - 10 hours.

The producer makes a pro…t of Euro 50, Euro 20, Euro 60 and Euro 40 from the sale of one table, chair, desk and cabinet, respectively.

Model 2.

Let us denote:

u1 - number of tables, u2 - number of chairs u3 - number of desks, u4 - number of cabinets.

Total pro…t can be written in the following way 50u1+ 20u2+ 60u3+ 40u4 Of course, we assume non-negativity of all variables:

u1 0; u2 0; u3 0; u4 0:

Moreover,

u1 40; u2 130; u3 30; u4 10:

The amount of the boards of type I used during the production can be written as 5u1+ u2 + 9u3+ 12u4

and it should be less or equal to 1500. So, the corresponding contraint is the following 5u1+ u2+ 9u3+ 12u4 1500:

(3)

Similarly, the amount of the boards of type II used during the production can be written as

2u1+ 3u2+ 4u3+ 11u4 and it should be less or equal to 1000:

2u1+ 3u2+ 4u3+ 11u4 1000:

Time used to produce u1 tables, u2 chairs, u3 desks and u4 cabinets can be written as 3u1+ 2u2+ 5u3+ 10u4

and it should be less or equal to 860:

3u1+ 2u2+ 5u3+ 10u4 860:

Finally, our problem can be written in the following form: maximize the value 50u1+ 20u2+ 60u3+ 40u4

subject to:

u1 0; u2 0; u3 0; u4 0

u1 40; u2 130; u3 30; u4 10 5u1+ u2+ 9u3+ 12u4 1500

2u1+ 3u2+ 4u3+ 11u4 1000 3u1+ 2u2+ 5u3+ 10u4 860

(4)

The minimum matrix-vector form of the above proble is the following

h( 50; 20; 60; 40); (u1; u2; u3; u4)i ! min :

u2 U = fu 2 Rn; u1 0; u2 0; u3 0; u4 0;

2 66 66 66 66 66 66 66 64

1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1

5 1 9 12

2 3 4 1

3 2 5 10

3 77 77 77 77 77 77 77 75

u 2 66 66 66 66 66 66 66 64

40 130

30 10 1500 1000 860

3 77 77 77 77 77 77 77 75

g:

Exercise 3 (diet problem). The dietitian should prepare the composition of the morning porridge so that it contains the necessary daily requirement of the body for speci…c nutrients and is the cheapest. The dietitian has two types of ‡akes: I and II.

Breakfast should contain at least 1 mg of vitamin B1, at least 12 mg of iron and have an energy value of 360 kcal. 100 g ‡akes of the …rst type contains 1; 2 mg of vitamin B1, 12 mg of iron and has an energy value of 358 kcal, while 100 g ‡akes of the second type contains 1; 5 mg of vitamin B1, 10 mg of iron and has an energy value of 390 kcal. In addition, 100 g of ‡akes of the …rst type cost PLN 0; 32 and 100 g of ‡akes of the second type - PLN 0; 36.

Model.

Let us denote:

u1 - the amount of ‡akes I, u2 - the amount of ‡akes II

Total costs can be written in the following way 0; 32u1+ 0; 36u2 It is natural to assume that

u1 0; u2 0:

(5)

The amount of vitamin B1 in the prepared porridge can be written as 1; 2u1+ 1; 5u2

and it should be grater or equal to 1 mg.

The amount of iron can be written as

12u1+ 10u2 and it should be grater or equal to 12 mg.

Energy value of the porridge can be written as 358u1+ 390u2 and it should be equal to 360 kcal.

Finally, our problem can be written in the following form: minimize the value 0; 32u1+ 0; 36u2

subject to:

u1 0; u2 0 1; 2u1+ 1; 5u2 1

12u1+ 10u2 12 358u1+ 390u2 = 360

The minimum matrix-vector form of the above problem is the following

h(0:32; 0:36); (u1; u2)i ! min : u2 U = fu 2 Rn; u1 0; u2 0;

2

4 1; 2 1; 5

12 10

3 5 u

2 4 1

12 3 5 ; h

358 390 i

u = 360g:

Exercise 4Write the following problem in the form of a linear programming problem.

The paint manufacturer must specify how many liters of white, green, blue and red paint

(6)

should be produced to make the maximal pro…t from sales. Three raw materials are used in production: A, B and C. The producer has 230 liters of raw material A, 200 liters of raw material B and 170 liters - raw material C. Moreover, he has 160 working hours capital.

The accepted orders show that at least 125 liters of white paint should be produced, at least 135 liters - green paint, at most 205 liters - blue paint and not less than 175 liters - red paint. The amounts of raw materials needed to produce 1 liter of each paint are presented in the following table (in liters)

white green blue red A 0; 30 0; 60 0; 35 0; 15 B 0; 25 0; 20 0; 45 0; 55 C 0; 45 0; 20 0; 20 0; 30

In addition, it takes 15 minutes to produce 1 liter of each paint. Pro…t from the sale of 1 liter of white paint is 7 PLN, green - 6 PLN, blue - 7 PLN, red - 5 PLN.

Model.

Let us denote:

u1 - the amount of white paint, u2 - the amount of green paint, u3 - the amount of blue paint, u4 - the amount of red paint

Total pro…t that should be maximized can be written in the following way 7u1+ 6u2+ 7u3+ 5u4

Moreover,

u1 125; u2 135; u3 205; u4 175:

The amount of raw material A

0; 3u1+ 0; 6u2 + 0; 35u3+ 0; 15u4 used in production has to be less or equal to 230 liters.

(7)

The amount of raw material B

0; 25u1+ 0; 2u2+ 0; 45u3+ 0; 55u4 has to be less or equal to 200 liters.

The amount of raw material C

0; 45u1 + 0; 2u2+ 0; 2u3+ 0; 3u4

has to be less or equal to 170 liters.

The amount of working hours

0; 25u1+ 0; 25u2+ 0; 25u3+ 0; 25u4 has to be less or equal to 160 hours.

Taking into account the non-negativity of variables u1, u2, u3, u4, our problem can be written in the following form: minimize

7u1 + 6u2+ 7u3 + 5u4 ! max subject to:

u1 0; u2 0; u3 0; u4 0 0; 3u1 + 0; 6u2+ 0; 35u3+ 0; 15u4 230

0; 25u1 + 0; 2u2+ 0; 45u3+ 0; 55u4 200 0; 45u1+ 0; 2u2+ 0; 2u3+ 0; 3u4 170 0; 25u1+ 0; 25u2+ 0; 25u3+ 0; 25u4 160

The minimum matrix-vector form of the above proble is the following h( 7; 6; 7; 5); (u1; u2; u3; u4)i ! min :

u2 U = fu 2 Rn; u1 0; u2 0; u3 0; u4 0;

2 66 66 66 4

0; 3 0; 6 0; 35 0; 15 0; 25 0; 2 0; 45 0; 55 0; 45 0; 2 0; 2 0; 3 0; 25 0; 25 0; 25 0; 25

3 77 77 77 5

u 2 66 66 66 4

230 200 170 160 3 77 77 77 5

g:

(8)

1.2 Equivalence of problems

Exercise 5. Write "the carpenter" problem in the canonical form.

Solution. Let us recall that "carpenter" problem has been written in the form

h( 50; 20; 60; 40); (u1; u2; u3; u4)i ! min :

u2 U = fu 2 Rn; u1 0; u2 0; u3 0; u4 0;

2 66 66 66 66 66 66 66 64

1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1

5 1 9 12

2 3 4 1

3 2 5 10

3 77 77 77 77 77 77 77 75

u 2 66 66 66 66 66 66 66 64

40 130

30 10 1500 1000 860

3 77 77 77 77 77 77 77 75

g:

So, equivalent canonical form of this problem is the following

h( 50; 20; 60; 40; 0; 0; 0; 0; 0; 0; 0); (z1; :::; z4; z5; :::; z11)i ! min :

z2 Z = fz 2 R4+7; z 0;

2 66 66 66 66 66 66 66 64

1 0 0 0 1 0 ::: 0

0 1 0 0 0 1 ::: 0

0 0 1 0

0 0 0 1

5 1 9 12

2 3 4 1

3 2 5 10 0 0 ::: 1

3 77 77 77 77 77 77 77 75

z = 2 66 66 66 66 66 66 66 64

40 130

30 10 1500 1000 860

3 77 77 77 77 77 77 77 75

g:

Exercise 5a. Write the following general problem in the canonical form.

J (u) = u1 3u3 2u4+ 15u5 ! min :

u2 U = fu = (u1; u2; u3; u4; u5)2 R5; u1 0; u4 0; u5 0; u1+ 2u3 21;

u2+ u4+ 3u5 10; u2 u3+ 7u5 = 2; 2u1 7u4 = 9g:

(9)

Solution. First, let us write our problem in matrix-vector form:

8>

>>

>>

><

>>

>>

>>

:

J (u) =h(1; 0; 3; 2; 15); (u1; :::; u5)i ! min : u2 U = fu 2 R5; u1 0; u1 0; u1 0;

2

4 1 0 2 0 0 0 1 0 1 3

3 5 u

2 4 21

10 3 5 ;

2

4 0 1 1 0 7

2 0 0 7 0

3 5 u =

2 4 2

9 3 5g

:

In our case n = 5, I = f1; 4; 5g; J = f2; 3g; m = 2, s = 4; c = (1; 0; 3; 2; 15);

A = 2

4 1 0 2 0 0 0 1 0 1 3

3 5 ; A =

2

4 0 1 1 0 7

2 0 0 7 0

3 5 ;

b = 2 4 21

10 3 5 ; b =

2 4 2

9 3 5 :

Thus, p = 2 + 3 + 2 + 2 = 9 and the appropriate canonical problem has the form 8>

>>

>>

>>

>>

>>

><

>>

>>

>>

>>

>>

>>

:

J (z) =h(0; 0; 1; 2; 15; 0; 3; 0; 3); (v1; v2; u1; u4; u5; w2; w3; w2; w3)i ! min : z 2 Z = fz = (v1; v2; u1; u4; u5; w2; w3; w2; w3)2 R9; z 0;

2 66 66 66 4

1 0 1 0 0 0 2 0 2

0 1 0 1 3 1 0 1 0

0 0 0 0 7 1 1 1 1

0 0 2 7 0 0 0 0 0

3 77 77 77 5

z = 2 66 66 66 4

21 10 2 9

3 77 77 77 5 g

:

Exercise 6. Write the following general problem in the canonical form.

8>

>>

>>

>>

>>

<

>>

>>

>>

>>

>:

J (u) = u1+ 2u2+ 3u3 ! min : u2 U = fu = (u1; u2; u3)2 R3; u1 0;

10u1+ 20u2 + 30u3 11;

100u1+ 200u2+ 300u3 12 1000u1+ 2000u2+ 3000u3 = 0g:

:

Solution. First, let us write our problem in matrix-vector form:

8>

>>

>>

><

>>

>>

>>

:

J (u) =h(1; 2; 3); (u1; :::; u3)i ! min : u2 U = fu 2 R3; u1 0;

2

4 10 20 30 100 200 300

3 5 u

2 4 11

12 3 5 ; h

1000 2000 3000 i

u = [0]g :

(10)

In our case n = 3, I = f1g; J = f2; 3g; m = 2, s = 3; c = (1; 2; 3);

A = 2

4 10 20 30 100 200 300

3

5 ; A = h

1000 2000 3000 i

;

b = 2 4 11

12 3

5 ; b = [0] :

Thus, p = 2 + 1 + 2 + 2 = 7 and the appropriate canonical problem has the form 8>

>>

>>

>>

>>

<

>>

>>

>>

>>

>:

J (z) =h(0; 0; 1; 2; 3; 2; 3); (v1; v2; u1; w2; w3; w2; w3)i ! min : z 2 Z = fz = (v1; v2; u1; w2; w3; w2; w3)2 R7; z 0;

2 66 64

1 0 10 20 30 20 30

0 1 100 200 300 200 300 0 0 0; 1 0; 2 0; 3 0; 2 0; 3

3 77 75z =

2 66 64

11 12 0

3 77 75g

:

Exercise 7. Write the "diet" problem in the canonical form.

Solution. Let recall the matrix-vector form of "diet" problem:

h(0:32; 0:36); (u1; u2)i ! min :

u2 U = fu 2 R2; u1 0; u2 0;

2

4 1:2 1:5

12 10

3 5 u

2

4 1

12 3 5 ; h

358 390 i

u = [360]g:

In this case, n = 2, I = f1; 2g; J = ?; m = 2, s = 3; c = (1; 2; 3);

A = 2

4 1:2 1:5

12 10

3

5 ; A = h

358 390 i

;

b = 2 4 1

12 3

5 ; b = [360] :

(11)

So, p = 2 + 2 = 4 and he matrix-vector form of the "diet" problem is as follows:

8>

>>

>>

>>

>>

<

>>

>>

>>

>>

>:

J (z) =h(0; 0; 0:32; 0:36); (v1; v2; u1; u2)i ! min : z 2 Z = fz = (v1; v2; u1; u2)2 R4; z 0;

2 66 64

1 0 1:2 1:5

0 1 12 10

0 0 358 390 3 77 75z =

2 66 64

1 12 360

3 77 75g

:

Exercise 8. Write the following general problem in the canonical form.

8>

>>

>>

>>

>>

>>

>>

>>

<

>>

>>

>>

>>

>>

>>

>>

>:

J (u) = 3u1+ 5u2+ 7u3+ 9u4 ! min : u2 U = fu = (u1; u2; u3; u4)2 R4; u2 0; u4 0;

11u1+ 12u2+ 13u3+ 14u4 1;

21u1+ 23u3 1;

32u2 8;

41u1+ 42u2+ 43u3+ 44u4 = 2;

51u1+ 54u4 = 2g:

Solution. Let us write the above problem in matrix-vector form:

h(3; 5; 7; 9); (u1; :::; u4)i ! min :

u2 U = fu 2 R4; u2 0; u4 0;

2 66 64

11 12 13 14

21 0 23 0

0 32 0 0

3 77 75u

2 66 64

1 1 8 3 77 75; 2

441 42 43 44

51 0 0 54

3 5 u =

2 4 2

2 3 5g:

In this case, n = 4, I = f2; 4g; J = f1; 3g; m = 3, s = 5; c = (3; 5; 7; 9);

A = 2 66 64

11 12 13 14

21 0 23 0

0 32 0 0

3 77 75; A=

2

441 42 43 44

51 0 0 54

3 5 ;

(12)

b = 2 66 64

1 1 8 3 77 75; b =

2 4 2

2 3 5 :

So, p = 3 + 2 + 2 + 2 = 9 and he matrix-vector form of the "diet" problem is as follows:

8>

>>

>>

>>

>>

>>

>>

>>

<

>>

>>

>>

>>

>>

>>

>>

>:

J (z) =h(0; 0; 5; 9; 3; 7; 3; 7); (v1; v2; u2; u4; w1; w3; w1; w3)i ! min : z 2 Z = fz = (v1; v2; u2; u4; w1; w3; w1; w3)2 R9; z 0;

2 66 66 66 66 64

1 0 0 12 14 11 13 11 13

0 1 0 0 0 21 23 21 23

0 0 1 32 0 0 0 0 0

0 0 0 42 44 41 43 41 43

0 0 0 0 54 51 0 51 0

3 77 77 77 77 75

z = 2 66 66 66 66 64

1 1 8 2

2 3 77 77 77 77 75 g

:

(13)

1.3 Geometrical method of solving of 2-dimensional linear pro- gramming problems

Exercise 9. Solve geometrically the following problem:

8>

>>

>>

>>

>>

<

>>

>>

>>

>>

>:

J (u) = u1+ u2 ! min :

u2 U = fu 2 R2; u 0;

2 66 66 66 4

2 1

1

2 1

1 1

1 0

3 77 77 77 5

u 2 66 66 66 4

2

1 2

2 3

3 77 77 77 5

:

Solution.

The unique solution to the problem is the point u = (1; 0).

Exercise 10. Solve geometrically the following problem:

8>

>>

>>

>>

>>

<

>>

>>

>>

>>

>:

J (u) = 2u1+ u2 ! min :

u2 U = fu 2 R2; u 0;

2 66 66 66 4

1 1

1 1

1 2

2 1

3 77 77 77 5

u 2 66 66 66 4

1 1 0 5

3 77 77 77 5

:

Solution.

(14)

The problem possesses in…nite many solutions. The set of solutions is the following U =f (5

2; 0) + (1 )(10 3 ;5

3); 2 [0; 1]g:

It is the side of the polygon U , with end-points (52; 0) and (103;53).

Exercise 11. Solve geometrically the following problem:

8>

>>

>>

><

>>

>>

>>

:

J (u) = u1 u2 ! min : u2 U = fu = (u1; u2)2 R2; u 0;

1

2u1+ u2 2;

1

3u1 u2 = 1g

:

The problem has no solution.

Exercise 12. Solve geometrically the following problem:

In a factory products A and B are produced. In the production process three machines are used: M1, M2, M3. The machine M1 can work for 2400 minutes, M2 - 4000 minutes, M3 - 2700 minutes. The following table shows the operating time of each machine, that is needed to produce one unit of each product

A B

M1 3 6

M2 8 4

M3 9 3

The pro…t from the sale of a unit of product A is 90 euro, and of product B - 60 euro.

The production should be planed to maximize the total pro…t.

(15)

1.4 Extreme points

Exercise 13. Find all extreme points of the set

U =fu = (u1; u2; u3; u4)2 R4; u 0;

u1+ u2+ 3u3+ u4 = 3; u1 u2+ u3+ 2u4 = 1g:

Rozwi ¾azanie. It is easy to see that

rank 2

4 1 1 3 1

1 1 1 2

3 5 = 2:

10 Let j1 = 1, j2 = 2. The columns A1 = 2 4 1

1 3

5, A2 = 2 4 1

1 3

5 are linearly indepen- dent. Moreover, the solution of the problem

A1v1+ A2v2 = b;

i.e. 8

<

:

v1+ v2 = 3 v1 v2 = 1

is the pair v1 = 2 0, v2 = 1 0. So, the point v = (2; 1; 0; 0) is nonsingular extreme point of the set U with the basis A1, A2.

20 Let j1 = 1, j2 = 3. The columns A1 = 2 4 1

1 3 5, A3 =

2 4 3

1 3

5 are linearly independent.

Moreover, the solution of the problem

A1v1+ A3v3 = b;

i.e. 8

<

:

v1+ 3v3 = 3 v1+ v3 = 1

is the pair v1 = 0 0, v3 = 1 0. So, the point v = (0; 0; 1; 0) is singular extreme point of the set U with the basis A1, A3.

(16)

30 Let j1 = 1, j2 = 4. The columns A1 = 2 4 1

1 3 5, A4 =

2 4 1

2 3

5 are linearly independent.

Moreover, the solution of the problem

A1v1+ A4v4 = b;

i.e. 8

<

:

v1+ v4 = 3 v1+ 2v4 = 1

is the pair v1 = 5 0, v4 = 2 < 0. Thus, the columns A1, A4 are not the basis for any extreme point.

40 Let j1 = 2, j2 = 3. The columns A2 = 2 4 1

1 3

5, A3 = 2 4 3

1 3

5 are linearly indepen- dent. Moreover, the solution of the problem

A2v2+ A3v3 = b;

i.e. 8

<

:

v2+ 3v3 = 3 v2+ v3 = 1

is the pair v2 = 0 0, v3 = 1 0. So, the point v = (0; 0; 1; 0) is singular extreme point of the set U with the basis A2, A3.

50 Let j1 = 2, j2 = 4. The columns A2 = 2 4 1

1 3

5, A4 = 2 4 1

2 3

5 are linearly indepen- dent. Moreover, the solution of the problem

A2v2+ A4v4 = b;

i.e. 8

<

:

v2+ v4 = 3 v2+ 2v4 = 1

is the pair v2 = 53 0, v4 = 34 0. So, the point v = (0;53; 0;43) is nonsingular extreme point of the set U with the basis A2, A4.

(17)

60 Let j1 = 3, j2 = 4. The columns A3 = 2 4 3

1 3 5, A4 =

2 4 1

2 3

5 are linearly independent.

Moreover, the solution of the problem

A3v3+ A4v4 = b;

i.e. 8

<

:

3v3+ v4 = 3 v3+ 2v4 = 1

is the pair v3 = 1 0, v4 = 0 0. So, the point v = (0; 0; 1; 0) is the singular extreme point of the set U with the basis A3, A4.

Exercise 14. Find all extreme points of the set

U =fu = (u1; u2; u3)2 R3; u 0;

u1+ 2u2+ 3u3 = 4; u1+ 5u3 = 0g:

Exercise 15. Find all extreme points of the set

U = fu = (u1; u2; u3)2 R3; u 0;

u1+ u2+ 2u3 = 10; u1+ 3u3 = 9; u1+ 2u2+ 7u3 = 29g:

Rozwi ¾azanie. It is easy to see that

rank 2 66 64

1 1 2

1 0 3

1 2 7

3 77 75= 2:

10 Let j1 = 1, j2 = 2. The columns A1 = 2 66 64

1 1 1

3 77

75, A2 = 2 66 64

1 0 2

3 77

75 are linearly indepen-

dent (one can check it using the de…nition of linear independence of vectors). Moreover, the solution of the system

A1v1+ A2v2 = b;

(18)

i.e. 8

>>

><

>>

>:

v1+ v2 = 10 v1 = 9 v1+ 2v2 = 29

is the pair v1 = 9 < 0, v2 = 19 0. Thus, the columns A1, A2 are not the basis for any extreme point of the set U .

20 Let j1 = 1, j2 = 3. The columns A1 = 2 66 64

1 1 1

3 77

75, A3 = 2 66 64

2 3 7

3 77

75 are linearly indepen-

dent (one can check it using the de…nition of linear independence of vectors). Moreover, the solution of the system

A1v1+ A3v3 = b;

i.e. 8

>>

><

>>

>:

v1+ 2v3 = 10 v1+ 3v3 = 9 v1+ 7v3 = 29

is the pair v1 = 125 > 0, v3 = 195 > 0. So, the point v = (125 ; 0;195 )is nonsingular extreme point of the set U with the basis A1, A3.

30 Let j1 = 2, j2 = 3. The columns A2 = 2 66 64

1 0 2

3 77 75, A3 =

2 66 64

2 3 7

3 77

75are linearly independent

(one can check it using the de…nition of linear independence of vectors). Moreover, the solution of the system

A2v2+ A3v3 = b;

i.e. 8

>>

><

>>

>:

v2+ 2v3 = 10 3v3 = 9 2v2+ 7v3 = 29

is the pair v2 = 4 > 0, v3 = 3 > 0. So, the point v = (0; 4; 3) is nonsingular extreme point of the set U with the basis A2, A3.

(19)

Exercise 16. Find all extreme points of the set

U =fu = (u1; u2; u3; u4)2 R4; u 0;

u1+ u4 = 0; 2u2 + u4 = 3; 3u3 = 0g:

Rozwi ¾azanie. It is easy to see that

rank 2 66 64

1 0 0 1 0 2 0 1 0 0 3 0

3 77 75= 3:

10 Let j1 = 1, j2 = 2, j3 = 3. The columns A1 = 2 66 64

1 0 0

3 77 75, A2 =

2 66 64

0 2 0

3 77 75, A3 =

2 66 64

0 0 3

3 77 75 are

linearly independent (one can check it using the notion of the determinant of the matrix).

Moreover, the solution of the system

A1v1+ A2v2+ A3v3 = b;

i.e. 8

>>

><

>>

>:

v1 = 0 2v2 = 3 3v3 = 0

are three numbers v1 = 0 0, v2 = 96 0, v3 = 0 0:So, the point v = (0;96; 0; 0)is the singular extreme point of the set U with the basis A1, A2, A3.

20 Let j1 = 1, j2 = 2, j3 = 4. The columns A1 = 2 66 64

1 0 0

3 77 75, A2 =

2 66 64

0 2 0

3 77 75, A4 =

2 66 64

1 1 0

3 77 75 are

linearly dependent (one can check it using the notion of the determinant of the matrix).

So, they are not the basis for any extreme point of the set U .

30 Let j1 = 1, j2 = 3, j3 = 4. The columns A1 = 2 66 64

1 0 0

3 77 75, A3 =

2 66 64

0 0 3

3 77 75, A4 =

2 66 64

1 1 0

3 77 75 are

linearly independent (one can check this fact using the notion of the determinant of the

(20)

matrix). Moreover, the solution of the system

A1v1+ A3v3 + A4v4+ = b;

i.e. 8

>>

><

>>

>:

v1+ v4 = 0 v4 = 3 3v3 = 0

are three numbers v1 = 3 < 0, v3 = 0 0, v4 = 3 0: So, the columns A1, A3, A4 are not the basis for any extreme point of the set U .

40 Let j1 = 2, j2 = 3, j3 = 4. The columns A2 = 2 66 64

0 2 0

3 77 75, A3 =

2 66 64

0 0 3

3 77 75, A4 =

2 66 64

1 1 0

3 77 75 are

linearly independent (one can check this fact using the notion of the determinant of the matrix). Moreover, the solution of the system

A2v2+ A3v3+ A4v4 = b;

i.e. 8

>>

><

>>

>:

v4 = 0 2v2+ v4 = 3

3v3 = 0

are three numbers v2 = 32 > 0, v3 = 0 0, v3 = 0 0: Thus, the point v = (0;32; 0; 0) is the singular extreme point of the set U with the basis A2, A3, A4.

Exercise 17. Find all extreme points of the set

U =fu = (u1; u2; u3; u4)2 R4; u 0;

2u1 3u2+ 4u3+ u4 = 3;

u1+ u2 u3 = 10g

(21)

1.5 Simplex method

Exercise 18. Create the simplex table for the problem 8>

>>

>>

><

>>

>>

>>

:

J (u) = u1 u2+ 2u4 ! min : u2 U = fu = (u1; u2; u3; u4)2 R4; u 0;

2u1 3u2+ 4u3+ u4 = 3;

u1+ u2 u3 = 10g and the extreme point

v = (33 5 ;17

5 ; 0; 0):

Exercise 19. Solve the problem 8>

>>

<

>>

>:

J (u) = u1+ 2u2+ 3u3+ 4u4 ! min : U = fu 2 R4; u 0 ,

2

4 1 1 3 1

1 1 1 2

3 5 u =

2 4 3

1 3 5g

using the simplex method with the initial extreme point v = (2; 1; 0; 0).

Solution. It is easy to see that

r = rankA = 2

and, in consequence, the basic coordinates of the point v are v1, v2. According to our notations (see lecture) u = (u1; u2), v = (2; 1), c = (1; 2), B =

2 4 1 1

1 1

3

5. Thus

B 1 = 1 2

2

4 1 1

1 1

3 5

T

= 2 4

1 2

1 2 1 2

1 2

3 5 ;

and, consequently, 2 4 1;3

2;3

3

5 = B 1A3 = 2 4 2

1 3 5 ; 2

4 1;4

2;4

3

5 = B 1A4 = 2 4

3 2 1 2

3 5

(22)

as well as

3 = c; B 1A3 c3 = 1;

4 = c; B 1A4 c4 = 7 2: So, the simplex table for point v = (2; 1; 0; 0) is of the form

u1 u2 u3 u4 u1 1 0 2 32 2 u2 0 1 1 12 1

0 0 1 72 4

:

Clearly, for this table there is the case 30. We have

3 > 0

I3 =fi 2 f1; 2g; i;3 > 0g = f1; 2g:

So,

min

i2I3

vi

i;3

= minf2 2;1

1g = 2 2

Thus, k = 3, s = 1. The basis of the next extreme point is the system of columns A2; A3:

Usin the theorem charizing the extreme points we …nd the next extrem point w:

2 4 1

1 3 5 w2+

2 4 3

1 3 5 w3 =

2 4 3

1 3 5 ;

so, w = (0; 0; 1; 0). Moreover, B = 2

4 1 3

1 1 3

5 and, in consequence,

B 1 = 1 4

2

4 1 1

3 1 3 5

T

= 2 4

1 4

3 4 1 4

1 4

3 5 :

It implies that 2

4 2;1

3;1

3

5 = B 1A1 = 2 4

1 2 1 2

3 5 ;

(23)

2 4 2;4

3;4

3

5 = B 1A4 = 2 4

5 4 3 4

3 5

and

1 = c; B 1A1 c1 = 1 2;

4 = c; B 1A4 c4 = 17 4 : The simplex table for point w = (0; 0; 1; 0) takes the form

u1 u2 u3 u4 u2 12 1 0 54 0 u3 12 0 1 34 1

1

2 0 0 174 3

:

We see that for this table there is the case 10. It means that the point w = (0; 0; 1; 0) is a solution of our problem.

Exercise 20. Solve the problem 8>

>>

>>

><

>>

>>

>>

:

J (u) = u1 u2+ u4 ! min :

u2 U = fu = (u1; u2; u3; u4)2 R4; u 0;

2u1 2u2+ 4u3+ u4 = 2;

u1+ u2+ u4 = 0g

;

using the simplex method with the initial extreme point = (0; 0;12; 0) and its basis formed by columns

2 4 2

1 3 5,

2 4 4

0 3 5.

Exercise 21. Solve the problem 8>

>>

>>

><

>>

>>

>>

:

J (u) = u1+ 2u2+ 3u3+ 4u4 ! min : u2 U = fu = (u1; u2; u3; u4)2 R4; u 0;

u1+ u2+ 3u3+ u4 = 3;

u1 u2 + u3+ 2u4 = 1g

;

using the simplex method with the initial extreme point v = (0;5

3; 0;4 3).

(24)

Exercise 22. Create the simplex table for the problem 8>

>>

>>

><

>>

>>

>>

:

J (u) = u1+ 3u2 5u3+ u4 4u5 ! min : u2 U = fu 2 R5; u 0;

u1+ u2 4u3 + u4 3u5 = 3;

u1 4u3+ 2u4 5u5 = 6g:

and the extreme point v = (0; 0; 0; 3; 0) with basic coordinates v1, v4.

1.6 Choice of a "starting" extreme point

Exercise 23. Using an auxiliary problem, verify that the set U =fu = (u1; u2; u3; u4)2 R4; u 0;

u1 + u2+ 3u3+ u4 = 3;

u1 u2+ u3+ 2u4 = 1g is non empty and …nd an extreme point of it.

Rozwi ¾azanie. Let us consider the following auxiliary problem 8>

>>

<

>>

>:

J (z) = u5+ u6 ! min :

Z =fz = (u1; :::; u6)2 R6; z 0 , 2

4 1 1 3 1 1 0

1 1 1 2 0 1

3 5 z =

2 4 3

1 3 5g

In this case b = 2 4 1

0 3

5 0and the point z0 = (0; b) = (0; 0; 0; 0; 3; 1) is an extreme point

of the set Z with the basis C5 = 2 4 1

0 3 5, C6 =

2 4 0

1 3 5.

Let us apply to the auxiliary problem the simplex method. In this case r = 2, j1 = 5, j2 = 6, z = (u5; u6), v = (3; 1), c = (1; 1), B =

2 4 1 0

0 1 3 5. So,

B 1 = 2 4 1 0

0 1 3 5 ;

(25)

and 2 4 5;1

6;1

3

5 = B 1C1 = C1 = 2 4 1

1 3 5 ; 2

4 5;2

6;2

3

5 = B 1C2 = C2 = 2 4 1

1 3 5 ; 2

4 5;3

6;3

3

5 = B 1C3 = C3 = 2 4 3

1 3 5 ; 2

4 5;4

6;4

3

5 = B 1C4 = C4 = 2 4 1

2 3 5 :

as well as

1 = c; B 1C1 c1 =h(1; 1); (1; 1)i 0 = 2;

2 = c; B 1C2 c2 =h(1; 1); (1; 1)i 0 = 0;

3 = c; B 1A3 c3 =h(1; 1); (3; 1)i 0 = 4;

4 = c; B 1A4 c4 =h(1; 1); (1; 2)i 0 = 3:

The simplex table for point v = (0; 0; 0; 0; 3; 1) is of the form u1 u2 u3 u4 u5 u6

u5 1 1 3 1 1 0 3

u6 1 1 1 2 0 1 1

2 0 4 3 0 0 4

:

For the above simplex table there is case 30. We have

1 > 0

Iv;1 =fji 2 f5; 6g; ji;1> 0g = f5; 6g;

and

jmini2Iv;1

vji

ji;1

= minf3 1;1

1g = 1

(26)

So, k = 1, js = 6. The basis of the next extreme point will be the system of columns C1; C5:

Using the theorem characterizing the extreme points, we …nd the next extreme point w:

2 4 1

1 3 5 w1+

2 4 1

0 3 5 w5 =

2 4 3

1 3 5 ;

and w = (1; 0; 0; 0; 2; 0). Moreover, B = 2 4 1 1

1 0 3

5 and, in consequence,

B 1 = 1 1

2

4 0 1

1 1 3 5

T

= 2 4 0 1

1 1

3 5 ; 2

4 1;2

5;2

3

5 = B 1C2 = 2

4 1

2 3 5 ; 2

4 1;3

5;3

3

5 = B 1C3 = 2 4 1

2 3 5 ; 2

4 1;4

5;4

3

5 = B 1C4 = 2 4 2

1 3 5 ; 2

4 1;6

5;6

3

5 = B 1C6 = 2 4 1

1 3 5 :

and

2 =h(0; 1); ( 1; 2)i 0 = 2;

3 =h(0; 1); (1; 2)i 0 = 2;

4 =h(0; 1); (2; 1)i 0 = 1;

6 =h(0; 1); (1; 1)i 1 = 2:

(27)

So, the simplex table for the point w = (1; 0; 0; 0; 2; 0) is the following u1 u2 u3 u4 u5 u6

u1 1 1 1 2 0 1 1

u5 0 2 2 1 1 1 2

0 2 2 1 0 2 2

:

For the above simplex table there is case 30. We have

2 > 0

Iv;2 =fji 2 f1; 5g; ji;2 > 0g = f5g;

and

min

ji2Iv;2

vji

ji;1

= minf2 2g = 1

Thus, k = 2, js = 5. The basis of the next extreme point will be the system of columns C1; C2:

Using the theorem characterizing the extreme points, we …nd the next extreme point w:

2 4 1

1 3 5 w1+

2 4 1

1 3 5 w2 =

2 4 3

1 3 5 ;

and w = (2; 1; 0; 0; 0; 0). Moreover, B = 2 4 1 1

1 1

3

5 and, in consequence,

B 1 = 1 2

2

4 1 1

1 1

3 5

T

= 2 4

1 2

1 2 1 2

1 2

3 5 ; 2

4 1;3

2;3

3

5 = B 1C3 = 2 4 2

1 3 5 ; 2

4 1;4

2;4

3

5 = B 1C4 = 2 4

3 2 1 2

3 5 ;

(28)

2 4 1;5

2;5

3

5 = B 1C5 = 2 4

1 2 1 2

3 5 ; 2

4 1;6

2;6

3

5 = B 1C6 = 2 4

1 2 1 2

3 5 :

and

3 =h(0; 0); (2; 1)i 0 = 0;

4 = (0; 0); (3 2; 1

2) 0 = 0;

5 = (0; 0); (1 2;1

2) 1 = 1;

6 = (0; 0); (1 2; 1

2) 1 = 1:

The simplex table for the point w = (1; 0; 0; 0; 2; 0) is of the form u1 u2 u3 u4 u5 u6

u1 1 0 2 32 12 12 2 u2 0 1 1 12 12 12 1

0 0 0 0 1 1 0

:

For the above simplex table there is case 10. Since J1(2; 1; 0; 0; 0; 0) = 0, therefore U 6= ?.

Moreover, since the point z = (2; 1; 0; 0; 0; 0) is a solution of the auxiliary problem, therefore the point v1 = (2; 1; 0; 0) is an extreme point of the set U .

Cytaty

Powiązane dokumenty

It follows that the class α is represented by the subscheme of B A corresponding to complete quadrics that are tangent to m i given codimension-i planes in general position in Q and

This can be compared with a result of Kwapie´n and Mycielski who showed that if we choose the sequence of unit vectors at random then almost surely we end up with an

However, graphical methods on a GDC can be used for solving polynomial equations and inequalities of degree 4 or higher... Linear systems with three unknowns can also be

Wydaje się, że znaczący wpływ na opisywane zjawiska patofizjologiczne może mieć także stwierdzana u alkoholików zwiększona proliferacja komórek neuro- endokrynnych w

In 1994, the State Forests National Forest Holding established the Forest Promotional complex (LKP) (total of 39,500 ha of commercial forests and 12,000 ha of reserves) in

Bismuth, Financial Sector Regulation and Financial Services Liberalization at the Crossroads: The Relevance of International Financial Standards in WTO Law, 'Journal of World

The CHEST (Crystalloid versus HydroxyEthyl Starch Trial) randomised 7,000 patients at mean 11 hours after admis- sion on the intensive care unit, to receive either saline or 6%

Niedobór estrogenów jest prawdopodobnie tak¿e przy- czyn¹ obni¿enia aktywnoœci enzymów antyoksydacyj- nych w komórkach, co wykazano w erytrocytach krwi u kobiet po menopauzie,