修改如下,用设置全局求解器求解可得到结果
model:
sets:
chan/c1..c10/:p,q,w,f;
xie/1..5/:d;
links(chan,xie):x,c,l,a,b,t;
endsets
@for(chan(i):
@sum(xie(j):x(i,j))
修改如下,用设置全局求解器求解可得到结果
model:
sets:
chan/c1..c10/:p,q,w,f;
xie/1..5/:d;
links(chan,xie):x,c,l,a,b,t;
endsets
@for(chan(i):
@sum(xie(j):x(i,j))