代码:
MODEL:
Title 简单的投资组合模型;
SETS:
YEAR/1..12/;
PROGRAMS/A,B,C/:Mean,X;
link(YEAR,PROGRAMS):R;
PRPR(PROGRAMS,PROGRAMS):cov;
ENDSETS
DATA:
TARGET=1.15;
R=
1.300 1.225 1.149
1.103 1.290 1.260
1.216 1.216 1.419
0.954 0.728 0.922
0.929 1.144 1.169
1.056 1.107 0.965
1.038 1.321 1.133
1.089 1.305 1.732
1.090 1.195 1.021
1.083 1.390 1.131
1.035 0.928 1.006
1.176 1.715 1.908;
ENDDATA
CALC:
谢谢各位!