lingo程序提示min行语法错误MODEL:SETS:qiefa/1,2,3/:x;bujian/1..4/:L,NEED;shuliang(qiefa,bujian):N;ENDSETSDATA:L=4,5,6,8;NEED=50,10,20,15;yuanliaoL=19;ENDSETSmin=@sum(qiefa:x);@for(bujian(j):@sum(qiefa(i):N(i,j)*X(i))>NEED(j));@for(qiefa(i):@s
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/26 08:26:04
lingo程序提示min行语法错误MODEL:SETS:qiefa/1,2,3/:x;bujian/1..4/:L,NEED;shuliang(qiefa,bujian):N;ENDSETSDATA:L=4,5,6,8;NEED=50,10,20,15;yuanliaoL=19;ENDSETSmin=@sum(qiefa:x);@for(bujian(j):@sum(qiefa(i):N(i,j)*X(i))>NEED(j));@for(qiefa(i):@s
lingo程序提示min行语法错误
MODEL:
SETS:
qiefa/1,2,3/:x;
bujian/1..4/:L,NEED;
shuliang(qiefa,bujian):N;
ENDSETS
DATA:
L=4,5,6,8;
NEED=50,10,20,15;
yuanliaoL=19;
ENDSETS
min=@sum(qiefa:x);
@for(bujian(j):@sum(qiefa(i):N(i,j)*X(i))>NEED(j));
@for(qiefa(i):@sum(bujian(j):N(i,j)*L(j))16);
@for(shuliang:@gin(N)); @for(qiefa:@gin(X));
END
lingo程序提示min行语法错误MODEL:SETS:qiefa/1,2,3/:x;bujian/1..4/:L,NEED;shuliang(qiefa,bujian):N;ENDSETSDATA:L=4,5,6,8;NEED=50,10,20,15;yuanliaoL=19;ENDSETSmin=@sum(qiefa:x);@for(bujian(j):@sum(qiefa(i):N(i,j)*X(i))>NEED(j));@for(qiefa(i):@s
MODEL:
SETS:
qiefa/1,2,3/:x;
bujian/1..4/:L,NEED;
shuliang(qiefa,bujian):N;
ENDSETS
DATA:
L=4, 5, 6, 8;
NEED=50, 10, 20, 15;
yuanliaoL=19;
ENDDATA !这行写错了,已改;
min=@sum(qiefa:x);
@for(bujian(j):@sum(qiefa(i):N(i,j)*X(i))>NEED(j));
@for(qiefa(i):@sum(bujian(j):N(i,j)*L(j))16);
@for(shuliang:@gin(N)); @for(qiefa:@gin(X));
END