早教吧作业答案频道 -->其他-->
lindo程序求解x1到x10均为0-1变量,程序运行有误,如何改正?MAX1.11x1+1.48x2+0.95x3+2.65x4+37.72x5+39.68x6+72.85x7+67.88x8+49.1x9+45.12x10SUBJECTTO33x1+33x2+33x3+33x4+33x5+70x6+86x7+77x8+68x9+70x10=3003678.8974x1+406.858x2-25056.0585x3
题目详情
lindo程序求解
x1到x10均为0-1变量,程序运行有误,如何改正?
MAX 1.11x1+1.48x2+0.95x3+2.65x4+37.72x5+39.68x6+72.85x7+67.88x8+49.1x9+45.12x10
SUBJECT TO
33x1+33x2+33x3+33x4+33x5+70x6+86x7+77x8+68x9+70x10=300
3678.8974x1+406.858x2-25056.0585x3-13399.47x4-43847.565x5+48130.9115x6+102092.48x7+171447.3554x8-2944.533x9-262753.722x10=0
end
INTEGER x1,x2,x3,x4,x5,x6,x7,x8,x9,x10
x1到x10均为0-1变量,程序运行有误,如何改正?
MAX 1.11x1+1.48x2+0.95x3+2.65x4+37.72x5+39.68x6+72.85x7+67.88x8+49.1x9+45.12x10
SUBJECT TO
33x1+33x2+33x3+33x4+33x5+70x6+86x7+77x8+68x9+70x10=300
3678.8974x1+406.858x2-25056.0585x3-13399.47x4-43847.565x5+48130.9115x6+102092.48x7+171447.3554x8-2944.533x9-262753.722x10=0
end
INTEGER x1,x2,x3,x4,x5,x6,x7,x8,x9,x10
▼优质解答
答案和解析
max 1.11x1+1.48x2+0.95x3+2.65x4+37.72x5+39.68x6+72.85x7+67.88x8+49.1x9+45.12x10
SUBJECT TO
33x1+33x2+33x3+33x4+33x5+70x6+86x7+77x8+68x9+70x10=300
3678.8974x1+406.858x2-25056.0585x3-13399.47x4-43847.565x5+48130.9115x6+102092.48x7+171447.3554x8-2944.533x9-262753.722x10=0
end
INT 10
不过你这个是没有最优解的.
SUBJECT TO
33x1+33x2+33x3+33x4+33x5+70x6+86x7+77x8+68x9+70x10=300
3678.8974x1+406.858x2-25056.0585x3-13399.47x4-43847.565x5+48130.9115x6+102092.48x7+171447.3554x8-2944.533x9-262753.722x10=0
end
INT 10
不过你这个是没有最优解的.
看了 lindo程序求解x1到x1...的网友还看了以下:
已知正数x,y满足x+2y=2,若x+8y大于(m2-8m)xy恒成立,则实数m的取值范围是()A 2020-05-14 …
如图1,正方形ABCD与正方形CEFG中,延长BG交DE于H.(1)求证:BH⊥DE.如图1,正方 2020-05-16 …
扔2个硬币,2个同为正的概率,1正1负的概率,正负各50%的概率,第1个为1/4,第2个为何是1/ 2020-06-02 …
四个白色1*1*1正方体和四个的1*1*1黑色正方体,可以组成多少种2*2*2的正方体?经过旋转而 2020-06-16 …
1函数y=|x|的减区间是A{0.正无穷)B(负无穷.0}C(负无穷,正无穷)D{1,正无穷)2在 2020-07-24 …
周易八卦2正1反2正1反1正2反2正1反1正2反3反这是什么意思,我想知道我喜欢的人喜不喜欢我? 2020-07-25 …
已知函数f(x)=(x平方+2x+a)/x,x∈[1,正无穷),(1)当a=1/2时,求函数f(已 2020-07-27 …
用数学归纳法证明“当n为正奇数时,xn+yn能被x+y整除”的第二步是()A.假使n=2k+1时正 2020-08-01 …
1.下列分类中错误的一个是()A.有理数——1.负有理数2.非负有理数B.正整数——1.奇数2.偶 2020-08-04 …
感激不尽.对定义域在S=[1,正无穷)的函数f(x),对任意x属于[1,正无穷)满足对定义域在S=[ 2020-12-09 …