Exercises 1 1) (The Solution Is Not Given.) Given The Following Programming Problems
Exercises 1 1) (The Solution Is Not Given.) Given The Following Programming Problems
max z = 3x1 - x2
s. t. x1 - x2 ≤ 2
x1, x2 ≥ 0
2) You want to purchase quantities x1, x2, x3 of three goods at prices, 5 2, 7 (in euros) respectively
such that the sum of these quantities is maximised, the total expenditure does not exceed 20 and the
product of the quantities x1 and x2 is greater than 11. Write (without solving it) the problem of
constrained maximisation. Is it a linear programming problem?
3) (The solution is not given.) Given the following problems solved in Lecture 1:
max z = x1 + x2
s. t. 2x1 + x2 ≥ 2
x1 + x2 ≤ 3
x1, x2 ≥ 0
min z = x1 + x2
s. t. 2x1 + x2 ≤ 2
x1 + x2 ≥ 3
x1, x2 ≥ 0
max z = x1 + x2
s. t. x1 + 2x2 ≥ 6
x2 ≤ 2
x1, x2 ≥ 0
min z = x2
s. t. x1 + x2 ≥ 3
x2 ≤ 2
x1, x2 ≥ 0
solve each of them as a minimum problem (if maximum) or as a maximum problem (if minimum),
both with the gradient method and (if possible) with the vertices method.
1
s. t. x1 + x2 ≤ 4
2x1 + x2 ≤ 5
- x1 + 4x2 ≥ 1
x1, x2 ≥ 0.
2
SOLUTIONS
2) We obtain:
max z = x1 + x2 + x3
s.t. 5x1 + 2x2 + 7x3 ≤ 20
x1 ⋅ x2 > 11
x1, x2, x3 ≥ 0.
It is not a linear programming problem because the second constraint contains the product of two
variables.
4)
giving the constrained minimum point x* = (19/9, 7/9) and the constrained minimum z* = - 67/9;
the constrained minimum point is x* = (0, 4) and the constrained minimum is z* = 16.
5 x1 + 15 x2 ≤ 480
4 x1 + 4 x2 ≤ 160
35 x1 + 20 x2 ≤ 1&190
x 1, x2 ≥ 0.
Having drawn the set X, in order to find the optimal solution we represent a level line and the
gradient:
3
z = 0 ⇒ 13 x1 + 23 x2 = ⇒ 0 x2 = -13/23 x1
∇z = (13 23)