数学建模的一些简单题型:lingo实操
答案如下
MODEL:
sets:
hang/1…4/:c,s3;
lie/1…3/:x,s1,s2;
hanglie(hang,lie):r;
endsets
data:
c=50 10 20 15;
s1=16 16 16;
s2=19 19 19;
s3=4 5 6 8;
enddata
min=@sum(lie(i):x(i));
@for(hang(i):@sum(lie(j):r(i,j)*x(j))>c(i));
@for(lie(j):@sum(hang(i):r(i,j)*s3(i))>s1(j));
@for(lie(j):@sum(hang(i):r(i,j)*s3(i))<s2(j));
@for(lie(j):@gin(x(j)));
@for(lie(j):@for(hang(i):@gin(r(i,j))));
x(1)>x(2);
x(2)>x(3);
@sum(lie(j):x(j))>26;
@sum(lie(j):x(j))<31;
end