数模论坛

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

帮忙运行一个非常简单的lingo程序

[复制链接]
发表于 2005-9-11 05:00:52 | 显示全部楼层 |阅读模式
<>各位哥哥姐姐们,这有一个非常简单的lingo程序,但因为我校只给配试用版,变量过多,无法运行出结果.但比赛在即,实需要结果做结果分析,希望好心的ggjj帮帮我们运行一下,把答案发到网上,不胜感谢了!!!!!!!!!</P>
<>[em07]</P>
<>model:<BR>sets:<BR>  year/1..5/:s,m,p,q,f,d,e,z;<BR>  old/1..12/;<BR>  td/1..5/:a;<BR>  double(year,old):b;<BR>  land(year,td):l;<BR>endsets<BR>data:<BR>b=10,10,10,10,10,10,10,10,10,10,10,10,<BR>    ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,<BR>    ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,<BR>    ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,<BR>    ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ;<BR>a=1.1,0.9,0.8,0.65,0.7;<BR>enddata<BR><a href="mailtmax=@sum(year(i):z(i" target="_blank" >max=@sum(year(i):z(i</A>));<BR>@for(year(i)sum(old(j)|j#ge#3#and#j#le#12:b(i,j))*408.5-20*s(i)+q(i)+f(i)-m(i)-p(i)-d(i)=z(i));<BR>@for(year(i):s(i)=p(i)*1.1);<BR>@sum(old(j)|j#ge#3#and#j#le#12:b(2,j))=@sum(old(j)|j#ge#3#and#j#le#12:b(1,j))*0.98;<BR>@sum(old(j)|j#ge#3#and#j#le#12:b(3,j))=(@sum(old(j)|j#ge#3#and#j#le#12:b(2,j))+s(1)*0.9975)*0.98;<BR>@sum(old(j)|j#ge#3#and#j#le#12:b(4,j))=(@sum(old(j)|j#ge#3#and#j#le#12:b(3,j))+s(2)*0.9975)*0.98;<BR>@sum(old(j)|j#ge#3#and#j#le#12:b(5,j))=(@sum(old(j)|j#ge#3#and#j#le#12:b(4,j))+s(3)*0.9975)*0.98;<BR>@for(year(i):p(i)=@if(@sum(old(j):b(i,j))#gt#160,1,0)*(@sum(old(j):b(i,j))*240-14400)+@if(@sum(old(j):b(i,j))#gt#160,0,1)*@sum(old(j):b(i,j))*150);<BR>@for(year(i):s(i)=@if((b(i,1)*10+b(i,2)*10+@sum(old(j)|j#ge#3:b(i,j))*42+@sum(td(k)|k#le#4:l(i,k)*4)+l(i,5)*14)#gt#5500,1,0)*((b(i,1)*10+b(i,2)*10+@sum(old(j)|j#ge#3:b(i,j))*42+@sum(td(k)|k#le#4:l(i,k)*4)+l(i,5)*14-5500)*1.8+6000)+@if((b(i,1)*10+b(i,2)*10+@sum(old(j)|j#ge#3:b(i,j))*42+@sum(td(k)|k#le#4:l(i,k)*4)+l(i,5)*14)#gt#5500,0,1)*6000);<BR>@for(year(i)sum(td(k)|k#le#4:l(i,k)*a(k))=e(i););<BR>@for(year(i):q(i)=@if(e(i)#lt#0.6*@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)),1,0)*(e(i)-@sum(old(j)|j#ge#3#and#j#le#12:b(i,j))*0.6)*90+@if(e(i)#lt#0.6*@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)),0,1)*(e(i)-@sum(old(j)|j#ge#3#and#j#le#12:b(i,j))*0.6)*75);<BR>@for(year(i):f(i)=@if(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5)#lt#0,1,0)*(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5))*70+@if(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5)#lt#0,0,1)*(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5))*50);<BR>20000*(1.1)^5-d(1)*(1.1)^4-d(2)*(1.1)^3-d(3)*(1.1)^2-d(4)*(1.1)=d(5);<BR>@for(year(i):z(i)&gt;0);<BR>(<a href="mailt120-@sum(old(j):b(5,j)))/120 target="_blank" >=0.5">120-@sum(old(j):b(5,j)))/120&gt;=0.5</A>;<BR>(@sum(old(j):b(5,j))-120)/120&lt;=0.75;<BR>end</P>

 楼主| 发表于 2005-9-11 05:04:12 | 显示全部楼层
<>model:<BR>sets:<BR>  year/1..5/:s,m,p,q,f,d,e,z;<BR>  old/1..12/;<BR>  td/1..5/:a;<BR>  double(year,old):b;<BR>  land(year,td):l;<BR>endsets<BR>data:<BR>b=10,10,10,10,10,10,10,10,10,10,10,10,<BR>    ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,<BR>    ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,<BR>    ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,<BR>    ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ,  ;<BR>a=1.1,0.9,0.8,0.65,0.7;<BR>enddata<BR><a href="mailtmax=@sum(year(i):z(i" target="_blank" >max=@sum(year(i):z(i</A>));<BR>@for(year(i)sum(old(j)|j#ge#3#and#j#le#12:b(i,j))*408.5-20*s(i)+q(i)+f(i)-m(i)-p(i)-d(i)=z(i));<BR>@for(year(i):s(i)=p(i)*1.1);<BR>@sum(old(j)|j#ge#3#and#j#le#12:b(2,j))=@sum(old(j)|j#ge#3#and#j#le#12:b(1,j))*0.98;<BR>@sum(old(j)|j#ge#3#and#j#le#12:b(3,j))=(@sum(old(j)|j#ge#3#and#j#le#12:b(2,j))+s(1)*0.9975)*0.98;<BR>@sum(old(j)|j#ge#3#and#j#le#12:b(4,j))=(@sum(old(j)|j#ge#3#and#j#le#12:b(3,j))+s(2)*0.9975)*0.98;<BR>@sum(old(j)|j#ge#3#and#j#le#12:b(5,j))=(@sum(old(j)|j#ge#3#and#j#le#12:b(4,j))+s(3)*0.9975)*0.98;<BR>@for(year(i):p(i)=@if(@sum(old(j):b(i,j))#gt#160,1,0)*(@sum(old(j):b(i,j))*240-14400)+@if(@sum(old(j):b(i,j))#gt#160,0,1)*@sum(old(j):b(i,j))*150);<BR>@for(year(i):s(i)=@if((b(i,1)*10+b(i,2)*10+@sum(old(j)|j#ge#3:b(i,j))*42+@sum(td(k)|k#le#4:l(i,k)*4)+l(i,5)*14)#gt#5500,1,0)*((b(i,1)*10+b(i,2)*10+@sum(old(j)|j#ge#3:b(i,j))*42+@sum(td(k)|k#le#4:l(i,k)*4)+l(i,5)*14-5500)*1.8+6000)+@if((b(i,1)*10+b(i,2)*10+@sum(old(j)|j#ge#3:b(i,j))*42+@sum(td(k)|k#le#4:l(i,k)*4)+l(i,5)*14)#gt#5500,0,1)*6000);<BR>@for(year(i)sum(td(k)|k#le#4:l(i,k)*a(k))=e(i););<BR>@for(year(i):q(i)=@if(e(i)#lt#0.6*@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)),1,0)*(e(i)-@sum(old(j)|j#ge#3#and#j#le#12:b(i,j))*0.6)*90+@if(e(i)#lt#0.6*@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)),0,1)*(e(i)-@sum(old(j)|j#ge#3#and#j#le#12:b(i,j))*0.6)*75);<BR>@for(year(i):f(i)=@if(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5)#lt#0,1,0)*(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5))*70+@if(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5)#lt#0,0,1)*(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5))*50);<BR>20000*(1.1)^5-d(1)*(1.1)^4-d(2)*(1.1)^3-d(3)*(1.1)^2-d(4)*(1.1)=d(5);<BR>@for(year(i):z(i)&gt;0);<BR>(<a href="mailt120-@sum(old(j):b(5,j)))/120 target="_blank" >=0.5">120-@sum(old(j):b(5,j)))/120&gt;=0.5</A>;<BR>(@sum(old(j):b(5,j))-120)/120&lt;=0.75;<BR>end</P>

发表于 2005-9-11 07:36:33 | 显示全部楼层
<>(<a href="http://www.shumo.com/bbs/mailt120-@sum(old(j):b(5,j)))/120%20target=" target="_blank" ><FONT color=#000000>=0.5"&gt;120-@sum(old(j):b(5,j)))/120&gt;=0.5</FONT></A>;这一行有编译错误</P>
<>试着改成(<a href="mailt120-@sum(old(j):b(5,j)))/120 target="_blank" >=0.5" _blank?><FONT color=#000000>120-@sum(old(j):b(5,j)))/120&gt;=0.5</FONT></A>;之后,运行无可行解!</P>
发表于 2005-9-11 17:44:37 | 显示全部楼层
(<a href="http://www.shumo.com/bbs/mailt120-@sum(old(j):b(5,j)))/120%20target=" target="_blank" ><FONT color=#000000>=0.5" _blank?&gt;120-@sum(old(j):b(5,j)))/120&gt;=0.5</FONT></A>;这一行还是有错误
发表于 2005-9-12 04:22:26 | 显示全部楼层
<>我们的程序改了,帮忙运行这个,谢谢啊</P>
<>model:<BR>sets:<BR>  year/1..5/:s,d,e,z,g,x; <BR>  old/1..12/;<BR>  td/1..5/:a;<BR>  double(year,old):b;<BR>  land(year,td):l;<BR>endsets<BR>data:<BR>b=10,10,10,10,10,10,10,10,10,10,10,10,<BR>    ,9,10,10,10,8,10,10,10,10,10,10,<BR>    , ,10,10,10,8,8,10,10,10,10,10,<BR>    , , ,10,10,8,8,8,10,10,10,10,<BR>    , , , ,10, ,8,8,8,10,10,10;<BR>a=1.1,0.9,0.8,0.65,0.7;<BR>enddata<BR><a href="mailtmax=@sum(year(i)sum(old(j) target="_blank" >max=@sum(year(i)sum(old(j)|j#ge#3#and#j#le#12:b(i,j))*408.5-20*s(i)+q+f-m-p-d(i</A>));<BR>b(3,2)=b(2,1)*0.95;<BR>b(4,2)=b(3,1)*0.95;<BR>b(5,2)=b(4,1)*0.95;<BR>b(3,2)*0.95=b(4,3);<BR>b(3,2)*0.95=b(5,4);<BR>b(4,2)*0.95=b(5,3);<BR>b(5,6)=10-@sum(old(j)|j#ge#3:b(4,j)*0.02);<BR>s(1)=b(2,1);<BR>s(2)=b(3,1);<BR>s(3)=b(4,1);<BR>s(4)=b(5,1);<BR>s(5)=0;<BR>@for(year(i):g(i)=@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)*1.1));<BR>@for(year(i)|i#le#4:s(i)&lt;=g(i)/2);<BR><a href="mailtp=@sum(year(i)if(@sum(old(j):b(i,j))#gt#160,1,0)*(@sum(old(j):b(i,j))*240-14400)+@if(@sum(old(j):b(i,j))#gt#160,0,1)*@sum(old(j):b(i,j))*150" target="_blank" >p=@sum(year(i):@if(@sum(old(j):b(i,j))#gt#160,1,0)*(@sum(old(j):b(i,j))*240-14400)+@if(@sum(old(j):b(i,j))#gt#160,0,1)*@sum(old(j):b(i,j))*150</A>);<BR><a href="mailtm=@sum(year(i):@if((b(i,1)*10+b(i,2)*10+@sum(old(j) target="_blank" >m=@sum(year(i):@if((b(i,1)*10+b(i,2)*10+@sum(old(j)|j#ge#3:b(i,j))*42+@sum(td(k)|k#le#4:l(i,k)*4)+l(i,5)*14)#gt#5500,1,0)*((b(i,1)*10+b(i,2)*10+@sum(old(j)|j#ge#3:b(i,j))*42+@sum(td(k)|k#le#4:l(i,k)*4)+l(i,5)*14-5500)*1.8+6000)+@if((b(i,1)*10+b(i,2)*10+@sum(old(j)|j#ge#3:b(i,j))*42+@sum(td(k)|k#le#4:l(i,k)*4)+l(i,5)*14)#gt#5500,0,1)*6000</A>);<BR>@for(year(i):@sum(td(k)|k#le#4:l(i,k)*a(k))=e(i););<BR><a href="mailtq=@sum(year(i):@if(e(i)#lt#(0.6*@sum(old(j) target="_blank" >q=@sum(year(i):@if(e(i)#lt#(0.6*@sum(old(j)|j#ge#3#and#j#le#12:b(i,j))),1,0)*(e(i)-@sum(old(j)|j#ge#3#and#j#le#12:b(i,j))*0.6)*90+@if(e(i)#lt#(0.6*@sum(old(j)|j#ge#3#and#j#le#12:b(i,j))),0,1)*(e(i)-@sum(old(j)|j#ge#3#and#j#le#12:b(i,j))*0.6)*75</A>);<BR><a href="mailtf=@sum(year(i):@if(l(i,5)*1.5-(@sum(old(j) target="_blank" >f=@sum(year(i):@if(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5)#lt#0,1,0)*(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5))*70+@if(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5)#lt#0,0,1)*(l(i,5)*1.5-(@sum(old(j)|j#ge#3#and#j#le#12:b(i,j)))*a(5))*50</A>);<BR>(<a href="mailt120-@sum(old(j):b(5,j)))/120 target="_blank" >=0.5">120-@sum(old(j):b(5,j)))/120&gt;=0.5</A>;<BR>(@sum(old(j):b(5,j))-120)/120&lt;=0.75;<BR>@for(year(i):x(i)=@if(d(i)#gt#0,1,0));<BR>20000*(1.1)^(x(1)+x(2)+x(3)+x(4)+x(5))-d(1)*(1.1)^(x(2)+x(3)+x(4)+x(5))-d(2)*(1.1)^(x(3)+x(4)+x(5))-d(3)*(1.1)^(x(4)+x(5))-d(4)*(1.1)^(x(5))=d(5);<BR>end</P>

发表于 2005-9-15 21:27:53 | 显示全部楼层
我帮你算算看啊
发表于 2005-9-14 19:38:04 | 显示全部楼层
请把你的题目发在网上,或许我可以帮你
发表于 2006-11-10 06:51:16 | 显示全部楼层
难道,你不能找个破解版的lingo用用?
您需要登录后才可以回帖 登录 | 注-册-帐-号

本版积分规则

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

GMT+8, 2024-11-30 09:55 , Processed in 0.072182 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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