Lagrange multipliers

When solving constrained optimization problems, it is best to include the constraints in the objective function. This way, anything that is not included in the constraints is not considered a minimum.

Let's revisit our earlier problem:

We'll call our constraint C.

So, we define the Lagrangian of C as follows:

Here, and is known as the Lagrange multiplier.

When our constraint is satisfied, then and . By minimizing L over ...

Get Hands-On Mathematics for Deep Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.