Advanced Topic 35 of 51 Math for Computing
Optimization
Finding inputs minimizing or maximizing a function.
How it works
Optimization finds the inputs that minimize or maximize an objective function, possibly subject to constraints. Unconstrained problems are approached by setting the gradient to zero and checking the Hessian, or by iterative methods such as gradient descent, Newton's method and quasi-Newton methods like BFGS. Constrained problems use Lagrange multipliers, penalty and barrier methods or specialized algorithms such as linear and quadratic programming. Landscapes may have local minima, saddle points and plateaus, and global optimization uses heuristics such as simulated annealing and evolutionary algorithms.
Where it is used
Training machine-learning models, resource allocation, scheduling, routing, portfolio selection, engineering design and parameter fitting use optimization.
Common pitfall
Non-convex problems can trap methods in poor local optima. Poor scaling and step sizes cause slow convergence or divergence. Constraints can make problems infeasible. The objective may not capture what you really want. Start with a convex formulation if possible, scale variables, use multiple starts and monitor convergence.
Where it fits in the course
Optimization is topic 35 of 51 in Math for Computing, rated Advanced. It follows Taylor Series. The next topic is Convex Optimization.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Math for Computing quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Math for Computing quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Optimization?
Where do people use Optimization?
What is the most common mistake with Optimization?
What should I learn before this topic?
How can I practice it?
Is Optimization hard to learn?
How long does it take to learn Optimization?
Which topics are related to Optimization?
What should I study after Optimization?
Related topics
- Taylor Series (Math for Computing)
- Convex Optimization (Math for Computing)
- Integrals (Math for Computing)
- Lagrange Multipliers (Math for Computing)
- Query Optimization (Databases)
- Cost Optimization (DevOps & Tooling)