现在有5支不同股票构造的投资组合:
The average returns are: 2.0666, 3.1583, 3.2333, 3.3666, 3.7583;
The variance/covariance matrix for the five stocks (the diagonal is the variance) is:
0.0014673888 0.0002836111 0.0005644444 0.0001883055 0.000468777777
0.0002836111 0.0007939097 -0.000012277 0.0006392777 0.000527576388
0.0005644444 -0.000012277 0.0009963888 -0.000032388 -0.00018486111
0.0001883055 0.0006392777 -0.000032388 0.0012387222 0.000598694444
0.0004687777 0.0005275763 -0.000184861 0.0005986944 0.000684243055
the expect return不得小于3,the weight of single share每支股票权重不得大于0.6
short selling is not allowed :no negative weight
请教如何用matlab构造Markowitz模型
以下是用lindo写的目标函数和限定条件:
min
0.0014673888*X1^2+0.0007939097*X2^2+0.0009963888*X3^2+0.001238722*X4^2+0.000684243055*X5^2+0.0002836111*2*X1*X2+0.0005644444*2*X1*X3-0.000012277*2*X2*X3+0.0001883055*2*X1*X4+0.000639277*2*X2*X4-0.000032388*2*X3*X4+0.0004687777*2*X1*X5+0.0005275763*2*X2*X5-0.000184861*2*X3*X5+0.0005986944*2*X4*X5
2.0666*X1+3.1583*X2+3.2333*X3+3.3666*X4+3.7583*X5>3
这里就是求这个目标函数的极值。
S.T.
2.0666X1+ 3.1583X2+ 3.2333X3+ 3.3666X4 3.7583X5 >3
X1 + X2 + X3 + X4 + X5 = 1
X1>=0
X1<=0.6
X2>=0
X2<=0.6
X3>=0
X3<=0.6
X4>=0
X4<=0.6
X5>=0
X5<=0.6
end
熟悉投资组合的朋友给点意见,谢谢:)


雷达卡



京公网安备 11010802022788号







