怎么用lingo编这种的程序 求bi*xij 的和 i=1..3 j=1..4 跪求高手帮忙!!!

2024-11-24 10:05:09
推荐回答(1个)
回答1:

sets:
r/1..3/:b;
c/1..4/:;
link(r,c):x;
endsets
sum=@sum(link(i,j):b(i)*x(i,j));