LINGO程序总是有问题model:sets:entrance/1/:x,y;endsetsinit:x=0;y=0;endinit[OBJ]min = ((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2);((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 17:11:58
LINGO程序总是有问题model:sets:entrance/1/:x,y;endsetsinit:x=0;y=0;endinit[OBJ]min=((45-x(i))^2+y(i)^2)^(1/2

LINGO程序总是有问题model:sets:entrance/1/:x,y;endsetsinit:x=0;y=0;endinit[OBJ]min = ((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2);((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30
LINGO程序总是有问题
model:
sets:
entrance/1/:x,y;
endsets
init:
x=0;
y=0;
endinit
[OBJ]min = ((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2);
((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30

LINGO程序总是有问题model:sets:entrance/1/:x,y;endsetsinit:x=0;y=0;endinit[OBJ]min = ((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2);((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30
model:
sets:
entrance/1/:x,y;
endsets
init:
x=0;
y=0;
endinit
[OBJ]min = @sum(entrance(i):((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2));
@for(entrance(i):((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30

LINGO程序总是有问题model:sets:entrance/1/:x,y;endsetsinit:x=0;y=0;endinit[OBJ]min = ((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+((120-x(i))^2+(100-y(i))^2)^(1/2);((45-x(i))^2+y(i)^2)^(1/2)+((35-x(i))^2+(100-y(i))^2)^(1/2)+30 这个lingo程序错在哪?我编了个lingo程序,测试的时候出错,感激不尽~以下是程序“MODEL:title 码流提取问题;SETS:job/1..5/;worker/1..16/;assign(job,worker):x,a,b;ENDSETSDATA:a=30.8667,32.7657,35.4304,37.781,40.3113,28.6755, model: min=800*x11+1000*x12+1200*x13+700*x21+500*x22+700*x23+800*x31+600*x32+500*x33+500*x41+600*x4哪位可以帮忙看下这个lingo程序有什么问题?为什么我把它求出的变量值带入目标函数得到的结果和它自动求出的目 我在使用lingo时出现THE MODEL DIMENSIONS EXCEED THE CAPACITY OF THIS VERSION.哪位大虾可以告诉我是什么地方出了问题.如何解决,程序应该不用出错.谢谢.程序如下:model:title CUMCM-2003B-01;sets:cai / 1..10 /:crate, 用lingo实现,y(i)=y(j)时,x(i)不等于x(j)?大哥大姐们:请问用lingo如何实现y(i)=y(j)时,x(i)不等于x(j)?lingo有这个功能吗?我试过了,但是不行,我的现有程序是:MODEL:data:M=7;enddatas lingo求不出可行解程序对应的方程组如上所示,lingo程序如下:model: sets: plan/1..36/;分配方法(堆数)有36种; raw/1..14/:l,total;第二档原料有14种,l是原料长度,total是各个原料的根数; require Lingo求不出可行解程序对应的方程组如上所示,lingo程序如下:model: sets: plan/1..36/;分配方法(堆数)有36种; raw/1..14/:l,total;第二档原料有14种,l是原料长度,total是各个原料的根数; require 这个lingo程序问题到底出在哪里,是不是这个数学问题无法用LINGO求解呢?model:sets:p/1..20/:x,y,t,m,a,b,c;!定义集及其属性;endsetsinit:x=400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400;!初 lingo中求最小值问题model:max=x1+x2;-1 Lingo 那里出错了啊?model:title 物流仓库选址问题lingo求解程序;sets:store/1..12/:w,s,m;sale/1..12/:d;links(store,sale):C,p,x;endsetsdata:从仓库i向销售中心j运送货物的运送总成本;C=100,80,50,50,60,100,120,90,60,100,120, lingo的运行错误问题我的lingo程序模型是这样:MODEL:SETS:QUARTERS/1..1000/:X;ENDSETSMIN = @SUM(QUARTERS(i)|@MOD(i,2)#EQ#0:X(i);) - @SUM(QUARTERS(i)|0#NE#@MOD(i,2):X(i););@for(QUARTERS(i):@sum(QUARTERS(i):X(i)) >= 1000 ;);@for(QUARTERS( lingo程序如何运行 lingo问题,谁帮我运行下这个程序,有错误的话帮我看看model:sets:xcs/1..20/:A,m,n,q;ccs/1..2/:x;link(xcs,ccs):c,b;endsetsdata:A=300,320,340,360,380,400,440,460,500,540,480,440,380,340,280,200,160,80,60,40;m=16,16,16,16,16,16,16,16,16, lingo程序有问题,MODEL:SETS:CLZ/A1..A3/;LJZ/D1..D3/QI;JIAGE(LIZ,CLZ):L,B;ENDSETSDATA:L=0 2 32 0 43 4 0;Q=1 2 3;ENDDATAMIN=@SUM(CLZ(J):@SUM(LJZ(I):(2.07*10^(-4)*1.41*L(I,J)*Q(I)))*B(I,J));@FOR(CLZ(J):@SUM(LJZ(I):Q(I)*B(I,J))(J) 问一个LINGO的问题,这个程序有一行又语法错误,标出来了,那一行哪里错了啊MODEL:SETS:XIA/A,B/:X1,Y1,S;GO/1..6/:X2,Y2,D;LI(XIA,GO):M,YU;ENDSETSDATA:X1=5 2;Y1=1 7;X2=1.25 8.75 0.5 5.75 3 7.25;Y2=1.25 0.75 4.75 5 6.5 7.75;D=3 5 4 求教一下这个lingo程序有什么问题model:sets:capital/0..15/:r,p,q,x;endsetsdata:r=0.05 9.6 18.5 49.4 23.9 8.1 14 40.7 31.2 33.6 36.8 11.8 9 35 9.4 15;q=0 42 54 60 42 1.2 39 68 33.4 53.3 40 31 5.5 46 5.3 23;p=0 2.1 3.2 6.0 1.5 7.6 3.4 5.6 3. 帮忙看哈下面这个lingo程序哪里有问题,显示第十行出错,求指导~model:sets:season/1..4/:x;fire/2,3,4/:y;endsetsmin=120+x(1)+x(2)+x(3)+x(4);120*65+x(1)*60>=6000;((120+x(1))*0.85-y(2))*65+60*x(2)>=7500;(((120+x(1))*0.85-y(2)+x(2))*0. lingo解非线性方程组的问题.参考书上写的代码:model:x^2+y^2=2;2*x^2+x+y^2+y=4;end解出结果Feasible solution found at iteration:0Variable ValueX 0.4543360Y 1.339247为什么我用lingo这么做总是出错呢?