Optimisation
Warm-upHumanMaximise subject to , , . What is the optimal value?
Maximise subject to , , . What is the optimal value?
Which of these functions are convex? (Choose all that apply.)
In the workshop problem ( subject to , , , ) the optimal dual solution is . By how much does the maximum profit increase if workshop C gets one extra hour (so )?
In the proof of weak duality, . Which hypotheses justify the last inequality ?
Minimise subject to . Which point is the minimiser?
The Lean theorem local_min_convex_global assumes hf : ConvexOn ℝ Set.univ f and hx : IsLocalMin f x and concludes f x ≤ f y. Which function and point show that the convexity hypothesis hf cannot be dropped?
Gradient descent with step is run on a convex -smooth function with , starting at distance from a minimiser. Using Theorem 9, what is the smallest number of steps that guarantees ?
Write gradient_descent(grad, x0, step, iters) that applies to a number x0 iters times and returns the final value. Then use it on , whose gradient is (so ), and observe that steps below converge while larger steps diverge.