帮忙看哈下面这个lingo程序哪里有问题,显示第十行出错,求指导~model:sets:season/1..4/:x;fire/2,3,4/:y;endsetsmin=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.

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 16:52:43
帮忙看哈下面这个lingo程序哪里有问题,显示第十行出错,求指导~model:sets:season/1..4/:x;fire/2,3,4/:y;endsetsmin=120+x(1)+x(2)+x(

帮忙看哈下面这个lingo程序哪里有问题,显示第十行出错,求指导~model:sets:season/1..4/:x;fire/2,3,4/:y;endsetsmin=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.
帮忙看哈下面这个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));

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