Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Linear Programming Excercises, Exercises of Linear Algebra

Linear Programming Programming Excercises With Solutions.

Typology: Exercises

2021/2022

Uploaded on 02/11/2022

stefan18
stefan18 🇺🇸

4.2

(35)

279 documents

1 / 12

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Linear Programming Exercises
Week 1
Exercise 1 Consider the case of the Betta Machine Products Company de-
scribed in the lecture notes.
(a) Use a graphical method to obtain the new optimal solution when the
selling price of product 2 changes to (i) 55 pounds or (ii) 54 pounds.
(b) A third product is being considered which would take 8, 3, 2 minutes of
casting, machinery, and assembly time per unit. The unit cost would be
20 pounds and the selling price 38 pounds. It is thought possible that
Betta might be short of casting capability so there is the possibility of
subcontracting some or all of the casting of product 3. For items cast
at the sub-contractors the unit cost would be 25 pounds. Formulate,
but do not try to solve, the enlarged problem.
Exercise 2 Solve the following problems graphically.
(a)
maximise z=x1+x2
subject to:
x1+ 2x210
2x1+x216
x1+x23
x10, x20.
(b)
minimise z=x1+ 3x2
subject to:
x1+ 2x26
x1x23
x10, x20.
(c) Minimise 2x1x2subject to the constraints in (b).
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Linear Programming Excercises and more Exercises Linear Algebra in PDF only on Docsity!

Linear Programming Exercises

Week 1

Exercise 1 Consider the case of the Betta Machine Products Company de- scribed in the lecture notes.

(a) Use a graphical method to obtain the new optimal solution when the selling price of product 2 changes to (i) 55 pounds or (ii) 54 pounds.

(b) A third product is being considered which would take 8, 3, 2 minutes of casting, machinery, and assembly time per unit. The unit cost would be 20 pounds and the selling price 38 pounds. It is thought possible that Betta might be short of casting capability so there is the possibility of subcontracting some or all of the casting of product 3. For items cast at the sub-contractors the unit cost would be 25 pounds. Formulate, but do not try to solve, the enlarged problem.

Exercise 2 Solve the following problems graphically.

(a) maximise z = x 1 + x 2 subject to: x 1 + 2x 2 ≤ 10 2 x 1 + x 2 ≤ 16 −x 1 + x 2 ≤ 3 x 1 ≥ 0 , x 2 ≥ 0.

(b) minimise z = x 1 + 3x 2 subject to: x 1 + 2x 2 ≥ 6 x 1 − x 2 ≤ 3 x 1 ≥ 0 , x 2 ≥ 0.

(c) Minimise 2x 1 − x 2 subject to the constraints in (b).

Exercise 3 A factory makes 3 components, A, B and C using the same production process for each. A unit of A take 1 hr, a unit of B takes 0. hrs and a unit of C takes 0.5 hrs. In addition, C has to be hand finished, an activity taking 0.25 hrs per unit. Each week total production time (excluding hand finishing) must not exceed 300 hrs and hand finishing must not exceed 45 hrs. The components are finally assembled to make two finished products. One product consists of 1 unit of A and 1 unit of C selling for 30 pounds whilst the other consists of 2 units of B and 1 unit of C and sells for 45 pounds. At most 130 of the first product and 100 of the second product can be sold each week. Formulate the problem of planning weekly production to maximise total proceeds as a linear programming problem in 2 variables and obtain the solution graphically.

Exercise 4 The Claverton Police Force has the following minimum daily requirements for policemen on duty.

  1. 00 − 4. 00 4. 00 − 8. 00 8. 00 − 12. 00 12. 00 − 16. 00 16. 00 − 20. 00 20. 00 − 24. 00 15 35 65 80 40 25

Each policeman comes on duty at 0.00, 4.00, 8.00, 12.00, 16.00 or 20.00 hrs and works for eight consecutive hours. Formulate the problem of finding the duty schedule that minimises the total number of policemen required. Assume that the same schedule is repeated day after day. Do not attempt to solve the problem.

