Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Making the best choice within the rules
A rover has one day. Driving costs a lot of battery, and doing science costs a little. How many hours of each should it spend? This is an optimization problem. It has three parts:
- Decisions you control: the hours of driving and of science.
- A goal to make as good as possible: the most useful day.
- Rules you must obey: the battery can’t run out, and there are only 8 hours of daylight.
All the plans that obey the rules are the feasible plans. The best feasible plan is the optimum.
Trajectory design, thruster allocation, controller tuning, training a neural network and scheduling a telescope are all optimization problems. Writing them down precisely is often the hardest and most valuable step. A good formulation can be solved reliably in milliseconds, and a bad one may be unsolvable.
- 1. The quantities you get to choose are the…
- 2. Plans that obey all the rules are…
- 3. The optimum is…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Standard form
- is the objective (cost or loss). are inequality constraints and are equality constraints.
- The feasible set is . The optimal value is .
- If is empty the problem is infeasible. If it’s unbounded.
Standard tricks
- Maximize by minimizing .
- Write as .
- An equality is two inequalities: and .
- A constraint is active at if . Inactive constraints could be deleted without changing the local solution.
- 1. To maximize u(x) in standard form, you minimize…
- 2. x₁ + x₂ ≥ 3 in standard form is…
- 3. An empty feasible set means the problem is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Problem classes
| Class | Objective | Constraints | Typical solver |
|---|---|---|---|
| Linear program (LP) | linear | linear | simplex, interior point |
| Quadratic program (QP) | convex quadratic | linear | active set, interior point, OSQP |
| Nonlinear program (NLP) | smooth | smooth | SQP, interior point (IPOPT) |
| Mixed-integer (MILP/MINLP) | any | some variables integer | branch and bound |
| Unconstrained | smooth | none | gradient descent, Newton (A6.1-3, A6.1-4) |
Convex problems (A6.2) have no bad local minima, so recognizing them is worth a lot.
Reformulation tricks
- Absolute values and L1: becomes an LP. Introduce with and minimize .
- Minimax: becomes s.t. (the epigraph form).
- Slack variables: becomes with .
- Penalties: move a constraint into the objective as . This is approximate unless .
- Scaling: choose units so the variables and constraints are of order 1. It’s crucial for numerical solvers.
Multiple objectives
Mass vs energy, speed vs safety: there’s usually no single best point, only the Pareto front of plans that can’t improve one objective without worsening another. Scalarize with weights, , or with an -constraint, s.t. .
- 1. Minimizing Σ|aᵢᵀx − bᵢ| can be written as…
- 2. The epigraph trick turns min max fᵢ into…
- 3. A Pareto-optimal point…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Existence of a minimizer
Weierstrass: a continuous on a nonempty compact (closed and bounded) feasible set attains its minimum. Without compactness, a minimizer may not exist: over has but no minimizer. Coercivity ( as ) on a closed set also guarantees existence: some sublevel set is compact and nonempty.
Why LP optima sit at vertices
A linear objective on a polytope: any feasible point is a convex combination of vertices, , so . ∎ For , with , vertices are basic feasible solutions with at most nonzero entries. The simplex method walks between them.
Equivalent problems aren’t equally easy
and have the same minimizers, but the squared version is smooth and has the closed form . Replacing by (a relaxation) gives a lower bound that’s easy to compute. That’s the foundation of branch and bound (A6.4-5).
Exercise 3.1: Write the L∞ fit as an LP
becomes s.t. for all . That’s variables and linear constraints.
- 1. Weierstrass guarantees a minimizer when f is continuous and the feasible set is…
- 2. min eˣ over ℝ has…
- 3. A basic feasible solution of Bu = w (B is 3×6) has at most how many nonzeros?
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Thruster allocation on a spacecraft
A planar spacecraft has 6 thrusters that can only push. A controller requests a wrench . Find thrusts with .
- Least-norm formulation : it’s elegant but ignores , so some thrusters are asked to pull. Clipping fixes the signs and breaks the wrench.
- LP formulation s.t. , : this minimizes fuel and is feasible. Its optimum fires at most 3 thrusters. Real attitude-control systems solve this kind of LP or QP at every control step (Bodson, 2002, control allocation).
Formulation in AI, robotics and aerospace
- Trajectory optimization: direct collocation and multiple shooting turn optimal control into a large sparse NLP (Betts, 2010). Lossless convexification makes powered-descent landing a convex SOCP solved on board (Açıkmeşe and Ploen, 2007).
- Model predictive control solves a QP every few milliseconds, which needs a formulation that stays well-posed (OSQP; Stellato et al., 2020).
- Machine learning is empirical-risk minimization: .
- Scheduling and planning (telescope time, Deep Space Network antennas) are mixed-integer programs.
References
- S. Boyd, L. Vandenberghe (2004). Convex Optimization. Cambridge University Press. Ch. 1 and 4.
- J. Nocedal, S. Wright (2006). Numerical Optimization, 2nd ed. Springer. Ch. 1 and 12.
- D. Bertsimas, J. Tsitsiklis (1997). Introduction to Linear Optimization. Athena Scientific.
- G. Dantzig (1963). Linear Programming and Extensions. Princeton University Press.
- M. Bodson (2002). “Evaluation of optimization methods for control allocation.” Journal of Guidance, Control, and Dynamics, 25(4).
- J. Betts (2010). Practical Methods for Optimal Control and Estimation Using Nonlinear Programming, 2nd ed. SIAM.
- B. Açıkmeşe, S. Ploen (2007). “Convex programming approach to powered descent guidance for Mars landing.” Journal of Guidance, Control, and Dynamics, 30(5).
- B. Stellato, G. Banjac, P. Goulart, A. Bemporad, S. Boyd (2020). “OSQP: an operator splitting solver for quadratic programs.” Mathematical Programming Computation, 12.
- K. Miettinen (1999). Nonlinear Multiobjective Optimization. Kluwer.
- A. Wächter, L. Biegler (2006). “On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming.” Mathematical Programming, 106.