当前位置: > 怎么用LINGO解不出这题...
题目
怎么用LINGO解不出这题
min=x1*c1+x2*c2+x3*c3+x4*c4+x5*c5+x6*c6+x7*c7+x8*c8+x9*c9+x10*c10+x11*c11+x12*c12+x13*c13+x14*c14+x15*c15+x16*c16;
x1+x4+x5+x11>=1;
x1+x2+x11+x15+x16>=1;
x1+x2+x3+x15+x16>=1;
x1+x4+x5+x11+x16>=1;
x2+x3+x6+x12+x15+x16>=1;
x1+x4+x8+x11>=1;
x8+x4+x5+x9+x11>=1;
x2+x6+x5+x16>=1;
x6+x9+x5+x10+x14>=1;
x6+x7+x10+x12+x14>=1;
x2+x3+x5+x6+x7+x12+x15>=1;
x8+x4+x13>=1;
x8+x9+x5+x13>=1;
x9+x14+x5+x10+x13>=1;
x7+x14+x9+x10>=1;
x6+x7+x10+x12>=1;
x9+x8+x13>=1;
x8+x9+x10+x13>=1;
x7+x9+x10>=1;
x2+x4+x3+x6+x7+x12+x15>=1;
c1=@if(x#gt#600,(4000*0.15*a1-2400000*0.15)/100000,0)+5;
c2=@if(x#gt#600,(4000*0.15*a2-2400000*0.15)/100000,0)+5;
c3=@if(x#gt#600,(4000*0.15*a3-400000*0.15)/100000,0)+5;
c4=@if(x#gt#600,(4000*0.15*a4-400000*0.15)/100000,0)+5;
c5=@if(x#gt#600,(4000*0.15*a5-2400000*0.15)/100000,0)+5;
c6=@if(x#gt#600,(4000*0.15*a6-2400000*0.15)/100000,0)+5;
c7=@if(x#gt#600,(4000*0.15*

提问时间:2021-03-31

答案
存在过多的约束,检查下你输入的数据是否有误,否则应当是原问题本身无解的原因.修改后的代码:MODEL:sets:AZ/1..16/:x,c,a;endsetsmin=@sum(AZ:c*x);x(1)+x(4)+x(5)+x(11)>=1;x(1)+x(2)+x(11)+x(15)+x(16)>=1;x(1)+x(...
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.