lingo 括号不匹配min=@sum(machine(i):@sum(section(j):v(i,j)*t(i,j)*fp(i));cv(i,j)用了for,说我模型定义不正确……麻烦你帮我看一下吧,

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 21:09:09
lingo括号不匹配min=@sum(machine(i):@sum(section(j):v(i,j)*t(i,j)*fp(i));cv(i,j)用了for,说我模型定义不正确……麻烦你帮我看一下吧

lingo 括号不匹配min=@sum(machine(i):@sum(section(j):v(i,j)*t(i,j)*fp(i));cv(i,j)用了for,说我模型定义不正确……麻烦你帮我看一下吧,
lingo 括号不匹配
min=@sum(machine(i):
@sum(section(j):v(i,j)*t(i,j)*fp(i));
cv(i,j)
用了for,说我模型定义不正确……麻烦你帮我看一下吧,

lingo 括号不匹配min=@sum(machine(i):@sum(section(j):v(i,j)*t(i,j)*fp(i));cv(i,j)用了for,说我模型定义不正确……麻烦你帮我看一下吧,
我的意思是楼主第三第四行的程序可能有问题…显然这里没有用for函数,
建议楼主给出完整的代码或者百度HI我…
另外,目标函数
min=@sum(machine(i):@sum(section(j):v(i,j)*t(i,j)*fp(i));
cv(i,j)

lingo 括号不匹配min=@sum(machine(i):@sum(section(j):v(i,j)*t(i,j)*fp(i));cv(i,j)用了for,说我模型定义不正确……麻烦你帮我看一下吧, sum-=max+min; lingo矩阵怎样用lingo软件或者MATLAB写出规划问题解min=sum|x(i)-c(i)|*d(i)条件a(i) lingo语法错误min=@sum(kinds(i):c_p*(Q-s)^2/2Q)+@sum(link(j,i):c_d*d/Q)+@sum(kinds(i):p*s^2/2Q);这一句有什么语法错误 lingo模型定义不正确 求帮忙!MIN = @SUM( LINKS(I, J): COST(I, J) * VOLUME(I, J))+@SUM(AGENCY(I)|DEMAND(I)#GT#(CAPACITY(I)-@SUM(AGENCY(J):VOLUME(I,J))+@SUM(AGENCY(J):VOLUME(J,I))):DEMAND(I)-(CAPACITY(I)-@SUM(AGENCY(J):VOLUME(I,J))+@SUM(AGENCY lingo中@sum(m: 用lingo做一个非线性规划,Min=@sum(Time(i,j):t(i,j)*@sum(order(k):a(i,k)*a(j,k+1)));这个语法怎么改?a(i,j)是0-1变量 LINGO错误提示index variables may not share names with other variablesdemand/1..8/:b;links(supply,demand):cost,x;endsets目标函数;min=@sum(links:cost*x);约束;@for(demand(J):@sum(supply(I):x(I,J)) 数学建模的lingo软件怎么用model:sets:nsell/x1..x6/;psell/y1..y6/;bhouse/z1..z6/;endsets;min={20000000+@Sum(20*120*0.5*zi^2*(1+di),i=1:6)+@Sum(k*si*4000,i=1:6)+@Sum(1000*(49+@Sum(zj,j=1:i-1)-@Sum(xj,j=1:i)),i=1:6)};@for(@Sum(zi,i=1:6)>=@Sum(y 那位高手知道下面这段lingo程序为什么解不出来?谢谢,急!model:sets:warehouses/wh1..wh6/:capacity;vendors/v1..v18/:demand;links(warehouses,vendors):cost,volume,x;endsets!目标函数;min=@sum(links:cost*volume*1);!需求约束;@for(v 请问一下这个LINGO程序错在哪里了啊.为什么老是不执行model:飞机排队问题;sets:planes:passengerALL,passengerEXHANGE,PDT,PAT,delay,MD;time:e;links(planes,time):cost,sequence;endsets目标函数;min=@sum(links:cost*sequence);飞 求lingo改错model:sets:si/1..307/:w,u;sj/1..307/:y;sij(si,sj):s,z,d;endsetsmax=@sum(si(i):w(i)*u(i));min=(s(i,j));@for(@sum(sj(j):y(j))=5);@for(si(i):@sum(sj(j):z-u>=1);@for(sij:z-y lingo错误代码11,求改正modelsets:pingtai/p1..p20/;entrance/e1..e13/;links/pingtai,entrance/:time,path;endsetstime=@ole('1.xls',time);data:min=@sum(links:time*path);@for(entrance(j)@sum(pingtai(i):path(i,j))=1);@for(pingtai(i)@sum(entrance(j lingo运行过程中的错误invalid number of data values for object,该怎么解决?sets:season / 1..4 /:a,b,d,e,y;Routes(season,season)|&1 #le# &2 :c,x;endsets[obj] min = @sum(Routes:c*x) + @sum(season:d*y);@for(season(i):[SUP]@sum(season(j) | i # 请问这两个语句有什么区别啊?我正参加我们学校的数学建模,用lingo求解时出现了问题,1.min=@sum(assigin(i,j):d1(i,j)*(20*@abs(x1-a(i))+30*@abs(y1-b(j)))+d2(i,j)*(20*@abs(x2-a(i))+30*@abs(y2-b(j))));.2.min=@sum(assigin(i,j) 请懂Lingo的人帮忙解释一下这段代码的意思,min=@sum(zijin:y*a)+@sum(yaoqiu(i):d(i)*0.5*@min(link(i,j):y(i)*k(i,j))); @for(zijin:@bin(y));sets:zijin/1..49/:y,a;yaoqiu/1..49/:d;link(build,require):k;endsetslink(zijin,yaoqiu): 两个求和∑放一起什么意思,在lingo里怎么表示?详见举例5 3f(x,y)=∑ ∑ BijXij i=1 j=1式子里i,j是下标,请问这怎么理解,在lingo里应该怎么表示?之前有说lingo里求和是@sum(),但是括号里具体怎 lingo错误求解model:sets:kinds/1..10/:c_p,d,v,Q,s,N;fa/A1,A2,A3/:Qi;hw/m1..m10/:Qj;links(fa,hw):p,x;endsets[email=min=@sum(kinds:0.5*c_p*(Q-s)^2/Q+s^3/Q]min=@sum(kinds:0.5*c_p*(Q-s)^2/Q+s^3/Q[/email]);@sum(links(i,j):p(i,j)*x(i,j))