Exercise 8 A mining company produces 100 tons of red ore and 80 tons of black ore each week. These can be treated in different ways to produce three different alloys, Soft, Hard or Strong. To produce 1 ton of Soft alloy requires 5 tons of red ore and 3 tons of black. For the Hard alloy the requirements are 3 tons of red and 5 tons of black, whilst for the Strong alloy they are 5 tons of red and 5 tons of black. The profit per ton from selling the alloys (after allowing for production but not mining costs, which are regarded as fixed) are £250, £300 and £400 for Soft, Hard and Strong respectively. Formulate the problem of deciding how much of each alloy to make each week as a L.P. problem and use the Simplex method to find the optimal solution.

Exercise 9 Prove that if for some basic solution and for some value l such that xl is not in the basis, there is an entry in the objective row ol > 0 and also all values ail ≤ 0, then the problem has no finite maximising solution. (See pages 30–31 of lecture notes for notation as well as the example ending on p33 for a numerical example of such a phenomena).

Exercise 10 Use the Simplex method to show that the following problem has no finite maximising solution.

maximise z = −x 1 + 2x 2 + x 3 subject to: 3 x 1 + x 2 − 4 x 3 ≤ 4 x 1 − x 2 − x 3 ≤ 10 x 1 − 2 x 2 + 6x 3 ≤ 9 x 1 , x 2 , x 3 ≥ 0

Find a particular solution with z > 1000.

Exercise 11 Solve the following problem by the two phase method.

maximise z = x 1 + x 2 − 2 x 3 + 2x 4 subject to: x 1 − x 2 − x 3 − 2 x 4 ≥ 2 x 1 + x 2 + x 4 ≤ 8 x 1 + 2x 2 − x 3 = 4 x 1 , ..., x 4 ≥ 0.

Exercise 12 A health food shop packages three types of snack foods; chewy, crunchy and nutty. These are made by mixing sunflower seeds, rasins, and peanuts. The specifications for each food being given in the following table.

Mixture Sunflower seeds Rasisns Peanuts Retail price/kg Chewy - at least 60% at most 25 % £2. Crunchy at least 60 % - - £1. Nutty at most 20% - at least 60% £1.

The suppliers of the ingredients can deliver each week at most 100kg of sunflower seeds at £1.00/kg, 80kg of rasins at £1.50/kg and 60kg of peanuts at £0,80/kg. Assuming there is no limit to what can be sold, formulate (but do not solve) the problem of finding the mixing scheme that maximises weekly profit.

Exercise 13 A coffee packer blends Brazilian coffee and Colombian coffee to prepare two products, super and deluxe brands. Each kilogram of super coffee contains 0.5 kg of Brazilian coffee and 0.5 kg of Colombian coffee, whereas each kilogram of deluxe coffee contains 0.25 kg of Brazilian coffee and 0.75 kg of Colombian coffee. The packer has 120kg of Brazilian coffee and 160kg of Colombian coffee on hand. If the profit one each kilogram of super coffee is 22 cents and the profit on each kilogram of Deluxe coffee is 30 cents, how many kilograms of each type of coffee should be blended to maximise profits? Formulate and solve.

Exercise 15 Suppose that we consider the asymmetric dual to the primal canonical linear programming problem

maximise z = c · x subject to: Ax = b x ≥ (^0) n

where A ∈ Rm×n, b ∈ Rm^ and c ∈ Rn^ are given. Prove that the conclusion of the Weak Duality Theorem is still valid. That is to say, for any feasible solution x to the primal and feasible solution to the dual y it is still true that c · x ≤ b · y. Further, it is still true that if c · x = b · y then x and y are optimal for the primal and dual respectively.

Exercise 16 Consider the linear programming problem in canonical form

maximise z = c · x subject to: Ax = b x ≥ (^0) n

where A ∈ Rm×n, b ∈ Rm^ and c ∈ Rn^ are given. Recall from Section 5.3 of the lecture notes that if we have a basic feasible solution in the form

x =

(^0) n−m xB

