lingo的0-1矩阵,怎样限定行和为1
怎样限定矩阵的每一行的和都为1,但对列不作约束。model:sets:users/u1..u137/:u;roads/r1..r503/:r;link(users,roa...
怎样限定矩阵的每一行的和都为1,但对列不作约束。
model:
sets:
users/u1..u137/:u;
roads/r1..r503/:r;
link(users,roads):x;
endsets
@for(users(I):@for(roads(J):@bin(x(I,J)))); 展开
model:
sets:
users/u1..u137/:u;
roads/r1..r503/:r;
link(users,roads):x;
endsets
@for(users(I):@for(roads(J):@bin(x(I,J)))); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询