Save this video free

Lecture 23: The Lagrangian and method of Lagrange multipliers

Burton Ma · 45:26 · Watch on YouTube

Part of Queen's University CISC 371. See all 23 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

Burton Ma develops the Lagrange multiplier method for equality-constrained optimization: form the Lagrangian, set its gradients with respect to the decision variables and multipliers to zero, then solve the resulting equations. Examples range from projecting onto a line and minimizing Mahalanobis distance with MATLAB to quadratic objectives with linear constraints, multiple equality constraints, and the KKT system.

Key takeaways

Chapters

0:00 Lagrangian Stationarity Converts Constraints into Equations
2:06 Projecting a Point onto a Line with One Multiplier
8:30 Mahalanobis Distance and a Parabolic Constraint
12:30 Solving the Nonlinear Lagrange System in MATLAB
18:45 A Shifted Parabola Creates Three Real Candidates
24:50 Quadratic Objectives and Linear Constraints Form the KKT System
31:00 Multiple Equality Constraints Change the Gradient Condition
36:48 Triangle Example: Minimizing Squared Distances to Three Lines
42:40 Generalized KKT Equations and the Repeatable Solution Workflow

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

Transcript excerpt

0:03 All right. In the last lecture, we were looking at the method of lrangee multipliers for solving um optimization problems uh that are constrained using an equality constraint. Uh so remember this thing h is one of our con is our constraint function. So h of w equals 0 is the form of our constraint function. f is our is our objective function. Um and at the end of the last class we uh ended up uh looking at this equation here. So this is called the lrronian or the lrangee function. Uh it's just the objective function plus mu time h of w. Uh and the claim is that if you uh to find uh the minimizer of f that satisfies the constraint h you can

0:52 find the stationary points of l. So take the gradient with respect to w and mu in this case. Um so you need to take the gradient with respect to both of these uh variables. Um and then uh solve set the gradient equal to zero and then solve the system of equations that arises. Um and so the problem that occurs is that uh you end up with a system of equations here. So you end up with n equations for the w. So w1, w2, w3 and so on. you'll end up with n uh equations for those uh and you'll end up with one more for the mu. Uh so you end up with a system of n plus one equations that you now have to solve and the system is in general not linear uh and so it becomes very difficult to solve. Uh so the basic idea is take your

1:41 function L take its gradient with respect to uh w set that to zero. Take your function L, take its gradient with

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, Burton Ma.

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.