lingo !subscript out of range on attribute:y. 求助!急求!model:!问题;min=(@sum(x))^2-(@sum(ver))^2;sets:province/pr1..pr3/:pro;vertical/ve1..ve5/:ver;links(province,vertical):x,y; endsetsdata:pro=15 9 5;ver=9 8 10 1 1;y=0.5 0.5 0.5 0.5 0.5 0.3

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/14 21:29:15

lingo !subscript out of range on attribute:y. 求助!急求!model:!问题;min=(@sum(x))^2-(@sum(ver))^2;sets:province/pr1..pr3/:pro;vertical/ve1..ve5/:ver;links(province,vertical):x,y; endsetsdata:pro=15 9 5;ver=9 8 10 1 1;y=0.5 0.5 0.5 0.5 0.5 0.3
lingo !subscript out of range on attribute:y. 求助!急求!
model:
!问题;
min=(@sum(x))^2-(@sum(ver))^2;
sets:
province/pr1..pr3/:pro;
vertical/ve1..ve5/:ver;
links(province,vertical):x,y;
endsets
data:
pro=15 9 5;
ver=9 8 10 1 1;
y=0.5 0.5 0.5 0.5 0.5 0.3 0.3 0.3 0.3 0.3 0.2 0.2 0.2 0.2 0.2;
enddata
@for(vertical(i)|i#le#5:
x(i,j)ver(i)*y(i,j)-1);
@for(vertical(i)|i#le#5:
@sum(province(j)|j#le#3:x(i,j))=ver(i));
@for(province(j)|j#le#3:
@sum(vertical(i)|i#le#5:x(i,j))=pro(j));
@for(vertical(i)|i#le#5:@gin(x));
end

lingo !subscript out of range on attribute:y. 求助!急求!model:!问题;min=(@sum(x))^2-(@sum(ver))^2;sets:province/pr1..pr3/:pro;vertical/ve1..ve5/:ver;links(province,vertical):x,y; endsetsdata:pro=15 9 5;ver=9 8 10 1 1;y=0.5 0.5 0.5 0.5 0.5 0.3
首先第一句语法就不对 @sum应该是@sum(集名:表达式) 你这个写的完全不对 另外你不要在集定义前面就写集循环函数
后面你@for只对i循环了 那j是多少?是某个确定的数还是要对j循环?你都没有写

lingo错误subscript out of range on attribute lingo:subscript out of range on attribute Q lingo中出现问题:subscript out of range on attribute, lingo中出现问题:subscript out of range on attribute,请尽量说的详细点 “subscript out of subscript out of range 是什么? lingo中出现subscript out of range on attribute,这程序要怎么改?2004年数学建模电力市场的输电阻塞管理问题 Run-time error'9':subscript out of subscript out of range 什么意思?怎么解决啊? lingo 找错 for循环有问题(在线等)我是初学者,运行时显示错误为:subscript out of range on attribute 似乎说是指标超出范围,不是很懂!model:sets:year/1..5/:n,n1,n2,n3,n4,q4;endsetsdata:n1=122000000000,;n2=2970000000 lingo !subscript out of range on attribute:y. 求助!急求!model:!问题;min=(@sum(x))^2-(@sum(ver))^2;sets:province/pr1..pr3/:pro;vertical/ve1..ve5/:ver;links(province,vertical):x,y; endsetsdata:pro=15 9 5;ver=9 8 10 1 1;y=0.5 0.5 0.5 0.5 0.5 0.3 为什么下面程序用lingo运行时出现subscript out of range on attribute 求解释?model:sets: cities/s,a1,a2,a3,b1,b2,c1,c2,t/:l; roads(cities,cities)/ s,a1 s,a2 s,a3 a1,b1 a1,b2 a2,b1 a2,b2 a3,b1 a3,b2 b1,c1 b1,c2 b2,c1 b2,b2 c1,t c2 LINGO运行时,总是提示:subscript out of range on attribute,程序如下model:sets:chang/1..3/:;cangku/1..5/:;wuzi/1..10/:t,c;dian/1..8/:;links1(cangku,wuzi):s,d;links2(dian,wuzi):u;links3(chang,wuzi):y;links4(chang,dian):a,x;endsetsdata:c=80,1 Subscript indices must either be real posit... lingo 约束条件 lingo选址 Subscript indices must either be real positive integers or logicals. Subscript indices must either be real positive integers or logicals.