我的lingo程序哪里错了啊?model:sets:hp/1..12/:A,B,C,D,x,y,t,r,L;endsetsdata:A=245.1916,284.1283,365.7021,427.249,437.3608,459.9476,433.4294,404.8342,359.2775,305.0403,225.6284,180.7868;B=119.2088,145.4009,163.2084,175.7858,189.9004,189.9489,189.0502,178.184,162.3631,143.5265,118.484,127.4269;C=66.5403,92.3014,76.9834,126.8677,137.8738,119.2908,128.6322,112.2805,106.1233,93.559,68.1415,49.8148;D=44.0014,54.9536,42.69605,59.2862,49.0071,53.5132,60.3861,36.2401,51
问题描述:
我的lingo程序哪里错了啊?
model:
sets:
hp/1..12/:A,B,C,D,x,y,t,r,L;
endsets
data:
A=245.1916,284.1283,365.7021,427.249,437.3608,459.9476,433.4294,404.8342,359.2775,305.0403,225.6284,180.7868;
B=119.2088,145.4009,163.2084,175.7858,189.9004,189.9489,189.0502,178.184,162.3631,143.5265,118.484,127.4269;
C=66.5403,92.3014,76.9834,126.8677,137.8738,119.2908,128.6322,112.2805,106.1233,93.559,68.1415,49.8148;
D=44.0014,54.9536,42.69605,59.2862,49.0071,53.5132,60.3861,36.2401,51.006,42.4224,41.8066,57.1133;
enddata
max=@sum(hp(i):L(i));
@for(hp(i):L(i)=@if(18.5*x(i)+12*y(i) #le# 8870,2120*(18.5*x(i)+12*y(i)),8870*850+1270*(18.5*x(i)+12*y(i))));
@for(hp(i):18.5*x(i)
答