lingo错误代码11:a syntax error has occuredMODEL:Title Location Problem;sets:demand/1..6/:a,b,d;supply/1,2/:x,y,e;link(demand,supply):c;endsetsdata:a=1.25,8.75,0.5,5.75,3,7.25;b=1.25,0.75,4.75,5,6.5,7.75;d=3,5,4,7,6,11;e=20,20;enddatainit:x,y=5,

来源:学生作业帮助网 编辑:作业帮 时间:2024/08/02 09:40:58
lingo错误代码11:a syntax error has occuredMODEL:Title Location Problem;sets:demand/1..6/:a,b,d;supply/1,2/:x,y,e;link(demand,supply):c;endsetsdata:a=1.25,8.75,0.5,5.75,3,7.25;b=1.25,0.75,4.75,5,6.5,7.75;d=3,5,4,7,6,11;e=20,20;enddatainit:x,y=5,
xT[OA+c[(5-Z|0咨vW]lwݒo@^  $ -333&Z0>sΙ43jk5|7#Iߛ[*ͼZt۶lpV:=mhb()?0KZi5oX&7f[U=ȚUMMQVQ i3eB\@E+9ϐU9F$45jL f F@IЇ"TR$~ D TX\Q IRX(BA"Md ȓbaM??4ZnШ% /ݡzCK*FWyEWƴzIZјG#f"" 6>z5Xܙq pC A ]b7aĐ 0]xbhHё *<J 1S'@ñ_l&, 7R0AԝAxV-^],9F^F K=^Ǎ]\T[󇭝n4ښC $Q/t#co]=&nxۋj{1e t][ @Kh֚mNދY*bn0cx3F|;! p+> ë~mvv Z$ uӲ[Ybne>NO[n5l $8bï~X\yȰ+SA=

lingo错误代码11:a syntax error has occuredMODEL:Title Location Problem;sets:demand/1..6/:a,b,d;supply/1,2/:x,y,e;link(demand,supply):c;endsetsdata:a=1.25,8.75,0.5,5.75,3,7.25;b=1.25,0.75,4.75,5,6.5,7.75;d=3,5,4,7,6,11;e=20,20;enddatainit:x,y=5,
lingo错误代码11:a syntax error has occured
MODEL:
Title Location Problem;
sets:
demand/1..6/:a,b,d;
supply/1,2/:x,y,e;
link(demand,supply):c;
endsets
data:
a=1.25,8.75,0.5,5.75,3,7.25;
b=1.25,0.75,4.75,5,6.5,7.75;
d=3,5,4,7,6,11;e=20,20;
enddata
init:
x,y=5,1,2,7;
[OBJ] min=@sum(link(i,j):c(i,j)*((x(j)-a(i))^2+(y(j)-b(i))^2)^(1/2));
@For(demand(i):[DEMAND_CON]@sum(supply(j):c(i,j))=d(i););
@for(supply(i):[SUPPLY_CON]@sum(demand:(j):a(j)));
@for(supply(i):
@bnd(@min(demand(j):a(j)),x(i),@max(demand(j):a(j)));
@bnd(@min(demand(j):a(j)),y(i),@max(demand(j):a(j)));
);
END
我这是一个字也不差照着书上抄的,但是Lingo说[OBJ]的中括号似乎有问题,这是怎么回事啊.我一点也不懂Lingo,

lingo错误代码11:a syntax error has occuredMODEL:Title Location Problem;sets:demand/1..6/:a,b,d;supply/1,2/:x,y,e;link(demand,supply):c;endsetsdata:a=1.25,8.75,0.5,5.75,3,7.25;b=1.25,0.75,4.75,5,6.5,7.75;d=3,5,4,7,6,11;e=20,20;enddatainit:x,y=5,
恐怕不是一字不差吧 你的init段结束要写endinit你写了吗
后面也有多冒号的 还设有根本不是等式或者不等式的