lingo程序在10行@for(jihe4(i,j)|j#1t#14:x(i,j,3)*x(i,j+1,1)+(1-x(i,j,3))*(1-x(i,j+1,1))=1);错了 求
sets:
jihe1/1..9/;
jihe2/1..14/;
jihe3/1..4/;
jihe4(jihe1,jihe2);
jihe5(jihe1,jihe2,jihe3):x;
endsets
[email protected](jihe4(i,j):(x(i,j,1)*x(i,j,2)+x(i,j,2)*x(i,j,3))+(x(i,j,3)*x(i,j,4)+x(i,j,4)*x(i,j,1)));
@for(jihe4(i,j):@sum(jihe3(k):x(i,j,k))=2);
@for(jihe4(i,j)|j#1t#14:x(i,j,3)*x(i,j+1,1)+(1-x(i,j,3))*(1-x(i,j+1,1))=1);
@for(jihe4(i,j)|i#1t#9:x(i,j,2)*x(i+1,j,4)+(1-x(i,j,2))*(1-x(i+1,j,4))=1);
@for(jihe5(i,j,k):@bin(x(i,j,k)));
end
lingo程序在10行@for(jihe4(i,j)|j#1t#14:x(i,j,3)*x(i,j+1,1)+(1-x(
答案:1 悬赏:20 手机版
解决时间 2021-04-13 03:11
- 提问者网友:情歌越听越心酸
- 2021-04-12 14:47
最佳答案
- 五星知识达人网友:轻雾山林
- 2021-04-12 15:23
sets:
jihe1/1..9/;
jihe2/1..14/;
jihe3/1..4/;
jihe4(jihe1,jihe2);
jihe5(jihe1,jihe2,jihe3):x;
endsets
[email protected](jihe4(i,j):(x(i,j,1)*x(i,j,2)+x(i,j,2)*x(i,j,3))+(x(i,j,3)*x(i,j,4)+x(i,j,4)*x(i,j,1)));
@for(jihe4(i,j):@sum(jihe3(k):x(i,j,k))=2);
@for(jihe4(i,j)|j#lt#14:x(i,j,3)*x(i,j+1,1)+(1-x(i,j,3))*(1-x(i,j+1,1))=1);
@for(jihe4(i,j)|i#lt#9:x(i,j,2)*x(i+1,j,4)+(1-x(i,j,2))*(1-x(i+1,j,4))=1);
@for(jihe5(i,j,k):@bin(x(i,j,k)));
end
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