Constrained Optimization

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.

(47 lines omitted)
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+