数学建模社区-数学中国
标题:
Lingo对小规模数据也不出解?
[打印本页]
作者:
WonderForYou
时间:
2009-8-18 16:11
标题:
Lingo对小规模数据也不出解?
本帖最后由 WonderForYou 于 2009-8-18 18:06 编辑
Lingo对小规模数据也不出解?
sets:
week/1..4/:x,s,c,t;
endsets
data:
x=15 40 75 100;
s=30 40 45 20;
c=5.0 5.1 5.4 5.5;
enddata
min=@sum(week(i)|i#gt#1:(t(i)-t(i-1))*c(i))+t(1)*c(1)+@sum(week(i)|i#gt#1:(t(i)-x(i))*0.2);
@for(week(i)|i#gt#1:t(i)-t(i-1)<=s(i));
@for(week(i):t(i)>=x(i));
end
复制代码
作者:
zhuimeng508
时间:
2009-8-18 17:39
不太清楚,我找个高手帮你看看吧!
作者:
WonderForYou
时间:
2009-8-18 18:05
麻烦了~~~~
作者:
job0530
时间:
2009-8-18 18:46
不是不给解……是你的数据或约束有的地方不对吧……照成了Model is unbounded的情况……
我把你的数据进行了处理:结果还是这样……可能是约束条件限制不够……照成解无界了……
我把你的程序简化为了:
min=-0.1*x1-0.1*x2+0.1*x3+5.7*x4-43;
x2-x1<40;
x3-x2<45;
x4-x3<20;
x1>15;
x2>40;
x3>75;
x4>100;
复制代码
作者:
dixon8888
时间:
2011-4-22 20:18
回复
WonderForYou
的帖子
it's a pitty, hope you can solve this
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5