Save this video free

2025 Week 6 - Optimization

Numerical Methods for Engineering · 1:58:15 · Watch on YouTube

Part of McMaster University ENGPHYS 2NM4. See all 14 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Optimization methods are compared by their assumptions, convergence, and robustness, from one-dimensional bracketed search with Brent's method to multidimensional derivative-free methods such as Powell and Nelder-Mead, and gradient-based methods including Newton and stochastic gradient descent. The lecture then develops equality constraints through Lagrange multipliers and KKT systems, explains nonlinear least squares with Gauss-Newton and Levenberg-Marquardt, and closes with a neural-network demonstration of fitting a function by adjusting weights.

Key takeaways

Chapters

0:00 Optimization: Objectives, Constraints, and Local Minima
4:50 Global Versus Local Minima and Heuristic Search
8:10 Bounds, Feasible Regions, and the Egg Holder Surface
12:20 Bracketed Minimization with Three Points
15:20 Golden-Section Search and Its Interval Guarantee
19:25 Brent’s Method Combines Bracketing and Interpolation
22:55 Brent Examples and Nonsmooth Objectives
27:50 Brackets Are Not Always Hard Bounds in SciPy
30:00 Powell’s Method Uses Directional One-Dimensional Searches
34:00 Conjugate Directions Avoid Repeated Valley Crossings
38:00 Powell’s Search Path in a Multidimensional Valley
40:00 Nelder-Mead Moves a Simplex Downhill
44:00 Nelder-Mead Reflection, Expansion, and Contraction
45:00 Newton Optimization Finds Stationary Points
51:00 Newton’s Method on Quadratics and Saddle Points
55:00 Gradient Descent, Line Searches, and Conjugate-Gradient Variants
58:00 Stochastic Gradient Descent and Learning Rates
1:00:10 Definite and Indefinite Hessians, Eigenvalues, and Assignment
1:11:00 Trust-Region Optimization Limits Risky Steps
1:20:30 Compare Line Searches, Trust Regions, and Direct Methods
1:26:30 Equality Constraints and Penalty Methods
1:32:00 KKT Systems and Indefinite Saddle-Point Structure
1:38:30 Nonlinear Least Squares Builds an Objective from Residuals
1:45:30 Gauss-Newton Approximates the Least-Squares Hessian
1:49:30 Levenberg-Marquardt Stabilizes Nonlinear Curve Fitting
1:51:00 Neural Networks as Trainable Function Approximators
1:55:00 Training a Small Network to Fit a Damped Sine

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 So, ironically, today is about optimization. Um, that was a gong show. Uh, Google managed to steer me off the highway because there was a slowdown onto um, what is it? Olympic or York or something that goes above Coots. And as soon Yeah. Right. As soon as you turn onto it, it's like surprise 20 minute delay. Yeah. Isn't it great? Fantastic. I love it. Yeah. Okay. Um, I actually had a few things I needed to ask you guys beforehand. Give me a second. Uh, where would that be? Yeah. Okay. Um, from now on, if you want to do the uh the written alternative oral instead of the the oral oral, let's

0:50 go with alternative oral. If you want to do the alternative oral, please let us know. Please let Yuru know know uh when you're submitting the assignment. So Thursday night, right, Friday 8:30, just let her know. And also just write it on the top of your assignment. That way everybody knows beforehand if you want to do it that way. Um that's actually all I got. Yeah. [laughter] Okay. Uh let's see. Optimization. Optimization seems trivial. It seems pretty familiar to the whole idea of like root finding and it is related. The magic with optimization comes in a few ways. First of all is constrained optimization. We're going to get to that one kind of at the end of this week. We're going to talk about equality constraints. Inequality constraints are too advanced for this course. It's a it's a higher level course. Um the other part is that uh a lot of optimization

1:39 functions will not be continuous and therefore you can't always rely on gradient methods to get you all the way there. Whereas root finding typically you you do have at least some kind of

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Numerical Methods for Engineering.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.