早教吧作业答案频道 -->其他-->
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...的网友还看了以下:
一个班有60人,选A的占3/5,选B的比A多3个,既不选A也不选B的,比都选AB的1/3多1个问, 2020-05-12 …
已知x-5=8,39÷x=∽ 2020-05-13 …
求几道初三一元二次方程!(x+1)(6x-5)=102y(3-y)=39(x-2)的平方=4(x+ 2020-05-20 …
已知数列{an}的前n项和Sn=n(2n+1)求改数列的通项公式判断39是改数列的第几项 2020-06-03 …
matlab中的fmincon函数的用法!急x0=[1;1;1;1];A=[]b=[]Aeq=[1 2020-07-16 …
已知x+y+x=39,x+y=27,x和y各是多少 2020-07-17 …
x十y=242,x一y=39,x=?y=? 2020-07-19 …
设函数y=f(x),当自变量x由x改变到x+△x时,函数值的改变量△y等于()A.f(x+△x)B 2020-07-25 …
Y数集(“;”相隔数字均为“或”)X+11={13;15;16;17;18;21;23;24;25 2020-07-30 …
已知四个自然数两两的和依次从小到大的次序是23,28,33,39,x,y,则x+y等于? 2020-12-05 …