Know values: matrix(n x m)—— X,F and Delta; vector—-u;
wanted value: vector—— w;
restrictive condition:
pic
Now shall I set vector — ‘w’ to get the biggest value of R/P?
Can I get some advice about optimizing this algorithm?
-
vx2008
- Posts: 0
- Joined: Thu Jan 01, 2004 12:00 am
- Tradenator
- Posts: 0
- Joined: Thu Jan 01, 2004 12:00 am
Can I get some advice about optimizing this algorithm?
Is R correctly specified? You are trying to add a vector to a matrix multiplication?
-
vx2008
- Posts: 0
- Joined: Thu Jan 01, 2004 12:00 am
Can I get some advice about optimizing this algorithm?
thanks for your reply;
Yes, I want to get a vector 'w' to make 'R/P' biggest.
Yes, I want to get a vector 'w' to make 'R/P' biggest.
-
ebal
- Posts: 0
- Joined: Thu Jan 01, 2004 12:00 am
Can I get some advice about optimizing this algorithm?
Seems like you simply have R = b w and P = sqrt(w^T C w). Their ratio is invariant to re-scaling of w, so you can always choose w so that P = 1. Then you have to maximize R with fixed P which is Lagrange optimization problem: b w + l (w^T C w - 1), where l is Lagrange multiplier (note P^2 to get rid of square root). This is straightforward.