急!lingo程序运行时出现以下错误:index variables may not share names with other variables.SETS:PORTE/1,2,3,4,5,6,7,8,9/:INCLUDEA;PORTW/1,2,3,4/:INCLUDEB;PAIREW(PORTE,PORTW):FREIGHT,CARGO,B,V,S,L;ENDSETSMAX=@SUM(PAIREW(i,j):FREIGHT(i,j)*CA

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 16:32:45
急!lingo程序运行时出现以下错误:indexvariablesmaynotsharenameswithothervariables.SETS:PORTE/1,2,3,4,5,6,7,8,9/:IN

急!lingo程序运行时出现以下错误:index variables may not share names with other variables.SETS:PORTE/1,2,3,4,5,6,7,8,9/:INCLUDEA;PORTW/1,2,3,4/:INCLUDEB;PAIREW(PORTE,PORTW):FREIGHT,CARGO,B,V,S,L;ENDSETSMAX=@SUM(PAIREW(i,j):FREIGHT(i,j)*CA
急!lingo程序运行时出现以下错误:index variables may not share names with other variables.
SETS:
PORTE/1,2,3,4,5,6,7,8,9/:INCLUDEA;
PORTW/1,2,3,4/:INCLUDEB;
PAIREW(PORTE,PORTW):FREIGHT,CARGO,B,V,S,L;
ENDSETS
MAX=@SUM(PAIREW(i,j):FREIGHT(i,j)*CARGO(i,j))-60580000-346000*@SUM(PORTE(i):INCLUDEA(i))-346000*@SUM(PORTW(j):INCLUDEB(j))-154*@SUM(PAIREW(i,j):CARGO(i,j));
!FREIGHT CALCULATION;
CALC:
FREIGHT(i,j)=(1.5*(60580000+346000*@SUM(PORTE(i):INCLUDEA(i))+346000*@SUM(PORTW(j):INCLUDEB(j))+154*@SUM(PAIREW(i,j):CARGO(i,j)))*L(i,j))
/(6700*@SUM(PAIREW(i,j):CARGO(i,j)));
!CARGO QUANTITY CALCULATION;
CARGO(i,j)=B(i,j)-V(i,j)*FREIGHT(i,j);
ENDCALC
@FOR(PORTE(i):@BIN(INCLUDEA(i)));
@FOR(PORTW(j):@BIN(INCLUDEB(j)));
@FOR(PORTE(i):@SUM(PORTE(i):INCUDEA(i))<=5);
@FOR(PORTE(i):@SUM(PORTE(i):INCUDEA(i))>=2);
@FOR(PORTW(j):@SUM(PORTW(j):INCUDEB(j))<=2);
@FOR(PORTW(j):@SUM(PORTW(j):INCUDEB(j))>=1);
DATA:
L=
6534,6520,7144,6827,
6499,6485,7109,6798,
6758,6749,7373,7061,
6745,6731,7355,7038,
6129,6119,6739,6428,
6090,6079,6700,6389,
5086,5075,5696,5384,
6114,6103,6724,6415,
6132,6121,6742,6432;
B=
89.7,18.22,603.08,54.9,
90.64,106.22,4834.6,153.7,
168,237.24,4125,813,
1278.5,1205.3,28317.5,1511,
1959.54,3237.88,19015.34,1375.5,
1338.98,1748.88,8900.06,516.84,
1508,410.42,5410.54,711.75,
137,248.98,2117.36,446.4,
68.98,294.66,902.3,515.36;
V=
0.03,0.01,0.18,0.01,
0.11,0.12,1.54,0.05,
0.04,0.07,1.25,0.24,
0.34,0.35,8.75,0.44,
0.63,1.12,6.66,0.45,
0.44,0.61,3.07,0.16,
0.55,0.17,2.12,0.25,
0.05,0.09,0.56,0.11,
0.02,0.11,0.27,0.14;
ENDDATA

急!lingo程序运行时出现以下错误:index variables may not share names with other variables.SETS:PORTE/1,2,3,4,5,6,7,8,9/:INCLUDEA;PORTW/1,2,3,4/:INCLUDEB;PAIREW(PORTE,PORTW):FREIGHT,CARGO,B,V,S,L;ENDSETSMAX=@SUM(PAIREW(i,j):FREIGHT(i,j)*CA
calc里面那句 你循环要写@for啊 这样当然不对

急!lingo程序运行时出现以下错误:index variables may not share names with other variables.SETS:PORTE/1,2,3,4,5,6,7,8,9/:INCLUDEA;PORTW/1,2,3,4/:INCLUDEB;PAIREW(PORTE,PORTW):FREIGHT,CARGO,B,V,S,L;ENDSETSMAX=@SUM(PAIREW(i,j):FREIGHT(i,j)*CA 运行程序出现了错误 lingo程序如何运行 Lingo 错误代码 12-(data missing right parenthesis)运行时出现,数据缺少右括号的错误,这是怎么回事? 程序运行错误//英语翻译 lingo的运行错误问题我的lingo程序模型是这样:MODEL:SETS:QUARTERS/1..1000/:X;ENDSETSMIN = @SUM(QUARTERS(i)|@MOD(i,2)#EQ#0:X(i);) - @SUM(QUARTERS(i)|0#NE#@MOD(i,2):X(i););@for(QUARTERS(i):@sum(QUARTERS(i):X(i)) >= 1000 ;);@for(QUARTERS( 运行如下lingo程序时,出现index variables may not share names with others variables,这是为什么?model:sets:m/1..1000/;n/1..100/;numbers/v1..v100/:demand;links(m,n):a,x,y;endsetsmax=@sum(links:0.8*a(I,J)*x(I,J)+0.8*a(I-400,J)*y(I,J)-demand( 麻烦帮忙看下程序:运行程序lingo程序,出现unexpected jacobian overflowmodel:sets:i/1,2,3,4/:a,b,s;j/1,2/;ij(j,i):x;endsetsdata:a=0.65,0.5,0.56,0.68;b=0.76,0.7,0.72,0.66;s=640,850,530,720;enddatamin=@sum(i(i):(1-a(i))^(x(1,i))+(1-b(i))^(x lingo使用错误在使用lingo时出现unexpected jacobian overflow contact lindo systems for patch availability是怎么回事?由于初学lingo所以还请大家多多指教, 以下程序运行后的输出结果是: i=0:n=0 Do while i 以下程序运行结果为啥是5?求具体过程! for (i=1;i++ (急!在线等)用lingo 10.0建模时出现以下错误:invalid input.A syntax error has occured.代码如下:MODEL:DATA:M=1;ENDDATAmin=(13.6+1000*M)*x1+(12.45+800*M)*x2+(12.3+800*M)*x3+(10.15+1000*M)*x4; 目标函数;x1=10;x1+x2=25;x1+x2 2.程序改错(l)阅读下面的程序,修改以下程序中的错误并上机运行.#include void main(){int a[5],n;for(n=0;n C语言当运行以下程序时,从键盘输入:ab c def (表示回车)则下面程当运行以下程序时,从键盘输入:abc def (表示回车)则下面程序的运行结果是#include “stdio.h#define N 6void main ( ){char c [N];int i=0;for 关于以下程序段的说法正确的是( ).A.第2行编译出错B.第4行编译出错C.编译时产生错误D.编译时没有产生错误,运行时发生异常 .Matlab程序运行后出现以下提示,Optimization terminated:relative function valuechanging by less than OPTIONS.TolFun 求以下程序的运行结果main(){int i,n=0;for(i=1;i PLC上载程序时出现MEWNET设备打开错误是什么意思?