帮忙看哈下面这个lingo程序哪里有问题,显示第十行出错,求指导~
问题描述:
帮忙看哈下面这个lingo程序哪里有问题,显示第十行出错,求指导~
model:
sets:
season/1..4/:x;
fire/2,3,4/:y;
endsets
min=120+x(1)+x(2)+x(3)+x(4);
120*65+x(1)*60>=6000;
((120+x(1))*0.85-y(2))*65+60*x(2)>=7500;
(((120+x(1))*0.85-y(2)+x(2))*0.85-y(3))*65+60*x(3)>=5500;
((((120+x(1))*0.85-y(2)+x(2))*0.85-y(3)+x(3))*0.85-y(4))*65+60*x(4)>=9000;
end
@gin(x(1));
@gin(x(2));
@gin(x(3));
@gin(x(4));
答
下标都从1开始model:sets:season/1..4/:x;fire/1..3/:y;endsetsmin=120+x(1)+x(2)+x(3)+x(4);120*65+x(1)*60>=6000;((120+x(1))*0.85-y(1))*65+60*x(2)>=7500;(((120+x(1))*0.85-y(1)+x(2))*0.85-y(2))*65+60*x(3)>=...