lingo 求助....
model:
泄洪道设计;
sets:
village_f/v1..v6/: q_sum_f;
village_l/v1..v6/: q_sum_l;
links(village_f,village_l): Q,L;
endsets
!目标函数;
min=@sum(links:Q(I,J)*L(I,J));
!Q约束;
@for(village_f(I):
@for(village_l(J):q_sum_f(I)=q_sum_f(I)+(@if(Q(I,J)#ne# 0 1,0))))
@for(village_l(I):
@for(village_f(J):q_sum_l(I)=q_sum_l(I)+(@if(Q(I,J)#ne# 0 1,0))))
@for(q_sum_f(I)=q_sum_l(I)+1)
!这里是数据;
data:
q_sum_f=0,0,0,0,0,;
q_sum_l=0,0,0,0,0,;
L= 0 1 2 3 4 5
0 0 2 3 4 5
0 0 0 2 4 5
0 0 0 0 1 4
0 0 0 0 0 1
0 0 0 0 0 0 ;
Q= 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 ;
enddata
End
运行出错,出错代号为1017,求解?
------最佳解决方案--------------------连个;都没有
------其他解决方案-------------------- q_sum_f=0,0,0,0,0,;
q_sum_l=0,0,0,0,0,;
------其他解决方案--------------------建议在其它区域( 软件开发区域)去发帖问一下,也许遇到的高手多些
------其他解决方案--------------------版本太低或者没注册,用破解的lingo11应该可以