|
thitetaf <thibault.tetafort@edhec.com> wrote in message <20069717.1234199906713.JavaMail.jakarta@nitrogen.mathforum.org>...
> Hello all
>
> I have the Variance-Covariance matrix on N assets and want to calculate the W=[w1,w2...wn] such as the variance of my portfolio is minimized.
>
> I.E : I want to find W such as W'*CovarMatrix*W is minimized. I know that fmincon function exist but my problem is that my CovarMatrix is a parameter. How can I use fmincon such as Matlab is just trying to "play" with the W's ?
>
> Thanks
As you have given W, the quantity W'*CovarMatrix*W would not make sense. Don't you mean that W is to be a column vector rather than a row vector?
What constraints are you placing on W? If you require it to be a unit vector, it is a simple problem in eigenvectors. If there are no constraints, the minimum occurs at W = zeros(n,1), and I am sure you don't mean that.
Roger Stafford
|