Beruflich Dokumente
Kultur Dokumente
Tutorial 1
School of Mathematics
The University of Edinburgh
Year 2016/2017
1. Find the local minima and maxima of the function f (x) = (ax1 − x2 )2 + (1 − ax1 )2 ,
where a 6= 0 is a real number.
Solution:
The gradient of f is ∇f (x) = (4a2 x1 − 2ax2 − 2a, 2x2 − 2ax1 ).
Since a 6= 0, the only stationary point is x∗ = (1/a, 1). Finally, the Hessian matrix of f is
constant:
2 4a2 −2a
∇ (x) =
−2a 2
Since the minors are ∆1 = ∆2 = 4a2 > 0, the matrix is globally positive definite, which
means not only that x∗ is a local minimum but also that f is convex, and, therefore, x∗ is
a strict global minimum.
2. A manufacturer is designing a biodegradable carton with the shape of a rectangular
prism made from recycled materials. The cost of the material is based on the surface area
of the rectangular container that will house the product. The cost per unit area is £1.5
per square meter. The container must hold a volume of exactly 0.032 m3 . The perimeter
of the base must be less than or equal to 1.5 m. Its sides are scaled geometrically to hold
information labels. The width should not exceed three times the length. Its height must
be less than two thirds the width. Its length and width are less than 0.5 m.
(a) Write a model to determine the measures of the container at minimum cost.
(b) Find the stationary points for the unconstrained problem. What can you say about
them and the solution(s) of the constrained problem?
Solution:
(a) Let x1 be the width, x2 the length, and x3 the height of the container.
The area of the front/rear side is x1 x3 , the area of the left/right side is x2 x3 , and the
area of the top/bottom side is x1 x2 . If we multiply the sum of these areas by 2 (because
there two of each) and by 1.5, the objective function is
f (x1 , x2 , x3 ) = 3(x1 x2 + x1 x3 + x2 x3 ).
Solution:
2
, 0 is not a global minimum.
Nonlinear Optimization - Tutorial 1 3
0.8
0.6 3
0.4
2
0.2
1
0
−0.2 0
−0.4
−1
1
−0.6
0.5 1
−0.8 0 0.5
0
−0.5 −0.5
−1
−1 −0.5 0 0.5 1 −1 −1