Lagrange Multipliers

조회 수: 6 (최근 30일)
Dhurgham Kadhim
Dhurgham Kadhim 2012년 4월 15일
댓글: Divy 2023년 1월 21일
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
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

댓글을 달려면 로그인하십시오.

채택된 답변

bym
bym 2012년 4월 16일
here is a nudge to solving your problem
syms x y L
d = ??? % for you to fill out; distance from (-1,0)
g = d+L*(x^2+2*x-y) % constraint for given parabola
% additional operations here
show some effort, and some additional help may be forthcoming
  댓글 수: 1
Dhurgham Kadhim
Dhurgham Kadhim 2012년 4월 17일
Thanks, that helped

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Richard Brown
Richard Brown 2012년 4월 15일
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
Richard Brown
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
Divy 2023년 1월 21일
nice ra

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by