数模论坛

 找回密码
 注-册-帐-号
搜索
热搜: 活动 交友 discuz
查看: 3052|回复: 3

求助LINGO程序

[复制链接]
发表于 2004-9-11 00:25:24 | 显示全部楼层 |阅读模式
<>那位GS能为小弟看看我的LINGO程序错在哪?</P>
<>谢谢</P>
<>MODEL:
v=28;
SETS:
cws/w1 w2 w3 w4 w5 w6 w7 w8 w9 w10/,ck,cy,f;
aa/a1 a2 a3 a4 a5/;
xx(cws,aa):x,c,T,A,B;
endsets</P>
<P><a href="mailtmin=@sum(xx(i,j):154*x(i,j)*c(i,j" target="_blank" >min=@sum(xx(i,j):154*x(i,j)*c(i,j</A>));</P>
<P>@for(xx(i,j):T(i,j)=8+c(i,j)*120/v;A(i,j)=@floor(T(i,j)/5);B(i,j)=@floor((480-5*(A(i,j)-1)))/T(i,j));</P>
<P>@for(xx(i,j):x(i,j)&lt;=A(i,j)*B(i,j));</P>
<P>!posible errow;
@for(cws(j)sum(aa(i):x(i,j))&lt;=96*f(j);x(j,1)+x(j,2)+x(j,5)&lt;=ck(j)*10000/154;x(j,3)+x(j,4)&lt;=cy(j)*10000/154;@gin(f));
@for(aa(j)sum(cws(i):x(i,j))&lt;=160;@sum(cws(i):x(i,j))&gt;=q(j));
@sum(cws(i):x(i,1)*(p(i)-30.5))&lt;=0;
@sum(cws(i):x(i,2)*(p(i)-30.5))&lt;=0;
@sum(cws(i):x(i,5)*(p(i)-30.5))&lt;=0;
@sum(cws(i):x(i,1)*(p(i)-28.5))&gt;=0;
@sum(cws(i):x(i,2)*(p(i)-28.5))&gt;=0;
@sum(cws(i):x(i,5)*(p(i)-28.5))&gt;=0;</P>
<P>@sum(xx(i,j):x(i,j)/B(i,j))&lt;=20;
@sum(cws(i):f(i))&lt;=7;</P>

<P>data:
p=30 28 29 32 31 33 32 31 33 31;
C=5.26  5.19  4.21  4.00  2.95  2.74  2.46  1.90  0.64  1.27
   1.90  0.99  1.90  1.13  1.27  2.25  1.48  2.04  3.09  3.51
   5.89  5.61  5.61  4.56  3.51  3.65  2.46  2.46  1.06  0.57
   0.64  1.76  1.27  1.83  2.74  2.60  4.21  3.72  5.05  6.10
   4.42  3.86  3.72  3.16  2.25  2.81  0.78  1.62  1.27  0.50;
ck=0.95 1.05 1.00 1.05 1.10 1.25 1.05 1.30 1.35 1.25 ;
cy=1.25 1.10 1.35 1.05 1.15 1.35 1.05 1.15 1.35 1.25 ;
q= 77.9221   84.4156   84.4156  123.3766   84.4156;
p=30 28 29 32 31 33 32 31 33 31;
enddata
end
</P>
发表于 2004-9-11 16:49:49 | 显示全部楼层
<>你总得把背景讲一下吧!<img src="http://www.shumo.com/bbs/Skins/Default/emot/em06.gif"><img src="http://www.shumo.com/bbs/Skins/default/topicface/face9.gif"><img src="http://www.shumo.com/bbs/Skins/Default/emot/em01.gif"><img src="http://www.shumo.com/bbs/Skins/Default/emot/em06.gif"></P>
发表于 2004-9-11 17:10:55 | 显示全部楼层
<>@for(cws(i)sum(aa(j):x(i,j))&lt;=96*f(i);x(i,1)+x(i,2)+x(i,5)&lt;=ck(i)*10000/154;x(i,3)+x(i,4)&lt;=cy(i)*10000/154;@gin(f));
这句错了,我已经改回来了!</P><><img src="http://www.shumo.com/bbs/Skins/Default/emot/em26.gif"><img src="http://www.shumo.com/bbs/Skins/Default/emot/em27.gif"><img src="http://www.shumo.com/bbs/Skins/Default/emot/em29.gif"><img src="http://www.shumo.com/bbs/Skins/Default/emot/em32.gif"><img src="http://www.shumo.com/bbs/Skins/Default/emot/em31.gif"></P>
发表于 2004-9-15 08:00:00 | 显示全部楼层
<>哪有lingo的中文教程啊?</P><>看英文的累死了!</P>
您需要登录后才可以回帖 登录 | 注-册-帐-号

本版积分规则

小黑屋|手机版|Archiver|数学建模网 ( 湘ICP备11011602号 )

GMT+8, 2024-11-27 15:51 , Processed in 0.048584 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表