Lagrange Multipliers
显示 更早的评论
Use the Lagrange mulipliers to find the points on the parabola y=x^2+2x which are the closest to the point(-1,0).
1 个评论
Walter Roberson
2012-4-15
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
采纳的回答
更多回答(1 个)
Richard Brown
2012-4-15
0 个投票
This is not a Matlab question, it's a calculus homework problem. Define a function f(x,y) that you want to minimise, a constraint c(x,y) = 0, and then solve c(x,y) = 0, together with
grad f = lambda grad c
for x, y, and lambda.
3 个评论
Dhurgham Kadhim
2012-4-16
Richard Brown
2012-4-16
It's pretty straightforward to solve by hand - I recommend you do it that way, you'll learn more if you do.
Divy
2023-1-21
nice ra
类别
在 帮助中心 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!