Minimizing a linear objective function under a unit-sphere constraint
이전 댓글 표시
Hi folks,
It might be pretty simple question for some of you, but it would be great to share this idea with me.
I have an objective function to minimize and it's given as a linear.
Let's say that f(q) where f is linear.
q is of unit length m-dimensional vector and there is another given m-dimensional vector p which is orthogonal to q.
The question is how I can minimize the objective function s.t.
norm(q) = 1 and p'q = 0.
In particular, I'd like to use the simplex method.
Is there any way to tackle this problem using linprog function?
If not, is there any other way to utilize the simplex method in solving this?
Thanks in advance.
Martin
댓글 수: 6
Walter Roberson
2011년 3월 31일
Should that be norm(p)=1 instead of norm(q)=1 ?
Andrew Newell
2011년 3월 31일
He's minimizing f(q).
Martin
2011년 3월 31일
Walter Roberson
2011년 3월 31일
Sorry got the two mixed up.
Martin
2011년 4월 1일
Bjorn Gustavsson
2011년 4월 2일
Why do you want to use an optimization algorithm for this problem. As I outlined below it has a simple solution. Is your real problem more complex? If so in what way?
채택된 답변
추가 답변 (1개)
Bjorn Gustavsson
2011년 3월 31일
0 개 추천
I'd go about it this way (if I've gotten the question right):
- calculate the gradient of f: df
- calculate Df = df - dot(p,df)*p - should be the gradient of f in the plane perpendicular to p.
- calculate q = -Df/norm(Df)
- fmin = f(q)
HTH, Bjoern
카테고리
도움말 센터 및 File Exchange에서 Linear Least Squares에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!