数学建模社区-数学中国
标题:
improper use of attribute name 什么问题?
[打印本页]
作者:
J..
时间:
2013-7-12 20:47
标题:
improper use of attribute name 什么问题?
model:
sets:
zuo/1..5/;
link(zuo,zuo):Al,Ar,bl,br,A;
l/1..11/:la;
u/1..3/:w;
endsets
data:
la=0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0;
Al= 1 2 1/4 4 1/2
1/3 1 4 2 1/3
3 1/5 1 3 1/5
1/5 1/3 1/4 1 5
1 2 4 1/6 1
1 3 1/3 3 1/4
1/4 1 5 3 1/3
2 1/6 1 4 1/4
1/4 1/4 1/5 1 5
3 2 3 1/6 1
1 4 1/4 2 1/4
1/5 1 4 3 1/3
3 1/5 1 4 1/3
1/3 1/4 1/5 1 5
3 2 2 1/6 1;
Ar= 1 3 1/3 5 1
1/2 1 5 3 1/2
4 1/4 1 4 1/4
1/4 1/2 1/3 1 6
2 3 5 1/5 1
1 4 1/2 4 1/3
1/3 1 6 4 1/2
3 1/5 1 5 1/3
1/3 1/3 1/4 1 6
4 3 4 1/5 1
1 5 1/3 3 1/3
1/4 1 5 4 1/2
4 1/4 1 5 1/2
1/2 1/3 1/4 1 6
4 3 3 1/5 1;
bl= 1 3 1/4 3 1/4
1/5 1 4 2 1/3
2 1/6 1 3 1/5
1/5 1/4 1/5 1 4
2 1 3 1/6 1;
br= 1 5 1/2 5 1/2
1/3 1 6 4 1
4 1/4 1 5 1/3
1/3 1/2 1/3 1 6
4 3 5 1/4 1;
m=3;
n=5;
t=10;
enddata
improper use of attribute name 什么问题?
作者:
J..
时间:
2013-7-12 20:54
顶啊 这个半天我没有整明白,虽然我没有写后面的执行程序,但感觉这个错误跟后面的执行程序无太大关系。 名字明明是写对的啊为什么会报错呢?
作者:
wujianjack2
时间:
2013-7-12 22:59
我觉得可能是数据段中不允许出现形如”1/4”这样表示数据的格式,换作近似的小数表示应该无误。
作者:
madio
时间:
2013-7-13 16:34
data段无法使用分数,换成小数即可!
作者:
J..
时间:
2013-7-14 21:39
恩,谢谢大家了,哈哈。。
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5