and partitioning A accordingly as (Ao|B) and similarly with c then the tableau associated with the next step of the simplex algorithm may be rear- ranged as follows:

B−^1 A^0

. Im xB (cBTB−^1 A^0 − (c^0 )T)

. 0 T m cBTB−^1 b

Suppose now that x is optimal.

(a) Deduce that cBTB−^1 A^0 ≥ (co)T.

(b) Now suppose that we define wT^ = cBTB−^1 and note that w ∈ Rm. Show that wTA ≥ cT.

(c) Finally show that b · w = c · x.

Use the weak duality theorem to show that w is the optimal solution to the asymmetric dual of the canonical linear programming problem.

Note that this question also tells you how to solve explicitly the dual of a given linear programming problem - this is useful in the next two questions.

Exercise 17 The problem

maximise z = 3x 1 + 6x 2 + 2x 3 subject to: 3 x 1 + 4x 2 + 2x 3 ≤ 200 x 1 + 3x 2 + 2x 3 ≤ 100 x 1 , x 2 , x 2 ≥ 0

has its optimal solution with x 1 and x 2 as basic variables. Use this informa- tion to obtain the simplex tableau for the optimal solution directly without using the simplex algorithm. (ie calculate B−^1 etc).

Write down the dual problem and use the tableau to obtain both the primal and the dual optimal solutions.

Check that the solutions are (i) feasible (ii) have equal values of the objectives and (iii) (for later) satisfy the complementary slackness conditions.

Exercise 18 Consider the problem of the mining company in Exercise 8. Write down the dual problem and use your simplex tableau corresponding to the optimal primal solution to obtain the optimal dual solution. Give an economic interpretation of the dual variables and in terms of this explain why none of the hard alloy was made. By how much would the profit per ton for this alloy have to increase before it could be produced economically?

Exercise 22 Solve the transportation problem having the following cost, requirement, availability table. Start with your first solution coming from the matrix method.

55 70 35 40 80 13 11 18 17 100 2 14 10 1 20 5 8 18 11

Exercise 23 It is required to move machines from factories A, B and C to warehouses X, Y and Z. There are 5 required at X, 4 at Y and 3 at Z, whilst there are 8 available at A, 5 at B and 3 at C. The transport cost in £ between the sites is as follows.

X Y Z A 50 60 30 B 60 40 20 C 40 70 30

Plan the movements to minimise total transport cost.

Exercise 24 Suppose in question 23 there is now an increase in transport cost of £10 per machine taken from B for any machines above three (i.e. for the 4th and 5th). Does this alter the best plan? To solve this you will need to split source B into two sources. This device only works because the cost is increased for higher quantity. Why?

Exercise 25 Suppose now in question 23 there is a reduction in transport cost of £10 per machine taken from A for any machines above six. (This is separate from and not in addition to the change described question 3.) Use the same device as in question 3 to find the new optimal solution, but because this time there has been a decrease in price for higher quantity, you will need to solve two problems and also use pricing out^1. Sort out the details yourself.

Exercise 26 A factory uses a raw material whose price and availability vary seasonally. The price, availability and factory requirement for each quarter of the next year are given in the following table.

Quarter 1 2 3 4 Price/ton in £ 110 100 120 130 Availability (tons) 1000 1700 800 400 Requirement (tons) 750 900 1000 850

The cost per ton of storing the material from one quarter to the next is £4 + 10% of the purchase price. The material may also be stored for two quarters at double the above cost per ton, but will not keep for longer than two quarters. No stock is held initially and none is required at the end. Find the pattern of buying and storing that minimises the total cost. State any assumptions that you make.

Exercise 27 Solve the following transportation problem starting with the N.W.corner solution. The point here is that care is needed in handling de- generate solutions.^2

5 10 10 10 4 2 3 5 6 5 8 10 1 4 3

(^1) Recall the pricing out is a technique by which one imposes a very high transportation

cost in order to avoid such a route appearing in the solution (^2) Recall that a degenerate solution occurs when one of the basic variables is equal to zero.