www.3112.net > lingo Error CoDE 11 新手求大神

lingo Error CoDE 11 新手求大神

min = F*u1*S1+F*u2*S2; S1=1/2*a1*(T1)^2; S2=a1*T1*T2+1/2*a2*(T2)^2; S3=(a1*T1+a2*T2)*T3+1/2*a3*(T3)^2; S4=(a1*T1+a2*T2+a3*T3)*T4+1/2*a4*(T4)^2; S5=(a1*T1+a2*T2+a3*T3+a4*T4)*T5+1/2*a5*(T5)^2; S6=(a1*T1+a2*T2+a3*T3+a4*T4+a5*T5)*T...

添加Model和end进去, MODEL: MAX=x1-x2; a*(x1-x2)+b*x2

上一句结尾应该有分号 限制变量为整数用@gin 比如@gin(y1); @gin(x1);

括号位置有问题 自己好好看看 不行把外层括号去掉再看

添加Model和end进去, MODEL: MAX=x1-x2; a*(x1-x2)+b*x2

可能是你的括号没有括对地方 把源程序复制黏贴上来 看图片不好改的

t of classic cars and a

sets: che/1..3/:WET,VOL; wu/1..4/:w,v,p; Link(wu,che):x;endsetsdata: WET=8000,8000,8000;VOL=9.084,9.084,9.084; w=6500,5000,4000,3000; v=0.0012,0.0015,0.03,0.0008; p=1.7,2.25,4.5,1.12;enddatamax=@sum(wu(i):p(i)*@sum(che(j):x(i,j...

目标函数后面少了一个分号,改正之后还是没有可行解,自己再检查一下是不是哪里漏条件了,还是错了 model: sets: production/1,2/:b; process/1..4/:a,x; link(production,process):c; endsets data: b=1 3; c=1 1 1 0 4 -1 0 1; enddata max=@s...

min=@sum(links(i,j):t(i)*n(i,j)*(c(j)+(p(i,j)-minp(j)*b(j)))+@if(n(@if(i#lt#7,i+1,1),j)#gt#n(i,j),n(@if(i#lt#7,i+1,1),j)-n(i,j),0); 意思是缺右括号 但不太明白你要做什么,所以没法知道右括号该放哪里 需要帮助请给原题

网站地图

All rights reserved Powered by www.3112.net

copyright ©right 2010-2021。
www.3112.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com