Sheet01 H LSG
Sheet01 H LSG
Sheet01 H LSG
Homework sheet 1
Homework exercise 1.1
Let X ⊂ Rn , X 6= ∅ and τ : Rn → Rm . Prove the following statements:
a) For all w ∈ Rn : aff(X + w) = aff(X) + w.
b) 0 ∈ aff(X) ⇔ aff(X) = lin(X).
c) aff(X) = v + lin(X \ {v} − v) for any v ∈ X.
d) The affine subspaces of Rn are exactly the sets of solutions of systems of linear equations.
n o
e) For all v 1 , . . . , v k ∈ X it holds v 1 , . . . , v k affinely independent if and only if v l − v i : l 6= i is
linearly independent for any l ∈ [k].
x ∈ aff(X + w)
k
X k
X
⇔∃λ1 , ..., λk ∈ R with λi = 1, v 1 , ..., v k ∈ X : x = λi (v i + w)
i=1 i=1
k
X k
X
⇔∃λ1 , ..., λk ∈ R with λi = 1, v 1 , ..., v k ∈ X : x = w + λi v i
i=1 i=1
⇔x ∈ aff(X) + w
a) b)
c) Let v ∈ X. Then aff(X) = aff(X − v) + v = lin(X − v) + v = lin((X − v) \ {0}) + v =
lin(X \ {v} − v) + v.
d) Let X be an affine subspace, i. e., X = v+U for some fixed v ∈ Rn and a linear subspace U . From
linear algebra, we know that any linear subspace is the solution space of a system of a homogenous
linear equation system. This means there exists A ∈ Rm×n such that U = {x ∈ Rn : Ax = 0}.
Thus, X = v + U = {v + x ∈ Rn : Ax = 0} = {y ∈ Rn : A(y − v) = 0} = {y ∈ Rn : Ay = b},
with b := Av.
Page 1 of 6
x1 + 2x2 + x4 ≤ 6 (1)
x1 + x2 + x5 ≤ 4 (2)
3x1 + x5 ≤ 6 (3)
−x3 + 2x4 ≤ −1 (4)
x3 − x4 ≤ 1 (5)
x3 + x5 ≤ 4 (6)
x1 , . . . , x 5 ≥ 0 (7 - 11)
x7 x8
x6
x5 x1 x2
x1
x4
x3
x2
Page 2 of 6
(I) x1 − x2 = 0 (II) x1 − x2 ≥ −1
x1 + x2 ≤ 1 x1 ≥ 0
min cT x
Ax = b
x ≥ 0.
Transform the following LP into natural and standard form using appropriate constraints,
variables and objectives:
min cT x + dT y
Ax + By ≤ a
Cx + Dy = b
x ≥ 0
Give proper dimensions for matrices and vectors (before and after the transformation).
Page 3 of 6
x2 x2
x1
x1
(ii)
x2
x1
s
The original objective c = (c1 , c2 )T ∈ R2 is replaced by c̃ = (c1 , c2 , 0)T ∈ R3 .
(iii)
Page 4 of 6
x1
x−
2
a) Formulate an optimization problem for the solution of the facility location problem given above.
Use only linear constraints, but restrict variables to be integer, if necessary.
Page 5 of 6
(which means it is 0, if the storage is not built and bj if it is built). The objective is the
minimization of costs over the full planning horizon, i. e.
n X
X m m
X
min cij xij + dj yj
i=1 j=1 j=1
In total we have a so called Mixed Integer Linear Program (MILP) – mixed, since some variables
must be integral (yj ), some not (xij ). If the delivery quantities should be “discrete”, i. e. integral,
we obtain an integer linear program / integer linear optimization problem (ILP).
b) Surely one may modify the above model in many ways to adjust it for different circumstances.
Serving some customer Gi from a single storage may be modeled by restricting the coresponding
variables xij as follows:
xij ∈ {0, ai } j ∈ [m]
However, for reasons we will learn about later, one should replace the last condition by x̃ij ∈ {0, 1}
using the transformation xij = ai x̃ij .
Page 6 of 6