lingo 变量赋值

model:sets:objk/1,2,3,4/:k;obji/0,1,2,3,4,5,6,8,9/:i;objj/0,1,2,3,4,5,6,8,9/:j;endset... model:
sets:
objk/1,2,3,4/:k;
obji/0,1,2,3,4,5,6,8,9/:i;
objj/0,1,2,3,4,5,6,8,9/:j;
endsets
data:
c(0,1)=14.9;c(0,2)=26.9;c(0,3)=30.1;c(0,4)=37;c(0,5)=12.2;c(0,6)=22.3;c(0,8)=21.2;c(0,9)=36;
c(1,2)=12.1;c(1,3)=16.1;c(1,4)=30.1;c(1,5)=8.6;c(1,6)=34.7;c(1,8)=30.7;c(1,9)=23.3;
c(2,3)=8.6;c(2,4)=28.2;c(2,5)=18;c(2,6)=46.1;c(2,8)=40.3;c(2,9)=18;
c(3,4)=39.8;c(3,5)=24;c(3,6)=46.1;c(3,8)=46.6;c(3,9)=9.4;
c(4,5)=25.5;c(4,6)=59.2;c(4,8)=33.6;c(4,9)=46.1;
c(5,6)=34.5;c(5,8)=22.6;c(4,9)=31.8;
c(6,8)=35.4;c(6,9)=47.4;
c(8,9)=53.9;
c(1,0)=14.9;c(2,0)=26.9;c(3,0)=30.1;c(4,0)=37;c(5,0)=12.2;c(6,0)=22.3;c(8,0)=21.2;c(9,0)=36;
c(2,1)=12.1;c(3,1)=16.1;c(4,1)=30.1;c(5,1)=8.6;c(6,1)=34.7;c(8,1)=30.7;c(9,1)=23.3;
c(3,2)=8.6;c(4,2)=28.2;c(5,2)=18;c(6,2)=46.1;c(8,2)=40.3;c(9,2)=18;
c(4,3)=39.8;c(5,3)=24;c(6,3)=46.1;c(8,3)=46.6;c(9,3)=9.4;
c(5,4)=25.5;c(6,4)=59.2;c(8,4)=33.6;c(9,4)=46.1;
c(6,5)=34.5;c(8,5)=22.6;c(9,4)=31.8;
c(8,6)=35.4;c(9,6)=47.4;
c(9,8)=53.9;
c(0,0)=0;c(1,1)=0;c(2,2)=0;c(3,3)=0;c(4,4)=0;c(5,5)=0;c(6,6)=0;c(8,8)=0;c(9,9);
enddata
min=@sum(obji(i):@sum(objj(j):@sum(objk(k):c(i,j)*x(i,j,k))));
@bin(x);@bin(y);
错误11,说是c的语句错误,求指教!
展开
 我来答
wswhk
2013-11-26 · TA获得超过7.1万个赞
知道顶级答主
回答量:4.6万
采纳率:68%
帮助的人:7.4亿
展开全部
下标从1开始
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式