文件名称:模型求解-ansysworkbench 工程实例详解
文件大小:4.07MB
文件格式:PDF
更新时间:2024-07-01 15:44:33
数学建模
(2)模型求解 问题对应的LINGO程序如下: MODEL: Title 考虑交易费的投资组合模型; SETS: STOCKS/ A, B, C/: C,Mean,X,Y,Z; STST(Stocks,stocks): COV; ENDSETS DATA: ! 股票的初始份额; c=0.5 0.35 0.15; TARGET=0.15; Mean=@file(data2.txt); COV=@file(data3.txt); ENDDATA [OBJ] MIN = @sum(STST(i,j): COV(i,j)*x(i)*x(j)); [ONE] @SUM(STOCKS: X+0.01*Y+0.01*Z) = 1;