Constrained Optimization

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This Demonstration shows the minimization or maximization of a function (blue) subject to a constraint (red). The green point shows the optimal solution.


The graphic on the left shows the level curves of and together with the gradients. On the right, a 3D graphic of the function is shown together with the constraint of projected onto the surface of .

For either the minimum or maximum, the gradients of the function and the constraint are parallel: , with the Lagrange multiplier . By moving the point around the plot region, you can see that this is a necessary condition for constrained optimization.


Contributed by: Edda Eich-Soellner (University of Applied Sciences, München, Germany) (March 2011)
Open content licensed under CC BY-NC-SA



Permanent Citation

Edda Eich-Soellner (University of Applied Sciences, München, Germany) "Constrained Optimization"
Wolfram Demonstrations Project
Published: March 7 2011

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.