LINGO错误161怎么改sets: stopplan/1,2,3,4/:p,x,R,Cfix,Ck; station/1..14/:SN; origin/1..14/; destination/1..14/; link1(origin,destination):Q,d; link2(stopplan,station):Yki,Cki;endsetsdata: m=6028; capacity=12; l=134;

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 17:56:03

LINGO错误161怎么改sets: stopplan/1,2,3,4/:p,x,R,Cfix,Ck; station/1..14/:SN; origin/1..14/; destination/1..14/; link1(origin,destination):Q,d; link2(stopplan,station):Yki,Cki;endsetsdata: m=6028; capacity=12; l=134;
LINGO错误161怎么改
sets:
    stopplan/1,2,3,4/:p,x,R,Cfix,Ck;
    station/1..14/:SN;
    origin/1..14/;
    destination/1..14/;
    link1(origin,destination):Q,d;
    link2(stopplan,station):Yki,Cki;
endsets
data:
    m=6028;
    capacity=12;
    l=134;
    k=0.1;
    p=0.45,0.50,0.80,1.00;
    A=612;
    Cfix=8000,7000,6000,5000;
    Ck=70,60,50,50;
    SN=12,5,5,1,1,1,9,5,5,1,1,1,1,12;
    Q=@file(1_1.txt);
    d=@file(1_1.txt);
    Yki=@file(1_1.txt);
    Cki=@file(1_1.txt);
enddata
MAX=@sum(stopplan(i):@sum(link1:Q*d*k)*p(i)*x(i))-@sum(stopplan(i):Cfix(i)*R(i))-
    @sum(stopplan(i):l*Ck(i)*R(i))-@sum(stopplan(i):@sum(station(j):Cki(i,j)*Yki(i,j))*R(i));
    R(i)=@floor(x(i)/A)+1;
@for(stopplan:@sum(stopplan(i):@sum(link1:Q)*k*x(i))=m);
@for(stopplan:@sum(stopplan(i):A*R(i))>=m);
@for(stopplan:@sum(stopplan(i):0.70*A*R(i))<=m);
@for(stopplan:@sum(stopplan(i):0.90*A*R(i))>=m);
@for(stopplan:@sum(stopplan(i):R(i))<=capacity);
@for(station(j):@sum(stopplan(i):Yki(i,j)*R(i))<=SN(j));
@for(stopplan:@gin(R));

LINGO错误161怎么改sets: stopplan/1,2,3,4/:p,x,R,Cfix,Ck; station/1..14/:SN; origin/1..14/; destination/1..14/; link1(origin,destination):Q,d; link2(stopplan,station):Yki,Cki;endsetsdata: m=6028; capacity=12; l=134;
@for和@sum的集名后面一定要加下标

LINGO错误161怎么改sets: stopplan/1,2,3,4/:p,x,R,Cfix,Ck; station/1..14/:SN; origin/1..14/; destination/1..14/; link1(origin,destination):Q,d; link2(stopplan,station):Yki,Cki;endsetsdata: m=6028; capacity=12; l=134; lingo中sets是什么? 在lingo最优化程序中,总说模型定义错误,还有15号错误,这是怎么回事,要怎么改,想了很久也没想出哪错model:sets:head/1..10/:;tail/1..10/:;links(head,tail):q,w;endsetsdata:w=0 0.8 0.5 0.9 1.2 1.4 1.2 1.6 1.7 2.20.8 0 0.9 lingo中这个INVALIDSETNAME.错误怎么改model:sets:bzx/1..7/:x,y,t,w,n;endsetsmin=20.4*10^2-@sum(bzx(i):(t(i)*x(i)+t(i)*y(i)));@for(bzx(i):@gin(x(i))); @for(bzx(i):@gin(y(i)));@for( @sum(bzx(i)|i#gt#4:t(i)*x(i)+t(i)*y(i)) 错误选项怎么改? 错误选项怎么改? The sun sets above the horizon.怎么改? lingo sets中可以由已知数 和 未知数组成吗?例如 sets zuobio/1..22/:x,y; endsets 前20个已知,怎么写 初学建模,用lingo有些不会我自己写的程序如下,但好像有些错误,倒数第二排的错误就不知道怎么解决model:sets: nodes/n0..n9/; liuliang(nodes,nodes):C,X;endsetsdata:C=0 12 20 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 错误题怎么改啊? 这题错误怎么改 错误题怎么改啊? 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程序的错误:unable to solve for fixed variable 怎么改正?sets:machine/1..8/:total;line/1..6/:actual;link(machine,line):value;endsetsdata:total=150,79,180,99.5,125,140,95,113.9;value=0.083-0.055-0.07-0.03500.2380.0480.1280.061-0.1030.242 model is ill lingo,高手帮帮忙!1下面的是我写的 但是怎么改都有错!model:sets: varei/1..7/:t,s; varej/1..4/:size,num,p1,p2,g,b,q; links(varei,varej):x,p,m,d;endsets!目标函数;min=@sum(links:m(i,j)*((p(i,j)-p1(j))*b(j)+g(j))*t(i) lingo矩阵输入错误29 lingo矩阵输入错误29 怎么在lingo中使用括号,好像有括号的都显示是错误的