lingo model:sets:number1..3:x;modes1..4:a,b;mode(number,modes):r;endsetsdata:a=50,10,20,15;b=4,5,6,8;enddatamin=@sum(number:x);@for(modes(i):@sum(number(j):x(j)*r(j,i))>=a(i));@for(number(i):@sum(modes(j):b(j)*r(i,j))>=16;@for(number(i):@sum(modes(j)

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 05:39:41
lingomodel:sets:number1..3:x;modes1..4:a,b;mode(number,modes):r;endsetsdata:a=50,10,20,15;b=4,5,6,8;

lingo model:sets:number1..3:x;modes1..4:a,b;mode(number,modes):r;endsetsdata:a=50,10,20,15;b=4,5,6,8;enddatamin=@sum(number:x);@for(modes(i):@sum(number(j):x(j)*r(j,i))>=a(i));@for(number(i):@sum(modes(j):b(j)*r(i,j))>=16;@for(number(i):@sum(modes(j)
lingo
model:
sets:
number1..3:x;
modes1..4:a,b;
mode(number,modes):r;
endsets
data:
a=50,10,20,15;
b=4,5,6,8;
enddata
min=@sum(number:x);
@for(modes(i):@sum(number(j):x(j)*r(j,i))>=a(i));
@for(number(i):@sum(modes(j):b(j)*r(i,j))>=16;
@for(number(i):@sum(modes(j):b(j)*r(i,j))=0);
@sum(number:x)>=26;
@sum(number:x)

lingo model:sets:number1..3:x;modes1..4:a,b;mode(number,modes):r;endsetsdata:a=50,10,20,15;b=4,5,6,8;enddatamin=@sum(number:x);@for(modes(i):@sum(number(j):x(j)*r(j,i))>=a(i));@for(number(i):@sum(modes(j):b(j)*r(i,j))>=16;@for(number(i):@sum(modes(j)
你的语法有问题啊 集定义里应该是number/1..3/:x;这样的格式