求大神为什么lingo报错?model:min=((x2-x1)^2+(y2-y1)^2)^(1/2)+((x4-x3)^2+(y4-y3)^2)^(1/2)+2*@asin(((x2-x3)^2+(y2-y3)^2)^(1/2)/20)*3.14*10/180;(x2-80)^2+(y2-210)^2=10^2;(X3-80)^2+(y3-210)^2=10^2;x1=0;y1=0;End

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 00:40:02
求大神为什么lingo报错?model:min=((x2-x1)^2+(y2-y1)^2)^(1/2)+((x4-x3)^2+(y4-y3)^2)^(1/2)+2*@asin(((x2-x3)^2+(

求大神为什么lingo报错?model:min=((x2-x1)^2+(y2-y1)^2)^(1/2)+((x4-x3)^2+(y4-y3)^2)^(1/2)+2*@asin(((x2-x3)^2+(y2-y3)^2)^(1/2)/20)*3.14*10/180;(x2-80)^2+(y2-210)^2=10^2;(X3-80)^2+(y3-210)^2=10^2;x1=0;y1=0;End
求大神为什么lingo报错?
model:
min=((x2-x1)^2+(y2-y1)^2)^(1/2)+((x4-x3)^2+(y4-y3)^2)^(1/2)+2*@asin(((x2-x3)^2+(y2-y3)^2)^(1/2)/20)*3.14*10/180;
(x2-80)^2+(y2-210)^2=10^2;
(X3-80)^2+(y3-210)^2=10^2;
x1=0;
y1=0;
End

求大神为什么lingo报错?model:min=((x2-x1)^2+(y2-y1)^2)^(1/2)+((x4-x3)^2+(y4-y3)^2)^(1/2)+2*@asin(((x2-x3)^2+(y2-y3)^2)^(1/2)/20)*3.14*10/180;(x2-80)^2+(y2-210)^2=10^2;(X3-80)^2+(y3-210)^2=10^2;x1=0;y1=0;End
标点都要用英文半角标点 你这个min后面的分号是中文的

求大神为什么lingo报错?model:min=((x2-x1)^2+(y2-y1)^2)^(1/2)+((x4-x3)^2+(y4-y3)^2)^(1/2)+2*@asin(((x2-x3)^2+(y2-y3)^2)^(1/2)/20)*3.14*10/180;(x2-80)^2+(y2-210)^2=10^2;(X3-80)^2+(y3-210)^2=10^2;x1=0;y1=0;End 求大神lingo 代码为什么报错?model:min=((x38-100)^2+(y38-700)^2)^(1/2)+@asin((((x38-x39)^2+(y38-y39)^2)^(1/2))/20)*3.14/9;(x38-270)^2+(y38-680)^2=100;(x39-270)^2+(y39-680)^2=100;End lingo报错 求问lingo大神!model:max=3*x11+9*x12-7*x21-x22-x31+5*x32-6*x41;0.5*x11-1.5*x21-0.5*x31-1.5*x41 请教lingo程序已知两点坐标(0.54396095,2.119993265),(0.69667726,2.031854138)求其余八个点中到已知两点距离最短的点.我是这样编的,不过报错model:sets:chshi/1..8/:a,b;juli/1,2..8/:c;endsetsmin=@smin(6371*@acos(@c 求大神指点,lingo出现错误代码11,这是为什么?model:!目标函数;min=(0.005*((@log(1+k))^2+(@log(1+2*k))^2+(@log(1+3*k))^2+(@log(1+4*k))^2+(@log(1+5*k))^2))!/(@log(1+k)+@log(1+2*k)+@log(1+3*k)+@log(1+4*k)+@log(1+5*k));!约束条件;(@log 目标函数的lingo语句(0-1变量)是不是写错了啊求大神指点!运行出的结果是没有计算运费的最优方案,但是不知道错在哪里…本程序是模型Ⅰ中张三的程序;model:最优网购问题;sets:定义变量部 求大神改一下lingo程序model:sets:time/1..51/:t;rongliang/1..51/:r;link(time,rongliang):x;endsetsmin=@sum(time:t);@for(link:@bin(x));@for(link:@sum(link:x(i,j)*r) lingo中求最小值问题model:max=x1+x2;-1 lingo问题不知道这些是什么意思,求大神指教 MATLAB中画图函数,plot(x,f)语句为什么一直报错?f是x的函数,求大神指导, lingo中model is illdefined什么意思? 求大神指教lingo问题,下面代码哪错了?model:sets:w/1..6/:a;q/1..8/:d;link(w,q):c,x;endsetsmin=@sum(link:c(i,j)*x(i,j));@for(w:@sum(q:x)<a);@for(q:@sum(w:x)=d);data:a=60 55 51 43 41 52;d=35 37 22 32 41 32 43 38;c=6 2 6 7 4 2 5 94 9 5 3 8 求lingo大神帮忙解决这个求极值问题大神请给我源代码 LINGO 报错model:集;sets:i/1 2 3 4/;eg/ E1 E2 E3 E4 E34 E43/:value;price/p1 p2 p3 p4/:cost1;last_year_price/p01 p02 p03 p04/:cost0;output/s1 s2 s3 s4 /:volume1;last_year_output/s01 s02 s03 s04 /:volume0;endsets数据;data:value=0.4 2.7 1.1 0.4 0.1 lingo报错,MODEL:sets:fac/a1..a49/:Fcus/b1..b49/;link(fac,cus):M,X;endsetsdata:F=省略M=省略X=省略enddatamin=@sum(cus(j):@sum (fac(i):X(i,j)*M(j)*z(i)))+@sum(fac(j):f(j)*z(j));@bin(z);@for(fac(j):@sum(cus(i):z(i,j)) lingo 报错 model is ill definedmodel:sets: warehouses/wh1..wh3/: capacity; vendors/v1..v8/: demand; links(warehouses,vendors): cost,volume,x;endsets min=@sum(links: cost*volume)-@sum(links|x #eq# 1:0.5*cost*volume); @for(links: @bin(x)); @s lingo报错index variables may not share names with other variables该怎么调试啊model:sets:Experts/E1,E2,E3/:D,N,Adjusted_D;Alternatives/X1,X2,X3,X4,X5/:B;Attributions/A1,A2,A3,A4,A5,A6,A7,A8/:W,M,Adjusted_W;links1(Experts,Alternatives):T,F;link