LINGO的,请各位高手看看我这怎么错了我用的lingo10.0model:sets:canshu/c1..c3/:;hangshu/h1,h2/:;shuju(hangshu,canshu):sh;xianzhi/xi1,xi2/:xian;canshus/can1..can3/:ca;bianliang/bian1..bian3/:x;endsetsdata:sh = 1 4 2 5 3 6;xian = 23 26;ca
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/27 10:24:06
LINGO的,请各位高手看看我这怎么错了我用的lingo10.0model:sets:canshu/c1..c3/:;hangshu/h1,h2/:;shuju(hangshu,canshu):sh;xianzhi/xi1,xi2/:xian;canshus/can1..can3/:ca;bianliang/bian1..bian3/:x;endsetsdata:sh = 1 4 2 5 3 6;xian = 23 26;ca
LINGO的,请各位高手看看我这怎么错了
我用的lingo10.0
model:
sets:
canshu/c1..c3/:;
hangshu/h1,h2/:;
shuju(hangshu,canshu):sh;
xianzhi/xi1,xi2/:xian;
canshus/can1..can3/:ca;
bianliang/bian1..bian3/:x;
endsets
data:
sh = 1 4 2
5 3 6;
xian = 23 26;
ca = 14 20 17;
enddata
max = @sum(canshu(j):ca(j)*x(j));
@for(hangshu(i):@sum(canshu(j):sh(i)(j)*x(j))
LINGO的,请各位高手看看我这怎么错了我用的lingo10.0model:sets:canshu/c1..c3/:;hangshu/h1,h2/:;shuju(hangshu,canshu):sh;xianzhi/xi1,xi2/:xian;canshus/can1..can3/:ca;bianliang/bian1..bian3/:x;endsetsdata:sh = 1 4 2 5 3 6;xian = 23 26;ca
楼主,搞定~
model:
sets:
canshu/c1..c3/:;
hangshu/h1,h2/:;
shuju(hangshu,canshu):sh;
xianzhi/xi1,xi2/:xian;
canshus/can1..can3/:ca;
bianliang/bian1..bian3/:x;
endsets
data:
sh = 1 4 2
5 3 6;
xian = 23 26;
ca = 14 20 17;
enddata
max = @sum(canshu(j):ca(j)*x(j));
@for(hangshu(i):@sum(canshu(j):sh(i,j)*x(j))